frappe_docker/test.sh
2019-03-04 00:22:51 -05:00

15 lines
No EOL
244 B
Bash

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