From 708bb7bee680aeb8ad30c8b13a8b04b2da83d000 Mon Sep 17 00:00:00 2001 From: Ignacio Palacios Date: Tue, 2 Aug 2022 16:33:34 +0200 Subject: [PATCH] Add script to run integration tests (#1431) * script run integration tests * Update scripts/parachains_integration_tests.sh Co-authored-by: Squirrel * Update scripts/parachains_integration_tests.sh Co-authored-by: Chevdor * Update scripts/parachains_integration_tests.sh Co-authored-by: Squirrel Co-authored-by: Chevdor --- .../scripts/parachains_integration_tests.sh | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 cumulus/scripts/parachains_integration_tests.sh diff --git a/cumulus/scripts/parachains_integration_tests.sh b/cumulus/scripts/parachains_integration_tests.sh new file mode 100755 index 0000000000..ed920f430f --- /dev/null +++ b/cumulus/scripts/parachains_integration_tests.sh @@ -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