Files
cameradar/test/docker/run_cameradartest.sh
T
2016-11-23 08:49:19 +01:00

26 lines
332 B
Bash
Executable File

#!/bin/bash
while ! mysqladmin ping -h"cameradar-database" -P3306 --silent; do
sleep 1
done
cat /tmp/tests/cameradartest.conf.json
# build
go build
cp /tmp/tests/*.xml ./
# run test
./cameradartest /tmp/tests/cameradartest.conf.json
ret=$?
echo "Tests exited with code ${ret}"
cat *.xml
cp *.xml /tmp/tests/
exit $ret