Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mjtest
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uceme
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
Show 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 t
o the test cases
__
__Please contribute t
est 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"
mjtest
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