From 7de30450fa44b4817adebc81297fc19faf9cb08b Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Dec 28 2013 12:36:48 +0000 Subject: (hopefully) fixed test to gzip binaries --- diff --git a/tests/p_gzip/10-test-binaries b/tests/p_gzip/10-test-binaries index 29435d3..3bb5957 100755 --- a/tests/p_gzip/10-test-binaries +++ b/tests/p_gzip/10-test-binaries @@ -1,6 +1,7 @@ #!/bin/bash # Author: Iain Douglas # Author: Rene Diepstraten +# Christoph Galuschka # # Check the binaries from the package exist and run ok @@ -9,11 +10,22 @@ function ExitFail { exit $FAIL } -[[ $centos_ver =~ ^6|7$ ]] || exit -t_Log "Checking binaries are present and run on C7" +if [ $centos_ver -lt 6 ] + then + exit 0 +fi -[ "$(readlink -e /usr/bin/gunzip)" == "/usr/bin/gunzip" ] || ExitFail -[ "$(readlink -e /usr/bin/gzip)" == "/usr/bin/gzip" ] || ExitFail +t_Log "Checking binaries are present and run on C6/C7" + +if [ $centos_ver == 7 ] +then + [ "$(readlink -e /usr/bin/gunzip)" == "/usr/bin/gunzip" ] || ExitFail + [ "$(readlink -e /usr/bin/gzip)" == "/usr/bin/gzip" ] || ExitFail +elif [ $centos_ver == 6 ] +then + [ "$(readlink -e /bin/gunzip)" == "/bin/gunzip" ] || ExitFail + [ "$(readlink -e /bin/gzip)" == "/bin/gzip" ] || ExitFail +fi for binary in gunzip gzip zcat gzexe zcmp zdiff zegrep zfgrep zforce zgrep zless zmore znew do