wordcamp-bristol-2019/.docksal/commands/test

20 lines
416 B
Plaintext
Raw Normal View History

2019-04-16 19:21:47 +00:00
#!/usr/bin/env bash
## Test site installation
##
## Usage: fin test
# Abort if anything fails
set -e
# Debug mode switch
if [[ "${DEBUG}" != "" ]]; then
set -x
fi
echo "Testing home page..."
curl -sL -I http://${VIRTUAL_HOST} | grep "HTTP/1.1 200 OK"
curl -sL http://${VIRTUAL_HOST} | grep "My WordPress Site"
echo "Testing login page..."
curl -sL -I http://${VIRTUAL_HOST}/wp-admin | grep "HTTP/1.1 200 OK"