2019-05-04 09:45:53 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
BIN_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
2021-03-12 07:41:44 +01:00
|
|
|
# We want to cover curl and wget especially, gz and xz and variety of OS a bonus.
|
2023-02-08 05:43:03 +01:00
|
|
|
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}"
|
2020-12-21 10:50:54 +01:00
|
|
|
docker-compose run --rm "${service}" "bats" "/mnt/test/tests"
|
2019-05-04 09:45:53 +02:00
|
|
|
echo ""
|
|
|
|
done
|
|
|
|
|
2021-03-12 07:41:44 +01:00
|
|
|
# host (current maintainer uses Mac)
|
2019-05-04 09:45:53 +02:00
|
|
|
uname -s
|
|
|
|
../node_modules/.bin/bats tests
|