Commit 0918ee9d authored by Johannes Bechberger's avatar Johannes Bechberger

Improve README and fix mac os issue

parent 2d5b7027
recursive-include mjtest *.py
\ No newline at end of file
......@@ -5,7 +5,7 @@ A test runner (and suite) for the MiniJava compiler (and its parts) written in t
It's heavily inspired by Sisyphus (and uses some of its code)
__Please contribute to the test cases__
__Please contribute test cases.__
Test modes
......@@ -56,12 +56,15 @@ git clone
cd mjtest
To get colored output install the python3 module `termcolor`.
### Usage
Output of the `./ --help`
usage: mjtest [-h] [--tmp_dir] [--test_dir] [--only_incorrect_tests]
[--parallel] [--timeout] [--report_dir] [--log LOG]
usage: [-h] [--only_incorrect_tests] [--parallel]
[--log_level LOG_LEVEL]
{syntax,semantic,exec} MJ_RUN
MiniJava test runner
......@@ -81,10 +84,12 @@ optional arguments:
--log LOG Logging level (error, warn, info or debug)
For Windows users: Using environment variables doesn't work and you have to use prefix `./` with `python`.
### Example usage
Assuming you want to run the syntax tests and your MiniJava base folder is `~/code/mj` then run
MJ_RUN="~/code/mj/run" mjtest syntax
MJ_RUN="~/code/mj/run" ./ syntax
This will…
- … create reports in a folder named after the current date and time inside the `reports` folder
#!/usr/bin/env python3
import sys
from os.path import dirname, realpath
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment