find-suites.sh 309 B

12345678910111213
  1. #!/usr/bin/env bash
  2. ## this script prints out all test/*_SUITE.erl files of a given app,
  3. ## file names are separated by comma for rebar3 ct's `--suite` option
  4. set -euo pipefail
  5. # ensure dir
  6. cd -P -- "$(dirname -- "$0")/.."
  7. APPDIR="$1"
  8. find "${APPDIR}/test" -name "*_SUITE.erl" | tr -d '\r' | tr '\n' ','