set -e
-. common.sh
+. $MH_TEST_COMMON
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"
# 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"