gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/run_test.sh (about)

     1  #!/bin/bash
     2  # 执行各个包的测试用例
     3  
     4  # sm2
     5  echo "sm2测试用例"
     6  cd sm2test
     7  go test
     8  cd ../
     9  
    10  # 等待控制台输入任意字符继续
    11  echo
    12  read -p "sm2测试用例 结束,按下任意按键继续..." -n 1
    13  echo
    14  
    15  # sm3
    16  echo "sm3测试用例"
    17  cd sm3
    18  go test
    19  cd ../
    20  
    21  # 等待控制台输入任意字符继续
    22  echo
    23  read -p "sm3测试用例 结束,按下任意按键继续..." -n 1
    24  echo
    25  
    26  # sm4
    27  echo "sm4测试用例"
    28  cd sm4
    29  go test
    30  cd ../
    31  
    32  # 等待控制台输入任意字符继续
    33  echo
    34  read -p "sm4测试用例 结束,按下任意按键继续..." -n 1
    35  echo
    36  
    37  # x509
    38  echo "x509测试用例"
    39  cd x509
    40  go test
    41  cd ../
    42  
    43  # 等待控制台输入任意字符继续
    44  echo
    45  read -p "x509测试用例 结束,按下任意按键继续..." -n 1
    46  echo
    47  
    48  # gmtls
    49  echo "gmtls测试用例"
    50  cd gmtls/tls_test
    51  go test
    52  cd ../../
    53  
    54  # 等待控制台输入任意字符继续
    55  echo
    56  read -p "gmtls测试用例 结束,按下任意按键继续..." -n 1
    57  echo
    58  
    59  # gmgrpc
    60  echo "gmgrpc测试用例"
    61  cd grpc/grpc_test
    62  go test
    63  cd ../../
    64  echo "gmgrpc测试用例 结束"
    65  
    66  echo "全部测试用例 结束"
    67  echo