2019-06-27 10:57:45 +03:00
|
|
|
cd $(dirname $0)
|
|
|
|
|
2020-11-04 22:16:43 +03:00
|
|
|
mode="$1"
|
|
|
|
case "$mode" in
|
|
|
|
amb)
|
|
|
|
script=./test/amb.js
|
|
|
|
;;
|
|
|
|
native-to-erc)
|
|
|
|
script=./test/nativeToErc.js
|
|
|
|
;;
|
|
|
|
erc-to-erc)
|
|
|
|
script=./test/ercToErc.js
|
|
|
|
;;
|
|
|
|
erc-to-native)
|
|
|
|
script=./test/ercToNative.js
|
|
|
|
;;
|
|
|
|
esac
|
2019-06-27 10:57:45 +03:00
|
|
|
|
2020-11-04 22:16:43 +03:00
|
|
|
MODE="$mode" ../e2e-commons/up.sh deploy blocks monitor
|
|
|
|
|
|
|
|
MODE="$mode" ./wait-for-monitor.sh
|
2019-08-27 17:26:49 +03:00
|
|
|
nohup ./periodically-check-all.sh < /dev/null > /dev/null 2>&1 &
|
|
|
|
checkPID=$!
|
2019-06-27 10:57:45 +03:00
|
|
|
|
2020-11-04 22:16:43 +03:00
|
|
|
docker-compose -f ../e2e-commons/docker-compose.yml run e2e yarn workspace monitor-e2e run start $script
|
2019-08-27 17:26:49 +03:00
|
|
|
rc=$?
|
2019-06-27 10:57:45 +03:00
|
|
|
|
2019-08-27 17:26:49 +03:00
|
|
|
../e2e-commons/down.sh
|
|
|
|
kill $checkPID
|
|
|
|
exit $rc
|