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
15b037
  URL="http://mirror.centos.org/"
2789f9
  CHECK_FOR="timestamp"
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 $?