forked from lum-network/ibc-testbed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
36 lines (30 loc) · 673 Bytes
/
run.sh
File metadata and controls
36 lines (30 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
##
## Run the customized tests
## - prepare test env
## - run test
## - clean up test env
##
. ./.env
if [ $# -le 0 ]; then
echo '$> sh run.sh [test-name]'
exit 1
fi
if sh scripts/test-before.sh; then
echo '[INFO][run] Before test preparation success'
else
echo "[ERROR][run] Before test preparation failed"
sh scripts/test-after.sh >/dev/null 2>&1
exit 1
fi
if sh "tests/"$1".sh"; then
echo '[INFO][run] Test suite succeeded'
else
echo "[ERROR][run] Test suite failed"
fi
if sh scripts/test-after.sh; then
echo '[INFO][run] After test clean up success'
else
echo "[ERROR][run] After test clean up failed"
exit 1
fi
exit 0