Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Add script to run integration tests (#1431)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people committed Aug 5, 2022
1 parent afb02cb commit f07c197
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions scripts/parachains_integration_tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f07c197

Please sign in to comment.