github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/test/integration_tests/dm_dump_sync_mode/run.sh (about)

     1  #!/bin/bash
     2  
     3  set -eu
     4  
     5  WORK_DIR=$OUT_DIR/$TEST_NAME
     6  CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
     7  
     8  CONFIG="$DOCKER_COMPOSE_DIR/3m3e_with_s3.yaml $DOCKER_COMPOSE_DIR/dm_databases.yaml"
     9  CONFIG=$(adjust_config $OUT_DIR $TEST_NAME $CONFIG)
    10  echo "using adjusted configs to deploy cluster: $CONFIG"
    11  
    12  function run() {
    13  	start_engine_cluster $CONFIG
    14  	wait_mysql_online.sh --host 127.0.0.1 --port 3306
    15  	wait_mysql_online.sh --host 127.0.0.1 --port 4000
    16  
    17  	echo -e "\nstart to run dump/load&sync mode integration tests...\n"
    18  
    19  	export ENGINE_S3_ACCESS_KEY=engine
    20  	export ENGINE_S3_SECRET_KEY=engineSecret
    21  	export ENGINE_S3_ENDPOINT="http://minio-standalone:9000/"
    22  
    23  	CGO_ENABLED=0 go test -count=1 -v -run ^TestDMDumpSyncJob$ github.com/pingcap/tiflow/engine/test/e2e
    24  }
    25  
    26  trap "stop_engine_cluster $WORK_DIR $CONFIG" EXIT
    27  run $*
    28  echo "[$(date)] <<<<<< run test case $TEST_NAME success! >>>>>>"