From 709be2f95c1df3b684e3ce036b98bdda3efa3f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Mon, 12 Dec 2016 15:33:35 +0100 Subject: Make sure that Travis fails when test cases fail --- scripts/run-smoke-tests | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/run-smoke-tests (limited to 'scripts') 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 -- cgit v1.2.3