A tester for the compiler.
IMPORTANT
Assumptions:
- You are running under GNU\Linux (this hasn't been tested on windows).
Code_Generator
module lies incode-gen.ml
- if not you'll have to edit tester.ml#use ...
at line 1
- Download all the files and place them in the same directory
- Add your project files to said dir (
code-gen.ml
and whatever else it needs) - Run the tester with
utop tester.ml
- Optional: use
make clean
to remove all the output files
Please Notice
- The tester creates the code as file
foo.asm
in same working dir, which compiles tofoo
and is constantly overwritten. - Tests run in segments based on context so you can edit the file in order to run only the contexts you want to test.
Simply comment out the
run_cg_tests
lines at the end oftester.ml
you don't want to run.
- Fork the project
- Add tests to an existing context in the tests_hub directory or create a new context by adding your own file. If you do add a new file remember to add a
#use
and arun_cg_tests
lines in thetester.ml
file. - Create a pull request.