forked from iotaledger/hornet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runTests.sh
executable file
·29 lines (23 loc) · 910 Bytes
/
runTests.sh
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
#!/bin/bash
TEST_NAMES='common value migration snapshot autopeering'
echo "Build latest HORNET image"
docker build -f ../Dockerfile -t hornet:dev ../.
if ! docker image ls | grep -q wfmock
then
echo "Pull additional Docker images"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
docker build github.com/iotaledger/chrysalis-tools#:wfmock -t wfmock:latest
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "wfmock:latest needs to be built by hand before running this scripts"
exit 1
fi
fi
docker pull iotaledger/inx-coordinator:1.0-rc
docker pull iotaledger/inx-indexer:1.0-rc
echo "Run integration tests"
for name in $TEST_NAMES; do
echo "Run ${name}"
TEST_NAME=$name docker compose -f tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build
docker logs tester &>logs/"$name"_tester.log
TEST_NAME=$name docker compose -f tester/docker-compose.yml down
done