Просмотр исходного кода

ci: enumerate integration test suites

Thales Macedo Garitezi 2 лет назад
Родитель
Сommit
8adef6b657
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      scripts/find-suites.sh

+ 6 - 0
scripts/find-suites.sh

@@ -19,8 +19,14 @@ if [ -n "${EMQX_CT_SUITES:-}" ]; then
 fi
 fi
 
 
 TESTDIR="$1/test"
 TESTDIR="$1/test"
+INTEGRATION_TESTDIR="$1/integration_test"
 # Get the output of the find command
 # Get the output of the find command
 IFS=$'\n' read -r -d '' -a FILES < <(find "${TESTDIR}" -name "*_SUITE.erl" 2>/dev/null | sort && printf '\0')
 IFS=$'\n' read -r -d '' -a FILES < <(find "${TESTDIR}" -name "*_SUITE.erl" 2>/dev/null | sort && printf '\0')
+if [[ -d "${INTEGRATION_TESTDIR}" ]]; then
+  IFS=$'\n' read -r -d '' -a FILES_INTEGRATION < <(find "${INTEGRATION_TESTDIR}" -name "*_SUITE.erl" 2>/dev/null | sort && printf '\0')
+fi
+# shellcheck disable=SC2206
+FILES+=(${FILES_INTEGRATION:-})
 
 
 SUITEGROUP_RAW="${SUITEGROUP:-1_1}"
 SUITEGROUP_RAW="${SUITEGROUP:-1_1}"
 SUITEGROUP="$(echo "$SUITEGROUP_RAW" | cut -d '_' -f1)"
 SUITEGROUP="$(echo "$SUITEGROUP_RAW" | cut -d '_' -f1)"