The test suite we use to indicate functional acceptance of a machine instance
Johnny Hughes
2018-03-05 2b3708827e24d7ca2f378a9a4ed788ec8971a7f4
fixes for armhfp
1 files added
13 files modified
129 ■■■■■ changed files
tests/0_common/000_centos_default_repos.py 4 ●●●● patch | view | raw | blame | history
tests/p_anaconda/0-install_anaconda.sh 7 ●●●●● patch | view | raw | blame | history
tests/p_anaconda/anaconda_centos_patch.sh 3 ●●●● patch | view | raw | blame | history
tests/p_diffutils/10-cmp-tests 8 ●●●●● patch | view | raw | blame | history
tests/p_java-1.6.0-openjdk/0-install-openjdk.sh 6 ●●●●● patch | view | raw | blame | history
tests/p_java-1.6.0-openjdk/10-test_java.sh 7 ●●●●● patch | view | raw | blame | history
tests/p_kernel/01_kernel_centos_keyring.sh 3 ●●●● patch | view | raw | blame | history
tests/p_lsb/0-install_redhat-lsb.sh 7 ●●●●● patch | view | raw | blame | history
tests/p_lsb/lsb_release_brand_test.sh 7 ●●●●● patch | view | raw | blame | history
tests/p_openssh/sshd_user_login-with-key.sh 9 ●●●● patch | view | raw | blame | history
tests/p_tomcat/1-config_tomcat.sh 12 ●●●● patch | view | raw | blame | history
tests/p_yum/yum_distroverpkg.sh 12 ●●●● patch | view | raw | blame | history
tests/r_check_mod_packages/01_modpackages.sh 7 ●●●● patch | view | raw | blame | history
tests/r_check_mod_packages/c72-mod-packages.lst.armv7l 37 ●●●●● patch | view | raw | blame | history
tests/0_common/000_centos_default_repos.py
@@ -19,9 +19,9 @@
    fasttrack = 0
if fasttrack:
    centos_default_repos = ['base','extras','updates','cr','fasttrack']
    centos_default_repos = ['base','extras','updates','cr','fasttrack','centos-kernel']
else:
    centos_default_repos = ['base','extras','updates','cr']
    centos_default_repos = ['base','extras','updates','cr','centos-kernel']
