Files
ChocoPy/test_gen.sh
bill c86e536fe3 Final bug fixes.
Worklog.
Added test diff.py demonstrating the differences between the reference compiler.
2021-04-03 02:54:25 +08:00

9 lines
707 B
Bash
Executable File

#!/bin/bash
echo "Running all test cases inside src/test/data/pa2/sample/ folder)"
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rr --reset --dir src/test/data/pa2/
# good.py can't be parsed by reference compiler, because it contains our improvements in PA1. Therefore, we generate the ast with our parser and then use the reference semantic checker to generate the reference type information for testing.
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=s --reset --dir src/test/data/pa2/student_contributed/good.py
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=.r --reset --dir src/test/data/pa2/student_contributed/good.py.ast