From 0a32b3500b789dd9b6fdf2582010647a0182852c Mon Sep 17 00:00:00 2001 From: Jim Perrin Date: Jun 16 2015 18:50:25 +0000 Subject: Merge pull request #5 from jperrin/master exclude aarch64 from ipa-server testing. --- diff --git a/tests/p_ipa-server/1-install_freeipa.sh b/tests/p_ipa-server/1-install_freeipa.sh index bb2c29b..8017da0 100755 --- a/tests/p_ipa-server/1-install_freeipa.sh +++ b/tests/p_ipa-server/1-install_freeipa.sh @@ -2,12 +2,12 @@ # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then t_Log "Running $0 - Installing packages, this takes around 2-3 mins" t_InstallPackage ipa-server bind-dyndb-ldap libsss_sudo else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_ipa-server/2-configure_freeipa.sh b/tests/p_ipa-server/2-configure_freeipa.sh index f368dc0..492498a 100755 --- a/tests/p_ipa-server/2-configure_freeipa.sh +++ b/tests/p_ipa-server/2-configure_freeipa.sh @@ -1,7 +1,7 @@ #!/bin/bash # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then t_Log "Running $0 - setting hostname of system" @@ -34,6 +34,6 @@ if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') fi else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_ipa-server/3-verify_kerberos_tickets.sh b/tests/p_ipa-server/3-verify_kerberos_tickets.sh index bf924fe..7f361ec 100755 --- a/tests/p_ipa-server/3-verify_kerberos_tickets.sh +++ b/tests/p_ipa-server/3-verify_kerberos_tickets.sh @@ -2,7 +2,7 @@ # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then # kinit cannot take password from stdin so use expect @@ -37,6 +37,6 @@ klist | grep "admin@C6IPA.LOCAL" &> /dev/null t_CheckExitStatus $? else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_ipa-server/4-adduser.sh b/tests/p_ipa-server/4-adduser.sh index 5ee880f..72c3f91 100755 --- a/tests/p_ipa-server/4-adduser.sh +++ b/tests/p_ipa-server/4-adduser.sh @@ -2,7 +2,7 @@ # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then # Need admin credentials @@ -96,7 +96,7 @@ getent passwd ipatestuser &> /dev/null t_CheckExitStatus $? else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_ipa-server/5-addservice.sh b/tests/p_ipa-server/5-addservice.sh index 01370a7..2d918b5 100755 --- a/tests/p_ipa-server/5-addservice.sh +++ b/tests/p_ipa-server/5-addservice.sh @@ -2,7 +2,7 @@ # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then # Need admin credentials @@ -76,7 +76,7 @@ openssl verify -CAfile /etc/ipa/ca.crt /etc/pki/tls/certs/testservice.crt | grep t_CheckExitStatus $? else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_ipa-server/6-dnsdetails.sh b/tests/p_ipa-server/6-dnsdetails.sh index 224639b..0bb4ba4 100755 --- a/tests/p_ipa-server/6-dnsdetails.sh +++ b/tests/p_ipa-server/6-dnsdetails.sh @@ -2,7 +2,7 @@ # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then # Need admin credentials @@ -81,6 +81,6 @@ sleep 1 done else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_ipa-server/7-addsudo.sh b/tests/p_ipa-server/7-addsudo.sh index 720f78a..5ab8c18 100755 --- a/tests/p_ipa-server/7-addsudo.sh +++ b/tests/p_ipa-server/7-addsudo.sh @@ -2,7 +2,7 @@ # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then # Need admin credentials @@ -84,6 +84,6 @@ grep 'ALL) ALL' /tmp/sudotestoutput.ipa-test &> /dev/null t_CheckExitStatus $? else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_ipa-server/99-postclean.sh b/tests/p_ipa-server/99-postclean.sh index b300fac..3277479 100755 --- a/tests/p_ipa-server/99-postclean.sh +++ b/tests/p_ipa-server/99-postclean.sh @@ -2,7 +2,7 @@ # Author: James Hogarth # -if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') +if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') && !(t_GetArch | grep -qE 'aarch64') then if (t_GetPkgRel basesystem | grep -qE 'el(6)') then @@ -44,6 +44,6 @@ if (t_GetPkgRel basesystem | grep -qE 'el(6|7)') fi else - echo "Skipped on CentOS 5" + echo "Skipped on CentOS 5 and AArch64" fi diff --git a/tests/p_java-1.6.0-openjdk/0-install-openjdk.sh b/tests/p_java-1.6.0-openjdk/0-install-openjdk.sh index 97243b8..fe40a7a 100755 --- a/tests/p_java-1.6.0-openjdk/0-install-openjdk.sh +++ b/tests/p_java-1.6.0-openjdk/0-install-openjdk.sh @@ -2,6 +2,12 @@ # Author: Christoph Galuschka # Install python +if (t_GetArch | grep -qE 'aarch64') + then + echo "Package not included with AArch64, skipping" + exit 0 +fi + t_Log "Running $0 - installing openjdk runtime/development environment." t_InstallPackage java-1.6.0-openjdk java-1.6.0-openjdk-devel diff --git a/tests/p_java-1.6.0-openjdk/10-test_java.sh b/tests/p_java-1.6.0-openjdk/10-test_java.sh index f20a615..6cf7d9a 100755 --- a/tests/p_java-1.6.0-openjdk/10-test_java.sh +++ b/tests/p_java-1.6.0-openjdk/10-test_java.sh @@ -1,6 +1,12 @@ #!/bin/sh # Author: Christoph Galuschka +if (t_GetArch | grep -qE 'aarch64') + then + echo "Package not included with AArch64, skipping" + exit 0 +fi + t_Log "Running $0 - javac can compile and java can print 'hello centos'" # creating source file