0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 11:37:26 +01:00
n/test/bin/run-all-tests
2024-09-06 14:07:51 +12:00

17 lines
483 B
Bash
Executable File

#!/usr/bin/env bash
BIN_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# We want to cover curl and wget especially, gz and xz and variety of OS a bonus.
services=( fedora-curl ubuntu-wget )
cd "$(dirname "${BIN_DIRECTORY}")" || exit 2
for service in "${services[@]}" ; do
echo "${service}"
docker compose run --rm "${service}" "bats" "/mnt/test/tests"
echo ""
done
# host (current maintainer uses Mac)
uname -s
../node_modules/.bin/bats tests