intel / yarpgen

Yet Another Random Program Generator
Other
485 stars 53 forks source link

is there any option to only generate random code without doing the test? #147

Open dorafan opened 3 years ago

dbabokin commented 3 years ago

What do you mean by "doing the test"?

Generated program either (1) prints the hash of all data structures to let external script compare the results from different compilations / executions (2) compares variables with reference values. (3) does both

This is controlled by the following switch:

    --asserts=<value>             Use asserts in check function (Default: some)
                                  Possible values: none, some, all
Vsevolod-Livinskij commented 3 years ago

Correct me if I misunderstood your question, but I assume that you want to generate code without any actual testing.

In that case, you need to build the project using CMake and use yarpgen binary after that.

dorafan commented 3 years ago

Thanks a lot for the reply!

dorafan commented 3 years ago

What do you mean by "doing the test"?

Generated program either (1) prints the hash of all data structures to let external script compare the results from different compilations / executions (2) compares variables with reference values. (3) does both

This is controlled by the following switch:

    --asserts=<value>             Use asserts in check function (Default: some)
                                  Possible values: none, some, all

Could you please help me with more details? I didn't find the argument setting in "run_gen.py" or other scripts

dbabokin commented 3 years ago

This command line switch is for yarpgen binary. Looks like your use case is different from the standard one covered by run_gen.py (which is script around yarpgen).