diff options
Diffstat (limited to 'scripts/run-smoke-tests')
-rwxr-xr-x | scripts/run-smoke-tests | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/run-smoke-tests b/scripts/run-smoke-tests new file mode 100755 index 0000000000..5a850c7107 --- /dev/null +++ b/scripts/run-smoke-tests @@ -0,0 +1,21 @@ +#!/bin/bash +set -ev + +if [ -z "$ERL_TOP" ]; then + ERL_TOP=$(pwd) +fi + +function run_smoke_tests { + 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 + rm -rf ct_run.test_server@* +} + +run_smoke_tests +ERL_FLAGS="-smp disable" run_smoke_tests + |