summaryrefslogtreecommitdiff
path: root/scripts/run-smoke-tests
blob: 82231a2b81ee951e6ded42ef5e6f79ff61f6f2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -ev

if [ -d $ERL_TOP/release/tests/test_server ]; then
    cd $ERL_TOP/release/tests/test_server
elif [ -d test_server ]; then
    cd test_server
else
    echo "Could not find tests"
    exit 1;
fi

erl -noshell -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@*