Skip to content

A simpler tester specifically for NCTU compiler course (2019 Spring)

License

Notifications You must be signed in to change notification settings

Summon528/NCTU-Compiler-Tester

Repository files navigation

NCTU-Compiler-Tester

A simpler tester specifically for NCTU compiler course (2019 Spring)

Usage

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

Folder structure

- project*
  - in     // test cases
  - ans    // expected results (Taken from TA provided online parser)
  - out    // your output

Simple testing

python test.py project_num executable_path
ex:
python test.py 1 ../project1/scanner

Add new test data (Project 1 ~ 3 Only)

  1. Install beautifulsoup and requests via pipenv or pip install
  2. Add new files to project*/in
  3. Run the script normally as it will download answers automatically.

Note

Since the output format of project 4 is not strict enough, the result of project 4 needs manual check.

About

A simpler tester specifically for NCTU compiler course (2019 Spring)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages