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