aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
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 /vespalib
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 'vespalib')
-rwxr-xr-xvespalib/src/tests/tutorial/compare-tutorials.sh3
-rwxr-xr-xvespalib/src/vespa/vespalib/testkit/progctl.sh3
-rwxr-xr-xvespalib/src/vespa/vespalib/testkit/run-test.sh3
-rwxr-xr-xvespalib/src/vespa/vespalib/testkit/testrun.sh3
4 files changed, 7 insertions, 5 deletions
diff --git a/vespalib/src/tests/tutorial/compare-tutorials.sh b/vespalib/src/tests/tutorial/compare-tutorials.sh
index 2c2aa7f4c44..4e328bb9742 100755
--- a/vespalib/src/tests/tutorial/compare-tutorials.sh
+++ b/vespalib/src/tests/tutorial/compare-tutorials.sh
@@ -1,5 +1,4 @@
-#!/bin/sh
-
+#!/bin/bash
set -e
./vespalib_make_tutorial_app > tutorial_out.html
diff --git a/vespalib/src/vespa/vespalib/testkit/progctl.sh b/vespalib/src/vespa/vespalib/testkit/progctl.sh
index 27f2a176adb..5cd53dd0f62 100755
--- a/vespalib/src/vespa/vespalib/testkit/progctl.sh
+++ b/vespalib/src/vespa/vespalib/testkit/progctl.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
# define prog entry (called from progdefs file)
# $1 - program name
diff --git a/vespalib/src/vespa/vespalib/testkit/run-test.sh b/vespalib/src/vespa/vespalib/testkit/run-test.sh
index 3380d9c0277..9cd99c03c66 100755
--- a/vespalib/src/vespa/vespalib/testkit/run-test.sh
+++ b/vespalib/src/vespa/vespalib/testkit/run-test.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
top_color="bgcolor=\"#ccccff\""
row_color="bgcolor=\"#eeeeff\""
diff --git a/vespalib/src/vespa/vespalib/testkit/testrun.sh b/vespalib/src/vespa/vespalib/testkit/testrun.sh
index cea9d310e45..07243d3167e 100755
--- a/vespalib/src/vespa/vespalib/testkit/testrun.sh
+++ b/vespalib/src/vespa/vespalib/testkit/testrun.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
top_color="bgcolor=\"#ccccff\""
row_color="bgcolor=\"#eeeeff\""