github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/regression/daily_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 this script. 22 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 56 ######################################################################## 57 # Language API Functional Area 58 # GO TDK gRPC Consensus Acceptance Tests 59 ######################################################################## 60 61 cd $WORKDIR/go/tdk/CAT 62 #UNDER CONSTRUCTION... 63 #go run CAT_100_Startup_DIQ_API.go 64 #go run CAT_101_BasicConsensus_S1_R1_S2_S1_R1_R2.go 65 #go run CAT_102_S1_IQDQIQ.go 66 67 68 69 ######################################################################## 70 # Language API Functional Area 71 # GO TDK gRPC Transaction Speed Measurement 72 ######################################################################## 73 74 cd $WORKDIR/go/tdk/ledgerstresstest 75 #./run_speed_tests.sh 76 77 78 79 ######################################################################## 80 # Language API Functional Area 81 # GO TDK gRPC Ledger Stress Tests 82 ######################################################################## 83 84 cd $WORKDIR/go/tdk/ledgerstresstest 85 #go run BasicFuncExistingNetworkLST.go 86 #go run LST_1client1peer20K.go 87 #go run LST_2client1peer20K.go 88 #go run LST_2client2peer20K.go 89 #go run LST_4client1peer20K.go 90 #go run LST_4client4peer20K.go 91 92 93 94 ######################################################################## 95 # Language API Functional Area 96 # GO TDK gRPC Concurrency/Ledger 97 ######################################################################## 98 99 cd $WORKDIR/go/tdk/ledgerstresstest 100 #go run conc4p1min1000Thrd1TxPerLoop_LOCAL.go 101 #go run conc4p1min400Thrd_LOCAL.go 102 103 104 105 ######################################################################## 106 # Language API Functional Area 107 # Node.js gRPC Concurrency with Auction 108 ######################################################################## 109 110 cd $WORKDIR/node/ 111 112 113 114 ######################################################################## 115 # Language API Functional Area 116 # Node.js gRPC Complex Transactions with Auction 117 ######################################################################## 118 119 cd $WORKDIR/node/ 120 121 122 123 ######################################################################## 124 # Language API Functional Area 125 # Node.js gRPC Performance engine Baseline tests 126 ######################################################################## 127 128 cd $WORKDIR/node/performance/ 129 130