From 6a32325a20acf6213da9e52c58d4780a3ab38085 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Dec 01 2011 22:31:08 +0000 Subject: Add abrt, bash and grub sanity checks (bugs: #4995, #5158, 4993) --- diff --git a/tests/p_abrt/0-install_abrt.sh b/tests/p_abrt/0-install_abrt.sh new file mode 100755 index 0000000..96c6b31 --- /dev/null +++ b/tests/p_abrt/0-install_abrt.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_InstallPackage abrt + diff --git a/tests/p_abrt/abrt_gpg_keys_test.sh b/tests/p_abrt/abrt_gpg_keys_test.sh new file mode 100755 index 0000000..30311c7 --- /dev/null +++ b/tests/p_abrt/abrt_gpg_keys_test.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Note: This was a known issue in CentOS 6.0 +# See: http://bugs.centos.org/view.php?id=4993 + +t_Log "Running $0 - check that abrt is using CentOS' gpg keys." + +grep -q "RPM-GPG-KEY-CentOS" /etc/abrt/gpg_keys + +t_CheckExitStatus $? diff --git a/tests/p_bash/bash_version_info_test.sh b/tests/p_bash/bash_version_info_test.sh new file mode 100755 index 0000000..d390a1d --- /dev/null +++ b/tests/p_bash/bash_version_info_test.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Note: This was a known issue in CentOS 6.0 +# See: http://bugs.centos.org/view.php?id=5158 + +t_Log "Running $0 - check that bash version info is the same with upstream." + +ARCH=`uname -m | sed 's/i6/i3/'` +bash --version | grep -q "$ARCH-redhat-linux-gnu" + +t_CheckExitStatus $? diff --git a/tests/p_grub/grub_dir_layout_test.sh b/tests/p_grub/grub_dir_layout_test.sh new file mode 100755 index 0000000..a4ba86c --- /dev/null +++ b/tests/p_grub/grub_dir_layout_test.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Note: This was a known issue in CentOS 6.0 +# See: http://bugs.centos.org/view.php?id=4995 + +t_Log "Running $0 - check that grub file layout is the same with upstream." + +ARCH=`uname -m | sed 's/i6/i3/'` + +[[ $( ls /usr/share/grub/ | wc -l ) -eq 1 ]] && \ +ls /usr/share/grub/ | grep -q "$ARCH-redhat" + +t_CheckExitStatus $?