mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 16:21:06 +00:00
c66d8a8468
TODOs: - [x] wait and see if test `1` works; - [x] ~think of whether we need remaining tests.~ I think we should keep it - will try to revive and update it
30 lines
962 B
Bash
Executable File
30 lines
962 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
source "${BASH_SOURCE%/*}/../../framework/utils/common.sh"
|
|
source "${BASH_SOURCE%/*}/../../framework/utils/zombienet.sh"
|
|
|
|
export ENV_PATH=`realpath ${BASH_SOURCE%/*}/../../environments/rococo-westend`
|
|
|
|
$ENV_PATH/spawn.sh &
|
|
env_pid=$!
|
|
|
|
ensure_process_file $env_pid $TEST_DIR/rococo.env 600
|
|
rococo_dir=`cat $TEST_DIR/rococo.env`
|
|
echo
|
|
|
|
ensure_process_file $env_pid $TEST_DIR/westend.env 300
|
|
westend_dir=`cat $TEST_DIR/westend.env`
|
|
echo
|
|
|
|
# Sleep for some time before starting the relayer. We want to sleep for at least 1 session,
|
|
# which is expected to be 60 seconds for the test environment.
|
|
echo -e "Sleeping 90s before starting relayer ...\n"
|
|
sleep 90
|
|
${BASH_SOURCE%/*}/../../environments/rococo-westend/start_relayer.sh $rococo_dir $westend_dir finality_relayer_pid parachains_relayer_pid messages_relayer_pid
|
|
|
|
run_zndsl ${BASH_SOURCE%/*}/rococo-to-westend.zndsl $westend_dir
|
|
run_zndsl ${BASH_SOURCE%/*}/westend-to-rococo.zndsl $rococo_dir
|
|
|