-
Notifications
You must be signed in to change notification settings - Fork 2
Testing
We use Travis CI to automatically test the compiler and the VM.
In order to test our compiler we use the official clojure (1.7.0) compiler as a reference. We have a folder with test scripts and for each test script we call the reference compiler and compare the (console) output with the out of our own compiler/vm. If the output is the same, we call it a success, otherwise the test failed.
Change to the clojit-cvm project directory and then run runtests.sh
.
Or - if you want to provide additional parameters, etc:
Change into the test-runner directory:
cd test-runner
Use the gradlew-script to run the tests:
./gradlew test -i
The -i
option provides more debug output (and actually shows the console output of the tests).
The script also output the path where the test-report (html-file) is located.
We use Travis CI to automatically run our test cases for each commit. The build status is shown on top of this page (along with a link to the status report).