From dc4d190043b1b5bd8532ab1e6722b618e8ec52fa Mon Sep 17 00:00:00 2001 From: Anssi Johansson Date: Feb 26 2013 20:11:39 +0000 Subject: gzip on i386 behaves differently, add an alternative md5sum --- diff --git a/tests/p_gzip/20-gzip-test b/tests/p_gzip/20-gzip-test index a8df5d5..055331e 100755 --- a/tests/p_gzip/20-gzip-test +++ b/tests/p_gzip/20-gzip-test @@ -80,10 +80,18 @@ gzip -c $FILE | gunzip | grep -q 'gzip-test of single file' || ExitFail # 59 25 24.0% /var/tmp/gzip-test.txt # # The md5sum is 4cbaba004a815915904bd524ede5edec +# +# The 32-bit gzip behaves differently: +# +# compressed uncompressed ratio uncompressed_name +# 59 25 -8.0% /var/tmp/gzip-test.txt +# +# The md5sum is caf6dee7a56022a840316520134967a4 + t_Log "Check the output of -l" gzip $FILE mdhash=$(gzip -l $FILE.gz | md5sum | cut -f1 -d' ') -[ "$mdhash" == "4cbaba004a815915904bd524ede5edec" ] || ExitFail +[ "$mdhash" == "4cbaba004a815915904bd524ede5edec" -o "$mdhash" == "caf6dee7a56022a840316520134967a4" ] || ExitFail # Check that -q works which removes the header information from -l t_Log "Check -q reduced the output verbosity"