aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-12-15 11:49:16 +0100
committerGitHub <[email protected]>2016-12-15 11:49:16 +0100
commitd708bbbda37c8f0d5970e169c94bb3537dc12f62 (patch)
tree02331f735c3ab2d3102a557e538b6c3b77bbdf32 /scripts
parent3473ecd83a7bbe7e0bebb865f25dddb93e3bf10f (diff)
parent709be2f95c1df3b684e3ce036b98bdda3efa3f09 (diff)
downloadotp-d708bbbda37c8f0d5970e169c94bb3537dc12f62.tar.gz
otp-d708bbbda37c8f0d5970e169c94bb3537dc12f62.tar.bz2
otp-d708bbbda37c8f0d5970e169c94bb3537dc12f62.zip
Merge pull request #1277 from bjorng/bjorn/travis-run-tests
Make sure that Travis fails when test cases fail
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-smoke-tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/run-smoke-tests b/scripts/run-smoke-tests
new file mode 100755
index 0000000000..c2333e7825
--- /dev/null
+++ b/scripts/run-smoke-tests
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -ev
+
+cd $ERL_TOP/release/tests/test_server
+$ERL_TOP/bin/erl -s ts install -s ts smoke_test batch -s init stop
+
+if grep -q '=failed *[1-9]' ct_run.test_server@*/*/run.*/suite.log; then
+ echo "One or more tests failed."
+ exit 1
+fi