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@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@univpm.it
   http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------_______________________________________________
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/