From 46d36f4c2fcd3f5d7be3c8e396f9824a99494837 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Mar 10 2016 15:21:06 +0000 Subject: add r_check_mod_packages --- diff --git a/tests/r_check_mod_packages/01_modpackages.sh b/tests/r_check_mod_packages/01_modpackages.sh new file mode 100755 index 0000000..5e68f23 --- /dev/null +++ b/tests/r_check_mod_packages/01_modpackages.sh @@ -0,0 +1,28 @@ +#!/bin/nash +# Author: Johnny Hughes +# Note: This test is only for Pre Updates testing prior to releasing on CentOS + +if [ $SKIP_QA_HARNESS -eq 1 ] && [ "$PRE_UPDATES" != "1" ] ; then + t_Log "Skip this test in non QA harness environment" + ret_val=0 +else + ret_val=0 + if [ "$centos_ver" = "7" ] ; then + t_Log "Checking current repositories for .el7.centos on modified files" + yum clean all + for pkg in PackageKit abrt apache-commons-net anaconda basesystem centos-indexhtml centos-logos centos-release chrony compat-glibc curl dhcp docker firefox glusterfs grub2 httpd initial-setup ipa-client kabi-yum-plugins kde-settings libreport ntp oscap-anaconda-addon openssl098e plymouth redhat-rpm-config redhat-lsb scap-security-guide shim-unsigned sos subscription-manager system-config-date system-config-kdump thunderbird xulrunner yum + do + has_centos=$(yum list $pkg | grep '.el7.centos') + if [ "$has_centos" == "" ]; then + echo $pkg missing .el7.centos + ret_val=1 + fi + done + else + t_Log "This test only for CentOS-7, skipping Modified Packages test ..." + ret_val=0 + fi + + + t_CheckExitStatus $ret_val +fi diff --git a/tests/r_check_mod_packages/c72-mod-packages.lst b/tests/r_check_mod_packages/c72-mod-packages.lst new file mode 100644 index 0000000..5dad9c2 --- /dev/null +++ b/tests/r_check_mod_packages/c72-mod-packages.lst @@ -0,0 +1,37 @@ +PackageKit +abrt +apache-commons-net +anaconda +basesystem +centos-indexhtml +centos-logos +centos-release +chrony +compat-glibc +curl +dhcp +docker +firefox +glusterfs +grub2 +httpd +initial-setup +ipa-client +kabi-yum-plugins +kde-settings +libreport +ntp +oscap-anaconda-addon +openssl098e +plymouth +redhat-rpm-config +redhat-lsb +scap-security-guide +shim-unsigned +sos +subscription-manager +system-config-date +system-config-kdump +thunderbird +xulrunner +yum