summaryrefslogtreecommitdiff
path: root/tests/run-tests.sh
blob: d910e93dc8e63c727d76c6913abcf666f9d8583f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

PARSECMD=../build/parse
PARSEFILE=" "

parse () {
	echo "ATTEMPTING TO PARSE $1-test.tnsl"
    $PARSECMD $2 -in $1-test.tnsl -out $1-test.tnt
	if [ $? -eq 0 ]; then
		echo "SUCCESS!"
	fi
}

parse block "$1"
parse comment "$1"
parse literal "$1"
parse parameter "$1"
parse statement "$1"