Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dorafan opened this issue Jul 5, 2021 · 5 comments
Open

Comments

@dorafan
Copy link

dorafan commented Jul 5, 2021

No description provided.

@dbabokin
Copy link
Contributor

dbabokin commented Jul 5, 2021

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
Copy link
Contributor

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
Copy link
Author

dorafan commented Jul 6, 2021

Thanks a lot for the reply!

@dorafan
Copy link
Author

dorafan commented Jul 6, 2021

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
Copy link
Contributor

dbabokin commented Jul 9, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants