Usage:
Exercise 1:
- input from terminal
make run
- run with input from my test file
make test
Exercise 2:
- input from exercise2/test/input/current_input.txt
make run
make -> ./test_run.sh: run sequence of made tests
Usage:
-
Run all tests, both Errored and Non-Errored:
make run_test_all- Displays all FAILED tests and ERRORS in stdout
- Offsets are stored in logs/test_all.log
- Errored tests will not display offset
-
Run all tests expected to throw an error:
make run_test_invalid- Runs all files matching the -error* pattern
- Detailed error logs are stored in logs/test_invalid.log
-
Run all tests expected to pass (no errors):
make run_test_valid- Runs all non -error* files
- Offset results are stored in logs/test_valid.log
-
Run specific files manually:
make java -cp bin/ Main FilePath1 FilePath2Example:
java -cp bin/ Main minijava-examples-new/Factorial.java minijava-examples-new/Factorial-error.java- Outputs results to stdout