summaryrefslogtreecommitdiffstats
path: root/fsa/src/alltest/vectorizer_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fsa/src/alltest/vectorizer_test.sh')
-rwxr-xr-xfsa/src/alltest/vectorizer_test.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/fsa/src/alltest/vectorizer_test.sh b/fsa/src/alltest/vectorizer_test.sh
index f1d70397472..5e482935da1 100755
--- a/fsa/src/alltest/vectorizer_test.sh
+++ b/fsa/src/alltest/vectorizer_test.sh
@@ -1,4 +1,9 @@
#!/bin/bash
set -e
-./fsa_vectorizer_test_app < testinput.txt > vectorizer_test.output
-diff vectorizer_test.output vectorizer_test.out
+
+if [ -z "$SOURCE_DIRECTORY" ]; then
+ SOURCE_DIRECTORY="."
+fi
+
+./fsa_vectorizer_test_app < $SOURCE_DIRECTORY/testinput.txt > vectorizer_test.output
+diff vectorizer_test.output $SOURCE_DIRECTORY/vectorizer_test.out