A simpler tester specifically for NCTU compiler course (2019 Spring)
usage: test.py [-h] project_num [executable_path]
positional arguments:
project_num int type, specify which project to test
executable_path str type, path to your excutable. If not specify, the
script will download missing answers without testing
anything
- project*
- in // test cases
- ans // expected results (Taken from TA provided online parser)
- out // your output
python test.py project_num executable_path
ex:
python test.py 1 ../project1/scanner
- Install
beautifulsoup
andrequests
viapipenv
orpip install
- Add new files to
project*/in
- Run the script normally as it will download answers automatically.
Since the output format of project 4 is not strict enough, the result of project 4 needs manual check.