Files
pezkuwi-sdk/pezbridges/testing/tests/0003-required-headers-synced-while-active/run.sh
T
pezkuwichain 90fd044766 fix: Complete snowbridge pezpallet rebrand and critical bug fixes
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs)
- pallet/ directories → pezpallet/ (4 locations)
- Fixed pezpallet.rs self-include recursion bug
- Fixed sc-chain-spec hardcoded crate name in derive macro
- Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API)
- Added BizinikiwiConfig type alias for zombienet tests
- Deleted obsolete session state files

Verified: pezsnowbridge-pezpallet-*, pezpallet-staking,
pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
2025-12-16 09:57:23 +03:00

45 lines
1.6 KiB
Bash
Executable File

#!/usr/bin/env bash
set -e
# TODO: This test doesn't work. It was added at a time when we couldn't run it because we didn't have the scafolding.
# It needs to be fixed. For the moment we keep it in the repo as it is since the idea has value.
# But we don't run it in the CI.
source "${BASH_SOURCE%/*}/../../framework/utils/common.sh"
source "${BASH_SOURCE%/*}/../../framework/utils/zombienet.sh"
export ENV_PATH=`realpath ${BASH_SOURCE%/*}/../../environments/pezkuwichain-zagros`
logs_dir=$TEST_DIR/logs
$ENV_PATH/spawn.sh --init &
env_pid=$!
ensure_process_file $env_pid $TEST_DIR/pezkuwichain.env 600
pezkuwichain_dir=`cat $TEST_DIR/pezkuwichain.env`
echo
ensure_process_file $env_pid $TEST_DIR/zagros.env 300
zagros_dir=`cat $TEST_DIR/zagros.env`
echo
echo "Sending message from Pezkuwichain to Zagros"
$ENV_PATH/helper.sh auto-log reserve-transfer-assets-from-asset-hub-pezkuwichain-local 5000000000000
echo
echo "Sending message from Zagros to Pezkuwichain"
$ENV_PATH/helper.sh auto-log reserve-transfer-assets-from-asset-hub-zagros-local 5000000000000
echo
# Start the relayer with a 30s delay
# We want to be sure that the messages won't be relayed before starting the js script in `pezkuwichain-to-zagros.zndsl`
start_relayer_log=$logs_dir/start_relayer.log
echo -e "The pezkuwichain-zagros relayer will be started in 30s. Logs will be available at: $start_relayer_log\n"
(sleep 30 && $ENV_PATH/start_relayer.sh \
$pezkuwichain_dir $zagros_dir finality_relayer_pid teyrchains_relayer_pid messages_relayer_pid > $start_relayer_log)&
run_zndsl ${BASH_SOURCE%/*}/pezkuwichain-to-zagros.zndsl $zagros_dir