emqx/scripts/find-suites.sh
Thales Macedo Garitezi b9494662ae
fix(ci): fix shellcheck file pattern
Since we started to use the portable shebang style for our scripts, we
need to update the pattern used to find scripts for Shellcheck to
check.
2022-01-05 11:34:04 -03:00

13 lines
327 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")/.."
TESTDIR="$1/test"
find "${TESTDIR}" -name "*_SUITE.erl" -print0 2>/dev/null | xargs -0 | tr ' ' ','