Hi Hélio,
Good idea. By the way, we have in our workspace repository a folder
where to put tests into. Have a look here, please:
https://sourceforge.net/p/gretl/workspace/ci/master/tree/tests/README.md
I think it would be nice to write this test using gretl and/ or bash.
The process could be:
1. Create a ascii file with all commands parsed from somewhere (I think
we already a have a job for this); delimited by \n
2. Execute a gretl job which
a) loops over each line of this ascii file,
b) store a text file (foo.inp) with the content: 'CMD' where 'CDM' is
for instance 'ols',
c) execute another gretl job using the 'shell' command: 'gretlcli
foo.inp'
d) Retrieve the exit code of this process,
e) Finish the loop,
f) List all commands which let to some unusual error code (referring
to a segfault or so).
Best,
Artur
Am 21.09.2021 15:50 schrieb Hélio Guilherme:
> Those kind of tests should be easily automated.
>
> Can some one write Python code for this pseudo-code?
>
> Get a list of all commands (from the code)
> Iterate all commands without arguments (what to expect?)
>
> Later this can be a test triggered on each code pushed to master.
>
> On Tue, Sep 21, 2021 at 2:43 PM Riccardo (Jack) Lucchetti
> <p002264(a)staff.univpm.it> wrote:
>
>> On Tue, 21 Sep 2021, Sven Schreiber wrote:
>>
>>> Am 21.09.2021 um 14:51 schrieb Riccardo (Jack) Lucchetti:
>>>>
>>>> The "sscanf" command is deprecated, so this is probably not
very
>>>> important, however: I just discovered a way to trigger a
>> segfault.
>>>> Just open a console or gretlcli, type "sscanf" and hit Enter.
>> Boom.
>>>>
>>>> Fortunately, the fix was easy and I just pushed it to git.
>>>>
>>> Thanks, Jack!
>>>
>>> Maybe it would be a good idea to trivially test all the commands
>> that we
>>> have (or have had) by just typing them without any parameters,
>> like you
>>> did with sscanf !?
>>
>> Well, I'm not stopping you! ;)
>>
>> -------------------------------------------------------
>> Riccardo (Jack) Lucchetti
>> Dipartimento di Scienze Economiche e Sociali (DiSES)
>>
>> Università Politecnica delle Marche
>> (formerly known as Università di Ancona)
>>
>> r.lucchetti(a)univpm.it
>>
http://www2.econ.univpm.it/servizi/hpp/lucchetti [1]
>>
>
-------------------------------------------------------_______________________________________________
>> Gretl-devel mailing list -- gretl-devel(a)gretlml.univpm.it
>> To unsubscribe send an email to gretl-devel-leave(a)gretlml.univpm.it
>> Website:
>>
>
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/
>> [2]
>
>
> Links:
> ------
> [1]
http://www2.econ.univpm.it/servizi/hpp/lucchetti
> [2]
>
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/
>
> _______________________________________________
> Gretl-devel mailing list -- gretl-devel(a)gretlml.univpm.it
> To unsubscribe send an email to gretl-devel-leave(a)gretlml.univpm.it
> Website:
>
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/