summaryrefslogtreecommitdiff
path: root/tests/run-tests.sh
blob: 2b8f4608566c0567a4fd116144989643bc6a0dfb (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"