Use cksum(1) instead of md5sum(1) in the tests
[mmh] / test / tests / inc / test-eom-align
index 3b6c677..2b6afb4 100644 (file)
@@ -8,7 +8,7 @@ set -e
 
 THISDIR="tests/inc"
 
-if [ ! -z "$VALGRIND_ME" ]; then
+if [ "$VALGRIND_ME" ]; then
     require_prog valgrind
     # Lack of quotes here is important
     VALGRIND="valgrind --quiet --error-exitcode=1"
@@ -21,8 +21,8 @@ fi
 # 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"