Blame tests/p_tomcat/tomcat_test.sh

Athmane Madjoudj ebf159
#!/bin/sh
Athmane Madjoudj ebf159
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj ebf159
5a7c8e
uname_arch=$(uname -m)
3125c7
#if [ "$uname_arch" == "i686" ] ; then
3125c7
#t_Log "Skipping $0 on $uname_arch"
3125c7
#exit 0
3125c7
#else
Athmane Madjoudj 0a3c81
t_Log "Running $0 - Tomcat basic test."
3125c7
#fi
Athmane Madjoudj ebf159
a160cc
if [ "$centos_ver" = "7" ] ; then
a160cc
 string_tosearch="you've successfully installed Tomcat. Congratulations!"
a160cc
else
a160cc
 string_tosearch="you've setup Tomcat successfully. Congratulations!"
a160cc
fi
a160cc
a160cc
curl -s http://localhost:8080/ | grep "${string_tosearch}"  >/dev/null 2>&1
Athmane Madjoudj ebf159
Athmane Madjoudj ebf159
t_CheckExitStatus $?