Added test scripts to ease testing

This commit is contained in:
Sanjar Ahmadov
2021-02-19 18:45:13 -05:00
parent cf3bd4d745
commit 7b2e1dab3f
3 changed files with 18 additions and 0 deletions
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
mvn clean package -e
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
./build.sh
./test.sh
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/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}