github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/test/utils/check_case.sh (about)

     1  #!/bin/bash
     2  
     3  set -eu
     4  
     5  CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
     6  
     7  for script in $(ls ${CUR_DIR}/../integration_tests/*/run.sh); do
     8  	validated=$(
     9  		cat $script | grep "adjust_config " | grep -v "^#" &>/dev/null
    10  		echo $?
    11  	)
    12  	if [ $validated -ne 0 ]; then
    13  		echo "[Error] need adjust_config in $script"
    14  		exit 1
    15  	fi
    16  done
    17  
    18  echo "all integration tests of engine verified"