build(test): add emqx-ct target support

This commit is contained in:
JianBo He 2021-04-13 11:16:43 +08:00 committed by Rory Z
parent 24fdd7aef5
commit bd8cde3479
2 changed files with 8 additions and 3 deletions

View File

@ -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'

View File

@ -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' ','