From ae756f84c86e62f88b136e762b26f721eb07996b Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Dec 05 2013 19:43:45 +0000 Subject: Add centos branding tests for Xorg pkg (centos bug #6809) --- diff --git a/tests/p_xorg-x11-server/00_install-Xorg.sh b/tests/p_xorg-x11-server/00_install-Xorg.sh new file mode 100755 index 0000000..d89b138 --- /dev/null +++ b/tests/p_xorg-x11-server/00_install-Xorg.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "Running $0 - installing Xorg (base package)" +t_InstallPackage xorg-x11-server-Xorg + diff --git a/tests/p_xorg-x11-server/01_Xorg-centos-branding-test.sh b/tests/p_xorg-x11-server/01_Xorg-centos-branding-test.sh new file mode 100755 index 0000000..2a9ac5f --- /dev/null +++ b/tests/p_xorg-x11-server/01_Xorg-centos-branding-test.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +# Ref: http://bugs.centos.org/view.php?id=6809 +t_Log "Running $0 - Testing that Xorg has been patched to use CentOS bugtracker for support" + +if [ $centos_ver = 6 ] +then + X --wrong-arg 2>&1 | grep -q 'bugs.centos.org' +else + t_Log "CentOS 5 Xorg does not need checking" +fi + + +t_CheckExitStatus $? + +