diff options
Diffstat (limited to 'fsa/src/alltest/detector_test.sh')
-rwxr-xr-x | fsa/src/alltest/detector_test.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fsa/src/alltest/detector_test.sh b/fsa/src/alltest/detector_test.sh index 73748a3382e..a712e313b0f 100755 --- a/fsa/src/alltest/detector_test.sh +++ b/fsa/src/alltest/detector_test.sh @@ -1,4 +1,9 @@ #!/bin/bash set -e -./fsa_detector_test_app < testinput.txt > detector_test.output -diff detector_test.output detector_test.out + +if [ -z "$SOURCE_DIRECTORY" ]; then + SOURCE_DIRECTORY="." +fi + +./fsa_detector_test_app < $SOURCE_DIRECTORY/testinput.txt > detector_test.output +diff detector_test.output $SOURCE_DIRECTORY/detector_test.out |