Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
IPDSnelting
mjtest
Commits
0918ee9d
Commit
0918ee9d
authored
Oct 30, 2016
by
Johannes Bechberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve README and fix mac os issue
parent
2d5b7027
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
MANIFEST.in
MANIFEST.in
+2
-0
README.mdwn
README.mdwn
+9
-4
mjt.py
mjt.py
+1
-1
No files found.
MANIFEST.in
View file @
0918ee9d
recursive-include mjtest *.py
README.mdwn
LICENCE
setup.py
mjt.py
\ No newline at end of file
README.mdwn
View file @
0918ee9d
...
...
@@ -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 https://github.com/mj3-16/mjtest
cd mjtest
```
To get colored output install the python3 module `termcolor`.
### Usage
Output of the `./mjt.py --help`
```
usage: mjt
est [-h] [--tmp_dir] [--test_dir
] [--only_incorrect_tests]
[--
parallel] [--timeout] [--report_dir] [--log LOG
]
usage: mjt
.py [-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 `./mjt.py` 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" mjt
est
syntax
MJ_RUN="~/code/mj/run"
./
mjt
.py
syntax
```
This will…
- … create reports in a folder named after the current date and time inside the `reports` folder
...
...
mjt.py
View file @
0918ee9d
#!/usr/bin/python3
#!/usr/bin/
env
python3
import
sys
from
os.path
import
dirname
,
realpath
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment