0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 19:57:54 +01:00
n/test/bin/run-all-tests

17 lines
483 B
Plaintext
Raw Normal View History

2019-05-04 09:45:53 +02:00
#!/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 )
2019-05-04 09:45:53 +02:00
cd "$(dirname "${BIN_DIRECTORY}")" || exit 2
for service in "${services[@]}" ; do
echo "${service}"
docker-compose run --rm "${service}" "bats" "/mnt/test/tests"
2019-05-04 09:45:53 +02:00
echo ""
done
# host (current maintainer uses Mac)
2019-05-04 09:45:53 +02:00
uname -s
../node_modules/.bin/bats tests