-
Notifications
You must be signed in to change notification settings - Fork 6
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
fixing automatic test generation #16
Comments
Step 1: |
As side-effect of this will be to remove any remaining Coconut, so I plan to close #15 now. |
Need to go through other coconut sources to see what dependencies are. |
This enables automatic test generation using yml configuration instead of xml-like promela comments
This still requires some promela markup-like language to avoid errors (lines 19, 75, 84 of testsuites_spfreechain01.yml) I havent found where that is being parsed out
I've been working based on the model in There are 2 refine files which seem to use different methods for refinement, as well as have different resulting c test files
The first appears to work more similarly to the methods im familiar with Im unsure how the second method works/what it intends to do. If method 1 produces code as is required, that will make creating config files much more similar to the testbuilder process. |
Following from this, if we want code such as in Assuming I can do the above, I wonder if it would make sense to remove the ability to pass in promela-comment-syntax config files, and only allow yaml files? |
They both seem a but of a mix from my perspective, and would need some modificaiton downstream. Focus on method 1 for now, and only allow yaml files for config (does that affect method 2) |
It would affect method 2 as far as I can tell. The promela comment/annotation language allows multiple keys with the same value, while yaml does not. eg
I made an equivalent, which I'm not fond of that basically becomes
The full original The parsed object is quite unusual, and although I believe the yaml generates the equivalent parsed object of the promela annotation, the c files are silently not generated. Thus far, the limitation of yaml files only appears to affect method 2. |
This removes any coconut usage in automatic test generation Currently only generates pml files with relevant negations Requires refactoring, config, and test generation
Un-nest unncecessary nested functions
Removed cons_pair and dest_pair lambdas
Added dataclass to replace nested tuples containing program parts
…tbuilder.py #16 automatic_testgen_template.yml - generate promela files - generate spin files - generate test files - clean - compile - run
…estbuilder.py #16 - tested genpmls, spin, gentests, clean commands - added archive, copy commands - removed run command, should be handled by testbuilder? - added automatic_testgen.help - added local and global config similar to testbuilder.py - commands can run from any directory
Issue only occured when Init contains an assertion Was processed as Proctype, and format as ``` Assert[0] proctype init(args){ ... } ``` in output
Currently this relies on putting config data into Promela comments.
This should be moved to YAML files
The text was updated successfully, but these errors were encountered: