summaryrefslogtreecommitdiffstats
path: root/fsa
diff options
context:
space:
mode:
authorVegard Sjonfjell <vegardsjo@gmail.com>2016-06-28 13:20:00 +0200
committerGitHub <noreply@github.com>2016-06-28 13:20:00 +0200
commit7824d2b515cba557c9c4028591ede0b4b9256b77 (patch)
tree888581b502ba64706658ead749492708927d1b8a /fsa
parent3962f601fa92e8aba19e3efc230840b9f4f5a5a7 (diff)
Fail test scripts on first error (#194)
* Fail test scripts on first error * Some more test fixes * Reverted prod_features_test fix * Re-added prod_features_test.sh change matching that of PR #193 * More error checking * Reverted set -e on failing tests * Enable errexit in lowercasing test
Diffstat (limited to 'fsa')
-rwxr-xr-xfsa/src/alltest/alltest.sh1
-rwxr-xr-xfsa/src/alltest/detector_test.sh1
-rwxr-xr-xfsa/src/alltest/fsa_test.sh1
-rwxr-xr-xfsa/src/alltest/lookup_test.sh1
-rwxr-xr-xfsa/src/alltest/ngram_test.sh1
-rwxr-xr-xfsa/src/alltest/segmenter_test.sh1
-rwxr-xr-xfsa/src/alltest/vectorizer_test.sh1
7 files changed, 7 insertions, 0 deletions
diff --git a/fsa/src/alltest/alltest.sh b/fsa/src/alltest/alltest.sh
index 37274721e25..ad9994b7464 100755
--- a/fsa/src/alltest/alltest.sh
+++ b/fsa/src/alltest/alltest.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+set -e
./detector_test.sh
./fsa_test.sh
./fsa_fsa_create_test_app
diff --git a/fsa/src/alltest/detector_test.sh b/fsa/src/alltest/detector_test.sh
index dd6f650a35c..73748a3382e 100755
--- a/fsa/src/alltest/detector_test.sh
+++ b/fsa/src/alltest/detector_test.sh
@@ -1,3 +1,4 @@
#!/bin/bash
+set -e
./fsa_detector_test_app < testinput.txt > detector_test.output
diff detector_test.output detector_test.out
diff --git a/fsa/src/alltest/fsa_test.sh b/fsa/src/alltest/fsa_test.sh
index 497fd291c4d..09470044430 100755
--- a/fsa/src/alltest/fsa_test.sh
+++ b/fsa/src/alltest/fsa_test.sh
@@ -1,3 +1,4 @@
#!/bin/bash
+set -e
./fsa_fsa_test_app > fsa_test.output
diff fsa_test.output fsa_test.out
diff --git a/fsa/src/alltest/lookup_test.sh b/fsa/src/alltest/lookup_test.sh
index 394baecc78a..1732e21de65 100755
--- a/fsa/src/alltest/lookup_test.sh
+++ b/fsa/src/alltest/lookup_test.sh
@@ -1,3 +1,4 @@
#!/bin/bash
+set -e
./fsa_lookup_test_app __testfsa__.__fsa__ < testinput.txt > lookup_test.output
diff lookup_test.output lookup_test.out
diff --git a/fsa/src/alltest/ngram_test.sh b/fsa/src/alltest/ngram_test.sh
index 85559d6e391..6116737c5fa 100755
--- a/fsa/src/alltest/ngram_test.sh
+++ b/fsa/src/alltest/ngram_test.sh
@@ -1,3 +1,4 @@
#!/bin/bash
+set -e
./fsa_ngram_test_app > ngram_test.output
diff ngram_test.output ngram_test.out
diff --git a/fsa/src/alltest/segmenter_test.sh b/fsa/src/alltest/segmenter_test.sh
index d36a6d10057..d5c84f6af34 100755
--- a/fsa/src/alltest/segmenter_test.sh
+++ b/fsa/src/alltest/segmenter_test.sh
@@ -1,3 +1,4 @@
#!/bin/bash
+set -e
./fsa_segmenter_test_app < testinput.txt > segmenter_test.output
diff segmenter_test.output segmenter_test.out
diff --git a/fsa/src/alltest/vectorizer_test.sh b/fsa/src/alltest/vectorizer_test.sh
index 03d794fc6e8..f1d70397472 100755
--- a/fsa/src/alltest/vectorizer_test.sh
+++ b/fsa/src/alltest/vectorizer_test.sh
@@ -1,3 +1,4 @@
#!/bin/bash
+set -e
./fsa_vectorizer_test_app < testinput.txt > vectorizer_test.output
diff vectorizer_test.output vectorizer_test.out