From fa6d57ddd259f62c6e19e61de8df6782f47c6cbc Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Nov 29 2011 17:03:25 +0000 Subject: Add two lynx tests. --- diff --git a/tests/p_lynx/0-install_lynx.sh b/tests/p_lynx/0-install_lynx.sh new file mode 100755 index 0000000..7eec2a6 --- /dev/null +++ b/tests/p_lynx/0-install_lynx.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "$0 - installing Lynx" +t_InstallPackage lynx + diff --git a/tests/p_lynx/lynx_default_page_centos_test.sh b/tests/p_lynx/lynx_default_page_centos_test.sh new file mode 100755 index 0000000..1525f32 --- /dev/null +++ b/tests/p_lynx/lynx_default_page_centos_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - check that lynx default page is CentOS welcome page ." + +lynx -dump | grep "Welcome to CentOS" >/dev/null 2>&1 + +t_CheckExitStatus $? diff --git a/tests/p_lynx/lynx_dump_page_test.sh b/tests/p_lynx/lynx_dump_page_test.sh new file mode 100755 index 0000000..e6f5c45 --- /dev/null +++ b/tests/p_lynx/lynx_dump_page_test.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - check that lynx can dump remote page." + +if [ $SKIP_QA_HARNESS ]; then + HOST=wiki.centos.org + CHECK_FOR="Page templates" +else + HOST=repo.centos.qa + CHECK_FOR="ks_cfg" +fi + +lynx -dump http://${HOST}/qa/ | grep "${CHECK_FOR}" >/dev/null 2>&1 + +t_CheckExitStatus $?