You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_lynx/lynx_dump_page_test.sh

23 lines
476 B

#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
t_Log "Running $0 - check that lynx can dump remote page."
if [ "$centos_ver" -ge "8" ]; then
t_Log "Package lynx not available in default repos on c8 => SKIP"
exit 0
fi
if [ "$SKIP_QA_HARNESS" = "1" ] ; then
URL="http://mirror.centos.org/"
CHECK_FOR="timestamp"
else
URL="http://repo.centos.qa/qa/"
CHECK_FOR="ks_cfg"
fi
lynx -dump ${URL} | grep "${CHECK_FOR}" >/dev/null 2>&1
t_CheckExitStatus $?