Test scripts can be run from any directory.

master
Julian M. Kunkel 2018-07-07 00:20:07 +01:00
parent b5e7212d84
commit c57f809654
2 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,9 @@
#!/bin/bash
cd "${0%/*}"
if [[ ! -e run-all-tests.sh ]] ; then
echo "Error, this script must run from the ./testing/docker directory"
exit 1
fi
echo "Checking docker"
docker ps

View File

@ -1,6 +1,11 @@
#!/bin/bash
# This script runs the testscript for all supported docker images
cd "${0%/*}"
if [[ ! -e run-all-tests.sh ]] ; then
echo "Error, this script must run from the ./testing/docker directory"
exit 1
fi
TARGET=../../build-docker
mkdir -p $TARGET