Use cksum(1) instead of md5sum(1) in the tests
[mmh] / test / tests / inc / test-deb359167
index 61d3283..8ca6395 100644 (file)
@@ -2,7 +2,7 @@
 # Test a variant of a mailbox which caused debian bug 359167.
 set -e
 
-. common.sh
+. $MH_TEST_COMMON
 
 THISDIR="tests/inc"
 
@@ -10,9 +10,10 @@ require_prog valgrind
 
 TESTMBOX="$THISDIR/deb359167.mbox"
 
-if [ "$(md5sum "$TESTMBOX" | cut -d ' ' -f 1)" != "e6ac458b8cccba2b2fd866fb505aeb5e" ]; then 
-  echo "Test mailbox has been corrupted"
-  exit 1
+if [ "$(cksum "$TESTMBOX")" != \
+               "2235746290 3324 tests/inc/deb359167.mbox" ]; then 
+       echo "Test mailbox has been corrupted"
+       exit 1
 fi
 
 valgrind --error-exitcode=1 --quiet inc -silent -file "$TESTMBOX"