diff options
Diffstat (limited to 'fsa')
-rwxr-xr-x | fsa/src/alltest/alltest.sh | 19 | ||||
-rwxr-xr-x | fsa/src/alltest/detector_test.sh | 1 | ||||
-rwxr-xr-x | fsa/src/alltest/fsa_test.sh | 1 | ||||
-rwxr-xr-x | fsa/src/alltest/lookup_test.sh | 1 | ||||
-rwxr-xr-x | fsa/src/alltest/ngram_test.sh | 1 | ||||
-rwxr-xr-x | fsa/src/alltest/segmenter_test.sh | 1 | ||||
-rwxr-xr-x | fsa/src/alltest/vectorizer_test.sh | 1 |
7 files changed, 21 insertions, 4 deletions
diff --git a/fsa/src/alltest/alltest.sh b/fsa/src/alltest/alltest.sh index 37274721e25..9225a9dafec 100755 --- a/fsa/src/alltest/alltest.sh +++ b/fsa/src/alltest/alltest.sh @@ -1,11 +1,22 @@ #!/bin/bash -./detector_test.sh -./fsa_test.sh +set -e + +# first create the FSA ./fsa_fsa_create_test_app -./fsa_fsa_perf_test_app -./fsa_fsamanager_test_app . __testfsa__.__fsa__ + +# simple tests ./lookup_test.sh +./fsa_test.sh +./detector_test.sh + +# advanced tests ./ngram_test.sh ./segmenter_test.sh ./vectorizer_test.sh + +# manager test +./fsa_fsamanager_test_app . __testfsa__.__fsa__ + +# perf tests ./fsa_vectorizer_perf_test_app +./fsa_fsa_perf_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 |