github.com/tenywen/fabric@v1.0.0-beta.0.20170620030522-a5b1ed380643/bddtests/regression/daily_test_suite.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright IBM Corp. All Rights Reserved.
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  #
     7  
     8  # DESCRIPTION:
     9  # These are the tests in the Daily Test Suite.
    10  # To run these tests, user may clone the fabric, make code changes if
    11  # desired, build images, and run this script.
    12  
    13  
    14  # Setup
    15  
    16  WORKDIR=`pwd`
    17  
    18  
    19  
    20  
    21  
    22  # Note to test developers: Many tests in the Daily Test Suite are
    23  # specific tests that already contain the TEST OBJECTIVE and STEPS.
    24  # However, in some cases, such as running a flexible test engine to
    25  # perform different tests by using configuration parameters or
    26  # environment variables, it must be provided here.
    27  # For EACH of those test cases, before invoking the test, please
    28  # provide a comment block like this:
    29  
    30  #-----------------------------------------------------------------------
    31  # TEST OBJECTIVE : basic network setup, deploy, invoke, query all peers
    32  #                  using gRPC interface, and exercise chaincode APIs
    33  # SETUP STEPS:
    34  #   1. Set environment variable: export TEST_NETWORK=LOCAL
    35  # TEST DETAILS (Optional):
    36  #   1. Setup local docker network with security with 4 peer nodes
    37  #   2. Deploy chaincode example02
    38  #   3. Send Invoke Requests on all peers using go routines
    39  #   4. Verify query results and chainheights match on all peers
    40  #-----------------------------------------------------------------------
    41  
    42  
    43  
    44  
    45  
    46  ########################################################################
    47  # Language        API                 Functional Area
    48  # GO TDK          gRPC                Consensus Acceptance Tests
    49  ########################################################################
    50  
    51  cd $WORKDIR/go/tdk/CAT
    52  #UNDER CONSTRUCTION...
    53  #go run CAT_100_Startup_DIQ_API.go
    54  #go run CAT_101_BasicConsensus_S1_R1_S2_S1_R1_R2.go
    55  #go run CAT_102_S1_IQDQIQ.go
    56  
    57  
    58  
    59  ########################################################################
    60  # Language        API                 Functional Area
    61  # GO TDK          gRPC                Transaction Speed Measurement
    62  ########################################################################
    63  
    64  cd $WORKDIR/go/tdk/ledgerstresstest
    65  #./run_speed_tests.sh
    66  
    67  
    68  
    69  ########################################################################
    70  # Language        API                 Functional Area
    71  # GO TDK          gRPC                Ledger Stress Tests
    72  ########################################################################
    73  
    74  cd $WORKDIR/go/tdk/ledgerstresstest
    75  #go run BasicFuncExistingNetworkLST.go
    76  #go run LST_1client1peer20K.go
    77  #go run LST_2client1peer20K.go
    78  #go run LST_2client2peer20K.go
    79  #go run LST_4client1peer20K.go
    80  #go run LST_4client4peer20K.go
    81  
    82  
    83  
    84  ########################################################################
    85  # Language        API                 Functional Area
    86  # GO TDK          gRPC                Concurrency/Ledger
    87  ########################################################################
    88  
    89  cd $WORKDIR/go/tdk/ledgerstresstest
    90  #go run conc4p1min1000Thrd1TxPerLoop_LOCAL.go
    91  #go run conc4p1min400Thrd_LOCAL.go
    92  
    93  
    94  
    95  ########################################################################
    96  # Language        API                 Functional Area
    97  # Node.js         gRPC                Concurrency with Auction
    98  ########################################################################
    99  
   100  cd $WORKDIR/node/
   101  
   102  
   103  
   104  ########################################################################
   105  # Language        API                 Functional Area
   106  # Node.js         gRPC                Complex Transactions with Auction
   107  ########################################################################
   108  
   109  cd $WORKDIR/node/
   110  
   111  
   112  
   113  ########################################################################
   114  # Language        API                 Functional Area
   115  # Node.js         gRPC                Performance engine Baseline tests
   116  ########################################################################
   117  
   118  cd $WORKDIR/node/performance/
   119  
   120