speedtest/docker/test/test-script.sh
sstidl 13eb4494df
Update docker/test/test-script.sh
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
2024-12-29 17:50:48 +01:00

21 lines
412 B
Bash

#!/bin/sh
## simple script to call sanitycheck on all containers
PORT=8080
if ! apk add w3m; then
echo "Failed to install w3m package"
exit 1
fi
echo sleeping a little to get things setteled...
sleep 15
for db in sqlite pg mysql; do
for distro in alpine debian; do
hostname=speedtest-$distro-$db
echo $hostname
w3m -dump http://$hostname:$PORT/results/sanitycheck.php|grep -v 'N/A'
done
done