mirror of
https://github.com/librespeed/speedtest
synced 2026-11-26 09:58:03 +08:00
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
22 lines
412 B
Bash
22 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
|