github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/tests/lightning_column_permutation/run.sh (about)

     1  set -eu
     2  
     3  for BACKEND in local importer tidb; do
     4      if [ "$BACKEND" = 'local' ]; then
     5          check_cluster_version 4 0 0 'local backend' || continue
     6      fi
     7      run_sql 'DROP DATABASE IF EXISTS perm'
     8  
     9      run_lightning --backend $BACKEND
    10  
    11      run_sql 'select count(*) from perm.test_perm;'
    12      check_contains "count(*): 5"
    13  
    14      run_sql "SELECT fund_seq_no, region_code, credit_code FROM perm.test_perm WHERE contract_no = '2020061000019011020164030597';"
    15      check_contains "fund_seq_no: 202006100001901102016403059520200627"
    16      check_contains "region_code: 000002"
    17      check_contains "credit_code: 33"
    18  done