From f07c197d7f8de40c3bf77ce9d2e7535b923f3088 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 scripts/parachains_integration_tests.sh diff --git a/scripts/parachains_integration_tests.sh b/scripts/parachains_integration_tests.sh new file mode 100755 index 00000000000..ed920f430fc --- /dev/null +++ b/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