frappe_docker/test.sh
2019-03-03 23:42:45 -05:00

14 lines
No EOL
236 B
Bash

#!/bin/bash
./dbench start > /tmp/bench.log &
output=$(
while ! curl "http://localhost:8000"
do
{ echo "Exit status of curl: $?"
} 1>&2
sleep 1
done
)
echo "${output}" | grep '<title> Login </title>' || exit 1