mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-30 11:17:48 +08:00
19 lines
392 B
Bash
Executable File
19 lines
392 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")/.."
|
|
|
|
echo "find suite"
|
|
exit 0
|
|
|
|
TESTDIR="test"
|
|
if [ "$1" != "emqx" ]; then
|
|
TESTDIR="$1/test"
|
|
fi
|
|
find "${TESTDIR}" -name "*_SUITE.erl" 2>/dev/null | xargs | tr ' ' ','
|