From bd8cde34796f6a6f42fe8b05a940819e06afb25d Mon Sep 17 00:00:00 2001 From: JianBo He Date: Tue, 13 Apr 2021 11:16:43 +0800 Subject: [PATCH] build(test): add emqx-ct target support --- scripts/find-apps.sh | 3 +++ scripts/find-suites.sh | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/find-apps.sh b/scripts/find-apps.sh index 1f199269c..fabec239e 100755 --- a/scripts/find-apps.sh +++ b/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' diff --git a/scripts/find-suites.sh b/scripts/find-suites.sh index 66296b758..4a3dbe09c 100755 --- a/scripts/find-suites.sh +++ b/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' ','