The test suite we use to indicate functional acceptance of a machine instance
Johnny Hughes
10 days ago 5a7c8e41f3e50bc4178bd816382761112017a32a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
 
uname_arch=$(uname -m)
if [ "$uname_arch" == "i686" ] ; then
t_Log "Skipping $0 on $uname_arch"
exit 0
else
t_Log "Running $0 - Tomcat basic test."
fi
 
if [ "$centos_ver" = "7" ] ; then
 string_tosearch="you've successfully installed Tomcat. Congratulations!"
else
 string_tosearch="you've setup Tomcat successfully. Congratulations!"
fi
 
curl -s http://localhost:8080/ | grep "${string_tosearch}"  >/dev/null 2>&1
 
t_CheckExitStatus $?