Bridge zombienet tests - move all test scripts to the same folder (#3333)

Related to https://github.com/paritytech/polkadot-sdk/issues/3242
This commit is contained in:
Serban Iorga
2024-02-15 13:56:58 +01:00
committed by GitHub
parent 150a360c41
commit 5fc7622cb3
58 changed files with 97 additions and 229 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
INVOKE_LOG=`mktemp -p $TEST_FOLDER invoke.XXXXX`
pushd $POLKADOT_SDK_PATH/bridges/testing/environments/rococo-westend
./bridges_rococo_westend.sh $1 >$INVOKE_LOG 2>&1
popd
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
RELAY_LOG=`mktemp -p $TEST_FOLDER relay.XXXXX`
pushd $POLKADOT_SDK_PATH/bridges/testing/environments/rococo-westend
./bridges_rococo_westend.sh run-relay >$RELAY_LOG 2>&1&
popd
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
set -e
# every network adds a char to the file, let's remove ours
truncate -s -1 $TEST_FOLDER/exit-sync
# when all chars are removed, then our test is done
while true
do
if [ `stat --printf="%s" $TEST_FOLDER/exit-sync` -eq 0 ]; then
exit
fi
sleep 100
done