summaryrefslogtreecommitdiffstats
path: root/fsa/src/alltest/ngram_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fsa/src/alltest/ngram_test.sh')
-rwxr-xr-xfsa/src/alltest/ngram_test.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/fsa/src/alltest/ngram_test.sh b/fsa/src/alltest/ngram_test.sh
index 6116737c5fa..cc3ccb83b0f 100755
--- a/fsa/src/alltest/ngram_test.sh
+++ b/fsa/src/alltest/ngram_test.sh
@@ -1,4 +1,9 @@
#!/bin/bash
set -e
+
+if [ -z "$SOURCE_DIRECTORY" ]; then
+ SOURCE_DIRECTORY="."
+fi
+
./fsa_ngram_test_app > ngram_test.output
-diff ngram_test.output ngram_test.out
+diff ngram_test.output $SOURCE_DIRECTORY/ngram_test.out