mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 14:27:57 +00:00
Add script to run integration tests (#1431)
* script run integration tests * Update scripts/parachains_integration_tests.sh Co-authored-by: Squirrel <gilescope@gmail.com> * Update scripts/parachains_integration_tests.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * Update scripts/parachains_integration_tests.sh Co-authored-by: Squirrel <gilescope@gmail.com> Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
tests=(
|
||||
statemine
|
||||
statemint
|
||||
)
|
||||
|
||||
rm -R logs &> /dev/null
|
||||
|
||||
for t in ${tests[@]}
|
||||
do
|
||||
printf "\n🔍 Running $t tests...\n\n"
|
||||
|
||||
mkdir -p logs/$t
|
||||
|
||||
parachains-integration-tests \
|
||||
-m zombienet \
|
||||
-c ./parachains/integration-tests/$t/config.toml \
|
||||
-cl ./logs/$t/chains.log 2> /dev/null &
|
||||
|
||||
parachains-integration-tests \
|
||||
-m test \
|
||||
-t ./parachains/integration-tests/$t \
|
||||
-tl ./logs/$t/tests.log & tests=$!
|
||||
|
||||
wait $tests
|
||||
|
||||
pkill -f polkadot
|
||||
pkill -f parachain
|
||||
|
||||
printf "\n🎉 $t integration tests finished! \n\n"
|
||||
done
|
||||
Reference in New Issue
Block a user