cksum(1) is part of POSIX; md5sum(1) is not.
--- /dev/null
+4195362473 17161 filler.txt
+3020538295 51 fromline.txt
+525303352 121 msgheader.txt
+++ /dev/null
-4112b1460e11bd94d30944dd464a6662 filler.txt
-023aad60eab43f06cf525869a833beb4 fromline.txt
-4fda7f16b29d757413cb928d6ffc5aa5 msgheader.txt
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"
# intact. (Since we're dealing in exact byte alignment
# minor corruptions such as line ending changes could
# render the tests useless.)
-(cd "$THISDIR" && md5sum *.txt > "$MH_TEST_DIR/inctest.md5sums")
-diff -u "$THISDIR/md5sums" "$MH_TEST_DIR/inctest.md5sums"
+(cd "$THISDIR" && cksum *.txt > "$MH_TEST_DIR/inctest.cksums")
+diff -u "$THISDIR/cksums" "$MH_TEST_DIR/inctest.cksums"
FILLER="$THISDIR/filler.txt"
FROMLINE="$THISDIR/fromline.txt"