github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/test/regression/release/runReleaseTestSuite.sh (about) 1 #!/bin/bash 2 # 3 # Copyright IBM Corp. All Rights Reserved. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 8 DAILYDIR="$GOPATH/src/github.com/hyperledger/fabric/test/regression/daily" 9 RELEASEDIR="$GOPATH/src/github.com/hyperledger/fabric/test/regression/release" 10 11 export FABRIC_ROOT_DIR=$GOPATH/src/github.com/hyperledger/fabric 12 13 cd $FABRIC_ROOT_DIR || exit 14 15 IS_RELEASE=`cat Makefile | grep IS_RELEASE | awk '{print $3}'` 16 echo "=======>" $IS_RELEASE 17 18 # IS_RELEASE=True specify the Release check. Trigger Release tests only 19 # if IS_RELEASE=TRUE 20 21 if [ $IS_RELEASE != "true" ]; then 22 echo "=======> TRIGGER ONLY on RELEASE !!!!!" 23 exit 0 24 else 25 26 cd $RELEASEDIR 27 28 docker rm -f $(docker ps -aq) || true 29 echo "=======> Execute make targets" 30 chmod +x run_make_targets.sh 31 py.test -v --junitxml results_make_targets.xml make_targets_release_tests.py 32 33 echo "=======> Execute SDK tests..." 34 chmod +x run_e2e_node_sdk.sh 35 chmod +x run_e2e_java_sdk.sh 36 py.test -v --junitxml results_e2e_sdk.xml e2e_sdk_release_tests.py 37 38 docker rm -f $(docker ps -aq) || true 39 echo "=======> Execute byfn tests..." 40 chmod +x run_byfn_cli_release_tests.sh 41 chmod +x run_node_sdk_byfn.sh 42 py.test -v --junitxml results_byfn_cli.xml byfn_release_tests.py 43 44 cd $DAILYDIR 45 46 docker rm -f $(docker ps -aq) || true 47 echo "=======> Ledger component performance tests..." 48 py.test -v --junitxml results_ledger_lte.xml ledger_lte.py 49 50 docker rm -f $(docker ps -aq) || true 51 echo "=======> Test Auction Chaincode ..." 52 py.test -v --junitxml results_auction_daily.xml testAuctionChaincode.py 53 54 fi