parent
5bcf48ffe4
commit
9e29fdf770
@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
./build.sh
|
||||
./test.sh
|
||||
./test_sample.sh
|
||||
./test_student_contributed.sh
|
||||
|
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILENAME=$1
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "Running all test cases. Usage for individual test cases: test.sh FILENAME (inside src/test/data/pa1/sample/ folder)"
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=s --test --dir src/test/data/pa1/sample/
|
||||
exit 1
|
||||
fi
|
||||
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy \
|
||||
--pass=s --test src/test/data/pa1/sample/${FILENAME}
|
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
FILENAME=$1
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
echo "Usage for individual test cases: test.sh FILEPATH, where FILEPATH is the location of the python file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Testing file ${FILENAME}"
|
||||
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=sr \
|
||||
${FILENAME} --out=${FILENAME}.ast.typed
|
||||
|
||||
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy \
|
||||
--pass=ss --test ${FILENAME}
|
@ -0,0 +1,5 @@
|
||||
#!/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=ss --test --dir src/test/data/pa2/sample/
|
@ -0,0 +1,4 @@
|
||||
#!/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=ss --test --dir src/test/data/pa2/student_contributed/
|
Loading…
Reference in new issue