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