From 88fc50b4c1ff95c02a14743a3dfe31dddf49ea44 Mon Sep 17 00:00:00 2001 From: dung5ire Date: Fri, 18 Oct 2024 15:50:55 +0700 Subject: [PATCH] feat: add script to run tests suite --- .../insert-genesis-validator.sh | 0 scripts/run-integration-tests.sh | 19 +++++++++++++++++++ scripts/run-localnet.sh | 2 -- 3 files changed, 19 insertions(+), 2 deletions(-) rename scripts/{insert-session-keys => }/insert-genesis-validator.sh (100%) create mode 100755 scripts/run-integration-tests.sh diff --git a/scripts/insert-session-keys/insert-genesis-validator.sh b/scripts/insert-genesis-validator.sh similarity index 100% rename from scripts/insert-session-keys/insert-genesis-validator.sh rename to scripts/insert-genesis-validator.sh diff --git a/scripts/run-integration-tests.sh b/scripts/run-integration-tests.sh new file mode 100755 index 00000000..39a4ca1f --- /dev/null +++ b/scripts/run-integration-tests.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +: "${BUILD_BINARY:=1}" + +if [[ $BUILD_BINARY == "1" ]]; then + echo "*** Building 5ire node binary..." + cargo build --release --features firechain-qa 1>/dev/null + echo "*** Binary compiled" +fi + + + +cd integration-test-suite + +yarn install + +yarn test + +cd .. diff --git a/scripts/run-localnet.sh b/scripts/run-localnet.sh index 7669ed26..5654dc4e 100755 --- a/scripts/run-localnet.sh +++ b/scripts/run-localnet.sh @@ -31,7 +31,6 @@ alice_start=( --rpc-port 9934 --validator --rpc-cors=all - --execution native ) bob_start=( @@ -42,7 +41,6 @@ bob_start=( --port 30335 --rpc-port 9935 --validator - --execution native --bootnodes "/ip4/127.0.0.1/tcp/30334/p2p/12D3KooWBBUaVWE5SYj3UvnoXojfS8fvPorw5biRDaDQV7XXwCXm" )