build(test): add emqx-ct target support
This commit is contained in:
parent
24fdd7aef5
commit
bd8cde3479
|
@ -10,6 +10,9 @@ find_app() {
|
||||||
find "${appdir}" -mindepth 1 -maxdepth 1 -type d
|
find "${appdir}" -mindepth 1 -maxdepth 1 -type d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# append emqx application first
|
||||||
|
echo 'emqx'
|
||||||
|
|
||||||
find_app 'apps'
|
find_app 'apps'
|
||||||
if [ -f 'EMQX_ENTERPRISE' ]; then
|
if [ -f 'EMQX_ENTERPRISE' ]; then
|
||||||
find_app 'lib-ee'
|
find_app 'lib-ee'
|
||||||
|
|
|
@ -8,6 +8,8 @@ set -euo pipefail
|
||||||
# ensure dir
|
# ensure dir
|
||||||
cd -P -- "$(dirname -- "$0")/.."
|
cd -P -- "$(dirname -- "$0")/.."
|
||||||
|
|
||||||
APPDIR="$1"
|
TESTDIR="test"
|
||||||
|
if [ "$1" != "emqx" ]; then
|
||||||
find "${APPDIR}/test" -name "*_SUITE.erl" | tr -d '\r' | tr '\n' ','
|
TESTDIR="$1/test"
|
||||||
|
fi
|
||||||
|
find "${TESTDIR}" -name "*_SUITE.erl" | tr -d '\r' | tr '\n' ','
|
||||||
|
|
Loading…
Reference in New Issue