bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_squid/squid_test.sh

Athmane Madjoudj 765ebf
#!/bin/sh
Athmane Madjoudj 765ebf
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 765ebf
Athmane Madjoudj 765ebf
t_Log "Running $0 - Squid test."
Athmane Madjoudj 765ebf
Karanbir Singh 23b6ba
if [ $SKIP_QA_HARNESS -eq 1 ]; then
Athmane Madjoudj 165bfc
  URL="http://ci.dev.centos.org/cstatic/"
Athmane Madjoudj 165bfc
  CHECK_FOR="CentOS CI test page"
Karanbir Singh 34da5e
else
Athmane Madjoudj 165bfc
  URL="http://repo.centos.qa/qa/"
Karanbir Singh 34da5e
  CHECK_FOR="ks_cfg"
Karanbir Singh 34da5e
fi
Karanbir Singh 34da5e
Athmane Madjoudj 165bfc
squidclient -T 2 ${URL} | grep "${CHECK_FOR}"  >/dev/null 2>&1
Athmane Madjoudj 765ebf
Athmane Madjoudj 765ebf
t_CheckExitStatus $?