network/run-tests.sh
Lars Karlitski 69134b7cb7 Add support for linux-system-api test harness
Also add a simple test that runs the role without any parameters.
2017-04-28 17:33:25 +02:00

17 lines
422 B
Bash
Executable file

#!/bin/bash
# Run integration test for this repository. It fetches the test harness from
# docker.io, which is built from
#
# http://github.com/linux-system-roles/test-harness
set -xeuf -o pipefail
CACHEDIR=${CACHEDIR:-$PWD/.image-cache}
mkdir -p $CACHEDIR
docker run --privileged \
--rm \
--volume $PWD:/role \
--volume $CACHEDIR:/cache \
cockpit/linux-system-roles-test