aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh21
1 files changed, 5 insertions, 16 deletions
diff --git a/test.sh b/test.sh
index 14f0145..ebaa622 100755
--- a/test.sh
+++ b/test.sh
@@ -1,18 +1,7 @@
#!/bin/bash
-if [ -z "$1" ]
-then
- echo "Usage: $0 <path to .cup file>"
- exit 1
-fi
-
-set -xe
-
-./compile.sh
-./cupcc $@
-./assemble.sh output.nasm
-
-set +e
-
-./a.out
-echo "Exit status: $?" \ No newline at end of file
+for i in `ls tests/*.sh | grep -v common.sh`
+do
+ echo "Running $i"
+ bash $i
+done \ No newline at end of file