Skip to content

Commit

Permalink
Add -m option to run manual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Nov 10, 2024
1 parent 1c41ed0 commit da8cf80
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ run_tests() {
DOCKER_BUILDKIT=1 docker build --target test -t "sschmid/pw/test/$1" -f "docker/$1/Dockerfile" .
}

while getopts ":aj:p:" options; do
cmd_options=()
while getopts ":aj:mp:" options; do
case "${options}" in
a)
run_tests alpine
Expand All @@ -18,7 +19,11 @@ while getopts ":aj:p:" options; do
run_tests ubuntu
;;
j)
jobs="${OPTARG}"
cmd_options+=("--jobs" "${OPTARG}")
;;
m)
export PW_TEST_RUN_MANUAL_TESTS=1
cmd_options+=("--tap")
;;
p)
run_tests "${OPTARG}"
Expand All @@ -32,5 +37,5 @@ while getopts ":aj:p:" options; do
done
shift $(( OPTIND - 1 ))

test/bats/bin/bats --jobs "${jobs:-1}" "${@:-test}"
test/bats/bin/bats "${cmd_options[@]}" "${@:-test}"
test/shellcheck

0 comments on commit da8cf80

Please sign in to comment.