Explorar el Código

build(test): add emqx-ct target support

JianBo He hace 4 años
padre
commit
bd8cde3479
Se han modificado 2 ficheros con 8 adiciones y 3 borrados
  1. 3 0
      scripts/find-apps.sh
  2. 5 3
      scripts/find-suites.sh

+ 3 - 0
scripts/find-apps.sh

@@ -10,6 +10,9 @@ find_app() {
     find "${appdir}" -mindepth 1 -maxdepth 1 -type d
 }
 
+# append emqx application first
+echo 'emqx'
+
 find_app 'apps'
 if [ -f 'EMQX_ENTERPRISE' ]; then
     find_app 'lib-ee'

+ 5 - 3
scripts/find-suites.sh

@@ -8,6 +8,8 @@ set -euo pipefail
 # ensure dir
 cd -P -- "$(dirname -- "$0")/.."
 
-APPDIR="$1"
-
-find "${APPDIR}/test" -name "*_SUITE.erl" | tr -d '\r' | tr '\n' ','
+TESTDIR="test"
+if [ "$1" != "emqx" ]; then
+    TESTDIR="$1/test"
+fi
+find "${TESTDIR}" -name "*_SUITE.erl" | tr -d '\r' | tr '\n' ','