github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/regression/longrun_test_suite.sh (about) 1 #!/bin/bash 2 # 3 # Copyright IBM Corp. 2016 All Rights Reserved. 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 # 17 18 # DESCRIPTION: 19 # These are the tests in the Daily Test Suite. 20 # To run these tests, user may clone the fabric, make code changes if 21 # desired, build images, and run any of these scripts - each of which 22 # may take between 12 hours and 3 days to complete. 23 24 # SETUP 25 26 WORKDIR=`pwd` 27 28 29 30 31 32 # Note to test developers: Many tests in the Daily Test Suite are 33 # specific tests that already contain the TEST OBJECTIVE and STEPS. 34 # However, in some cases, such as running a flexible test engine to 35 # perform different tests by using configuration parameters or 36 # environment variables, it must be provided here. 37 # For EACH of those test cases, before invoking the test, please 38 # provide a comment block like this: 39 40 #----------------------------------------------------------------------- 41 # TEST OBJECTIVE : basic network setup, deploy, invoke, query all peers 42 # using gRPC interface, and exercise chaincode APIs 43 # SETUP STEPS: 44 # 1. Set environment variable: export TEST_NETWORK=LOCAL 45 # TEST DETAILS (Optional): 46 # 1. Setup local docker network with security with 4 peer nodes 47 # 2. Deploy chaincode example02 48 # 3. Send Invoke Requests on all peers using go routines 49 # 4. Verify query results and chainheights match on all peers 50 #----------------------------------------------------------------------- 51 52 53 54 55 #UNDER CONSTRUCTION... 56 57 ######################################################################## 58 # Language API Functional Area 59 # GO TDK gRPC Consensus Regression Tests 60 ######################################################################## 61 62 cd $WORKDIR/go/tdk/CAT 63 #go run CRT_501_StopAndRestartRandom_10Hrs.go 64 #go run CRT_502_StopAndRestart1or2_10Hrs.go 65 ## run_largeNetworksBasicApiAndConsensus.sh: 66 #go run CRT_504_Npeers_Sf_S_R_Rf.go 67 68 69 ######################################################################## 70 # Language API Functional Area 71 # GO TDK gRPC Ledger Stress Tests 72 ######################################################################## 73 74 cd $WORKDIR/go/tdk/ledgerstresstest 75 ## release-criteria/fvt/consensus/tdk/automation/run_LST_3M.sh 76 #go run LST_4client1peer1M.go 77 #go run LST_4client4peer3M.go 78 ## release-criteria/svt/longruns/run_long_run_72hour_LOCAL.sh 79 #go run LongRun72hrAuto.go 80 81 82 ######################################################################## 83 # Language API Functional Area 84 # GO TDK gRPC Concurrency/Ledger 85 ######################################################################## 86 87 cd $WORKDIR/go/tdk/ledgerstresstest 88 89 90 ######################################################################## 91 # Language API Functional Area 92 # Node.js gRPC Concurrency with Auction 93 ######################################################################## 94 95 cd $WORKDIR/node/ 96 97 98 ######################################################################## 99 # Language API Functional Area 100 # Node.js gRPC Complex Transactions with Auction 101 ######################################################################## 102 103 cd $WORKDIR/node/ 104 105 106 ######################################################################## 107 # Language API Functional Area 108 # Node.js gRPC Performance engine tests 109 ######################################################################## 110 111 cd $WORKDIR/node/performance/ 112 113