0
0
mirror of https://github.com/tj/n.git synced 2024-12-01 06:30:39 +01:00
n/test/bin/run-all-tests
John Gee f1d0dd5a22
Rework activate to support more configurations (#657)
* Rework activate to be (much) more explicit. Add archlinux image. Remove need for rsync.

* Reword use case without npm
2021-03-12 19:41:44 +13:00

17 lines
486 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=( archlinux-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