With -messageid random, make the part after the @ more resemble a
[mmh] / test / manpages / test-manpages
index 7c221ba..ce7d443 100755 (executable)
@@ -6,7 +6,12 @@
 #
 ######################################################
 
-. ${MH_TEST_COMMON}
+if test -z "${MH_OBJ_DIR}"; then
+    srcdir=`dirname "$0"`/../..
+    MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
+fi
+
+. "$MH_OBJ_DIR/test/common.sh"
 
 setup_test
 
@@ -27,7 +32,9 @@ rm -f "$expected" "$actual"
 touch "$expected" "$actual"
 
 for manpage in man?/*.?; do
-  groff -Tutf8 -mandoc -wmac "$manpage" > /dev/null 2>>"$actual"
+  groff -Tutf8 -mandoc -ww "$manpage" > /dev/null 2>>"$actual"
 done
 
-diff -u "$expected" "$actual"
+check "$expected" "$actual"
+
+exit $failed