added test scripts

master
Sanjar Ahmadov 3 years ago
parent 04780157fc
commit c0e7c2a878

@ -0,0 +1,3 @@
#!/bin/bash
mvn clean package -e

@ -0,0 +1,12 @@
#!/bin/bash
FILENAME=$1
if [ -z "$1" ] ; then
echo "FILENAME is missing"
exit 1
fi
echo "Generating assembly code for file ${FILENAME}"
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrr ${FILENAME}

@ -0,0 +1,12 @@
#!/bin/bash
FILENAME=$1
if [ -z "$1" ] ; then
echo "FILENAME is missing"
exit 1
fi
echo "Generating assembly code for file ${FILENAME}"
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrs ${FILENAME}

@ -0,0 +1,12 @@
#!/bin/bash
FILENAME=$1
if [ -z "$1" ] ; then
echo "FILENAME is missing"
exit 1
fi
echo "Running file ${FILENAME}"
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrr --run ${FILENAME}

@ -0,0 +1,12 @@
#!/bin/bash
FILENAME=$1
if [ -z "$1" ] ; then
echo "FILENAME is missing"
exit 1
fi
echo "Running file ${FILENAME}"
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrs --run ${FILENAME}

@ -0,0 +1,5 @@
#!/bin/bash
echo "Running all test cases inside src/test/data/pa3/sample/ folder)"
java -cp "chocopy-ref.jar:target/assignment.jar" chocopy.ChocoPy --pass=rrs --test --run --dir src/test/data/pa3/sample/
Loading…
Cancel
Save