17 lines
410 B
Bash
Executable File
17 lines
410 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
## this script prints out all test/*_SUITE.erl files of a given app,
|
|
## file names are separated by comma for rebar3 ct's `--suite` option
|
|
|
|
set -euo pipefail
|
|
|
|
# ensure dir
|
|
cd -P -- "$(dirname -- "$0")/.."
|
|
|
|
if [ -z "${EMQX_CT_SUITES:-}" ]; then
|
|
TESTDIR="$1/test"
|
|
find "${TESTDIR}" -name "*_SUITE.erl" -print0 2>/dev/null | xargs -0 | tr ' ' ','
|
|
else
|
|
echo "${EMQX_CT_SUITES}"
|
|
fi
|