aboutsummaryrefslogtreecommitdiffstats
path: root/run_test_deliverable.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run_test_deliverable.sh')
-rwxr-xr-xrun_test_deliverable.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/run_test_deliverable.sh b/run_test_deliverable.sh
index 03770a0..74a285d 100755
--- a/run_test_deliverable.sh
+++ b/run_test_deliverable.sh
@@ -1,17 +1,18 @@
#!/bin/bash
-if [[ -z "$1" ]]; then
+if [[ "$1" -eq 0 ]]; then
COMPILER=bin/c_compiler
- #COMPILER=test_deliverable/c_compiler_ref.sh
-else
+elif [[ "$1" -eq 1 ]]; then
COMPILER=bin/c_compiler
make clean
make -B ${COMPILER}
+elif [[ "$1" -eq 2 ]]; then
+ COMPILER=test_deliverable/c_compiler_ref.sh
fi
echo ""
echo "========================================"
-echo " Testing compiler"
+echo " Testing compiler : ${COMPILER}"
echo ""
PASSED=0