summaryrefslogtreecommitdiff
path: root/tests/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-tests.sh')
-rwxr-xr-xtests/run-tests.sh18
1 files changed, 6 insertions, 12 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index 2443823..6cebbe7 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -2,17 +2,11 @@ PARSECMD=../build/parse
PARSEFILE=" "
parse () {
- $PARSECMD -in $PARSEFILE-test.tnsl -out $PARSEFILE-test.tnt
+ $PARSECMD -in $1-test.tnsl -out $1-test.tnt
}
-PARSEFILE=block
-parse
-
-PARSEFILE=comment
-parse
-
-PARSEFILE=literal
-parse
-
-PARSEFILE=parameter
-parse \ No newline at end of file
+parse block
+parse comment
+parse literal
+parse parameter
+parse statement \ No newline at end of file