summaryrefslogtreecommitdiffstats
path: root/test/parser-test-func.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser-test-func.sh')
-rwxr-xr-xtest/parser-test-func.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/parser-test-func.sh b/test/parser-test-func.sh
new file mode 100755
index 0000000..f55c41e
--- /dev/null
+++ b/test/parser-test-func.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+exec_test()
+{
+ PROGDIR=`dirname $0`
+ SRCDIR=$PROGDIR/../src
+
+ export PATH=$SRCDIR:$SRCDIR/.libs:$PATH
+
+ ixion-parser -t $1 $PROGDIR/*.txt
+}
+