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 $?