diff options
author | Vegard Sjonfjell <vegardsjo@gmail.com> | 2016-06-28 13:20:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 13:20:00 +0200 |
commit | 7824d2b515cba557c9c4028591ede0b4b9256b77 (patch) | |
tree | 888581b502ba64706658ead749492708927d1b8a /searchsummary/src/tests | |
parent | 3962f601fa92e8aba19e3efc230840b9f4f5a5a7 (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 'searchsummary/src/tests')
-rwxr-xr-x | searchsummary/src/tests/docsumformat/docsum-index.sh | 3 | ||||
-rwxr-xr-x | searchsummary/src/tests/docsumformat/dotest.sh | 3 | ||||
-rwxr-xr-x | searchsummary/src/tests/extractkeywords/runtests.sh | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/searchsummary/src/tests/docsumformat/docsum-index.sh b/searchsummary/src/tests/docsumformat/docsum-index.sh index 0d313191685..94412986683 100755 --- a/searchsummary/src/tests/docsumformat/docsum-index.sh +++ b/searchsummary/src/tests/docsumformat/docsum-index.sh @@ -1,5 +1,6 @@ -#!/bin/sh -e +#!/bin/bash # Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +set -e findex=../../../bin/findex diff --git a/searchsummary/src/tests/docsumformat/dotest.sh b/searchsummary/src/tests/docsumformat/dotest.sh index 64097b0061d..056e043de02 100755 --- a/searchsummary/src/tests/docsumformat/dotest.sh +++ b/searchsummary/src/tests/docsumformat/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 echo "running pack test..." ./docsum-pack > packtest.out 2>&1 diff --git a/searchsummary/src/tests/extractkeywords/runtests.sh b/searchsummary/src/tests/extractkeywords/runtests.sh index 2c09bb25460..1324f3ebc2e 100755 --- a/searchsummary/src/tests/extractkeywords/runtests.sh +++ b/searchsummary/src/tests/extractkeywords/runtests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. # # $Id$ @@ -8,6 +8,7 @@ # # All Rights Reserved # +set -e if $VALGRIND ./searchsummary_extractkeywordstest_app - then @@ -26,4 +27,3 @@ else fi echo SUCCESS: searchsummary_extractkeywordstest_app test completed -exit 0 |