now = lambda: datetime.datetime.today().strftime("%c")
print "[+] %s -> Check if non default repo is enabled" % now() 
tests/p_anaconda/0-install_anaconda.sh
@@ -1,4 +1,11 @@
#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
t_InstallPackage anaconda
tests/p_anaconda/anaconda_centos_patch.sh
@@ -5,7 +5,8 @@
uname_arch=$(uname -m)
if [ "$uname_arch" == "aarch64" ] || [ "$uname_arch" == "i686" ]; then
if [ "$uname_arch" == "aarch64" ] || [ "$uname_arch" == "i686" ] || [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
tests/p_diffutils/10-cmp-tests
@@ -1,6 +1,14 @@
#!/bin/bash
# Author: Iain Douglas <centos@1n6.org.uk>
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
# Tests for cmp
function ExitFail {
tests/p_java-1.6.0-openjdk/0-install-openjdk.sh
@@ -1,6 +1,12 @@
#!/bin/bash
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
# Install python
if (t_GetArch | grep -qE 'aarch64|armv7hl|ppc64le')
  then
tests/p_java-1.6.0-openjdk/10-test_java.sh
@@ -1,6 +1,13 @@
#!/bin/sh
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
if (t_GetArch | grep -qE 'aarch64|armv7hl|ppc64le')
  then
  echo "Package not included for current arch, skipping"
tests/p_kernel/01_kernel_centos_keyring.sh
@@ -6,7 +6,8 @@
uname_arch=$(uname -m)
if [ "$uname_arch" == "aarch64" ]; then
if [ "$uname_arch" == "aarch64" ] || [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
tests/p_lsb/0-install_redhat-lsb.sh
@@ -1,6 +1,13 @@
#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
t_Log "$0 - Installing redhat-lsb"
t_InstallPackage  redhat-lsb
tests/p_lsb/lsb_release_brand_test.sh
@@ -3,6 +3,13 @@
t_Log "Running $0 - LSB CentOS braning check."
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
lsb_release -i | grep -q "CentOS" && \
lsb_release -d | grep -q "CentOS"  
tests/p_openssh/sshd_user_login-with-key.sh
@@ -1,5 +1,12 @@
#!/bin/sh
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  t_Log "*** Not testing on Arch: $uname_arch ***"
  exit 0
fi
for KeyType in rsa dsa; do 
    userdel -rf sshtest; useradd sshtest && echo sshtest | passwd --stdin sshtest
    runuser -l sshtest -c "echo | ssh-keygen -q -t ${KeyType} -b 1024 -f ~/.ssh/id_${KeyType}" > /dev/null
@@ -14,4 +21,4 @@
    runuser -l sshtest -c "~/_helper_sshd_user_login-with-key.expect" | grep ${TestString}  > /dev/null 2>&1
    t_CheckExitStatus $?
    userdel -rf sshtest
done
done
tests/p_tomcat/1-config_tomcat.sh
@@ -1,5 +1,6 @@
#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
uname_arch=$(uname -m)
t_Log "$0 - Configuring Tomcat"
@@ -22,5 +23,12 @@
service $TOMCAT_SRV_NAME restart
# we need extra sec for tomcat
sleep 10
# we need extra sec for tomcat (and even more time for armhfp)
if [ "$uname_arch" == "armv7l" ]; then
  sleep_time="300"
else
  sleep_time="10"
fi
t_Log "Sleeping $sleep_time seconds for $uname_arch"
sleep $sleep_time
tests/p_yum/yum_distroverpkg.sh
@@ -2,6 +2,14 @@
t_Log "Running $0 - Yum configuration has the correct distroverpkg value test."
#add centos-userland-release for armhfp
uname_arch=$(uname -m)
if [ "$uname_arch" == "armv7l" ]; then
  rel_string="centos-userland-release"
else
  rel_string="centos-release"
fi
ProvierTag=$(grep distroverpkg /etc/yum.conf | cut -f2 -d'=')
rpm -q --whatprovides ${ProvierTag} | grep centos-release > /dev/null
t_CheckExitStatus $?
rpm -q --whatprovides ${ProvierTag} | grep "$rel_string" > /dev/null
t_CheckExitStatus $?
tests/r_check_mod_packages/01_modpackages.sh
@@ -2,8 +2,13 @@
# Author: Johnny Hughes <johnny@centos.org>
# Note: This test is only for Pre Updates testing prior to releasing on CentOS
uname_arch=$(uname -m)
if [ $SKIP_QA_HARNESS -eq 1 ] && [ "$PRE_UPDATES" != "1" ] ; then
    t_Log "Skip this test in non QA harness environment"
    t_Log "Skip $0 in non QA harness environment"
    ret_val=0
elif [ "$uname_arch" == "armv7l" ] ; then
    t_Log "*** Not testing $0 on Arch: $uname_arch ***"
    ret_val=0
else
  ret_val=0
tests/r_check_mod_packages/c72-mod-packages.lst.armv7l
New file
@@ -0,0 +1,37 @@
PackageKit
abrt
apache-commons-net
anaconda
basesystem
centos-indexhtml
centos-logos
centos-release
chrony
compat-glibc
dhcp
firefox
glusterfs
grub2
httpd
initial-setup
ipa-client
kabi-yum-plugins
kde-settings
libreport
ntp
oscap-anaconda-addon
openssl098e
pcs
plymouth
redhat-rpm-config
redhat-lsb
scap-security-guide
shim-unsigned-ia32
shim-unsigned-x64
sos
subscription-manager
system-config-date
system-config-kdump
thunderbird
xulrunner
yum