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 34da5e
if [ $SKIP_QA_HARNESS ]; then
Karanbir Singh 34da5e
  HOST=wiki.centos.org
Karanbir Singh 34da5e
  CHECK_FOR="Page templates"
Karanbir Singh 34da5e
else
Karanbir Singh 34da5e
  HOST=qa.centos.repo
Karanbir Singh 34da5e
  CHECK_FOR="ks_cfg"
Karanbir Singh 34da5e
fi
Karanbir Singh 34da5e
Karanbir Singh 34da5e
squidclient -T 2 http://${HOST}/qa/ | grep "${CHECK_FOR}"  >/dev/null 2>&1
Athmane Madjoudj 765ebf
Athmane Madjoudj 765ebf
t_CheckExitStatus $?