diff options
Diffstat (limited to 'searchlib/src')
12 files changed, 14 insertions, 4 deletions
diff --git a/searchlib/src/tests/attribute/changevector/changevector_test.sh b/searchlib/src/tests/attribute/changevector/changevector_test.sh index cb70f5465a4..23b08c5a637 100644 --- a/searchlib/src/tests/attribute/changevector/changevector_test.sh +++ b/searchlib/src/tests/attribute/changevector/changevector_test.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e $VALGRIND ./searchlib_changevector_test_app rm -rf *.dat rm -rf *.idx diff --git a/searchlib/src/tests/attribute/extendattributes/extendattribute_test.sh b/searchlib/src/tests/attribute/extendattributes/extendattribute_test.sh index 6f335b18229..193ab23a494 100755 --- a/searchlib/src/tests/attribute/extendattributes/extendattribute_test.sh +++ b/searchlib/src/tests/attribute/extendattributes/extendattribute_test.sh @@ -1,3 +1,4 @@ #!/bin/bash +set -e $VALGRIND ./searchlib_extendattribute_test_app rm -rf *.dat diff --git a/searchlib/src/tests/attribute/guard/attributeguard_test.sh b/searchlib/src/tests/attribute/guard/attributeguard_test.sh index 6a9557e7da7..2f3e65dbc91 100644 --- a/searchlib/src/tests/attribute/guard/attributeguard_test.sh +++ b/searchlib/src/tests/attribute/guard/attributeguard_test.sh @@ -1,4 +1,5 @@ -#!/bin/bahs +#!/bin/bash +set -e $VALGRIND ./searchlib_attributeguard_test_app rm -rf *.dat rm -rf *.idx diff --git a/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.sh b/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.sh index e6f9c214cb9..afad9aa991a 100755 --- a/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.sh +++ b/searchlib/src/tests/attribute/postinglistattribute/postinglistattribute_test.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e $VALGRIND ./searchlib_postinglistattribute_test_app rm -rf *.dat rm -rf *.idx diff --git a/searchlib/src/tests/attribute/searchcontext/searchcontext_test.sh b/searchlib/src/tests/attribute/searchcontext/searchcontext_test.sh index 3aae4bfe4d5..2695a8ba51d 100755 --- a/searchlib/src/tests/attribute/searchcontext/searchcontext_test.sh +++ b/searchlib/src/tests/attribute/searchcontext/searchcontext_test.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e $VALGRIND ./searchlib_searchcontext_test_app rm -rf *.dat rm -rf *.idx diff --git a/searchlib/src/tests/attribute/stringattribute/stringattribute_test.sh b/searchlib/src/tests/attribute/stringattribute/stringattribute_test.sh index d7ac263c1c9..b40958b46bd 100755 --- a/searchlib/src/tests/attribute/stringattribute/stringattribute_test.sh +++ b/searchlib/src/tests/attribute/stringattribute/stringattribute_test.sh @@ -1,3 +1,4 @@ #!/bin/bash +set -e $VALGRIND ./searchlib_stringattribute_test_app rm -rf *.dat diff --git a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.sh b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.sh index 2e940d5d99a..1f24dbafa16 100644 --- a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.sh +++ b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.sh @@ -1,3 +1,4 @@ #!/bin/bash +set -e $VALGRIND ./searchlib_tensorattribute_test_app rm -rf *.dat diff --git a/searchlib/src/tests/datastore/logdatastore_test.sh b/searchlib/src/tests/datastore/logdatastore_test.sh index 46455e1fae9..0f0b5ac255a 100755 --- a/searchlib/src/tests/datastore/logdatastore_test.sh +++ b/searchlib/src/tests/datastore/logdatastore_test.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cp -r bug-7257706 bug-7257706-truncated mkdir dangling-test cp bug-7257706/*.dat dangling-test/ diff --git a/searchlib/src/tests/diskindex/fieldwriter/runtests.sh b/searchlib/src/tests/diskindex/fieldwriter/runtests.sh index 1f2b6d6076f..09055693b5e 100755 --- a/searchlib/src/tests/diskindex/fieldwriter/runtests.sh +++ b/searchlib/src/tests/diskindex/fieldwriter/runtests.sh @@ -1,5 +1,6 @@ -#!/bin/sh +#!/bin/bash # Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +set -e rm -f new* chkpt* sync diff --git a/searchlib/src/tests/diskindex/fusion/fusion_test.sh b/searchlib/src/tests/diskindex/fusion/fusion_test.sh index 5e0ebfe4608..9d4837fb2ac 100755 --- a/searchlib/src/tests/diskindex/fusion/fusion_test.sh +++ b/searchlib/src/tests/diskindex/fusion/fusion_test.sh @@ -13,4 +13,3 @@ $IINSPECT showpostings --transpose --indexdir dump3 > transpose.out $ECHO_CMD dumping posting list for word z in field f0 $IINSPECT showpostings --indexdir dump3 --field f0 z > zwordf0field.out $ECHO_CMD inspection done. - diff --git a/searchlib/src/tests/transactionlog/translogclient_test.sh b/searchlib/src/tests/transactionlog/translogclient_test.sh index bf7ddab1fcf..5efb0b970e9 100755 --- a/searchlib/src/tests/transactionlog/translogclient_test.sh +++ b/searchlib/src/tests/transactionlog/translogclient_test.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e rm -rf test7 test8 test9 test10 test11 test12 test13 testremove $VALGRIND ./searchlib_translogclient_test_app rm -rf test7 test8 test9 test10 test11 test12 test13 testremove diff --git a/searchlib/src/tests/url/dotest.sh b/searchlib/src/tests/url/dotest.sh index f7ac1fd1e69..d091c625efd 100755 --- a/searchlib/src/tests/url/dotest.sh +++ b/searchlib/src/tests/url/dotest.sh @@ -1,5 +1,6 @@ -#!/bin/sh +#!/bin/bash # Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +set -e # Run test echo "Testing the FastS_URL class..." |