test-script.sh 412 B

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