projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If a pager isn't specified with configure --with-pager, look in order
[mmh]
/
test
/
bad-input
/
test-header
diff --git
a/test/bad-input/test-header
b/test/bad-input/test-header
index
71a63a9
..
b45a576
100755
(executable)
--- a/
test/bad-input/test-header
+++ b/
test/bad-input/test-header
@@
-6,23
+6,14
@@
######################################################
if test -z "${MH_OBJ_DIR}"; then
######################################################
if test -z "${MH_OBJ_DIR}"; then
- srcdir=`dirname $0`/../..
- MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
+ srcdir=`dirname "$0"`/../..
+ MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
fi
. "$MH_OBJ_DIR/test/common.sh"
setup_test
fi
. "$MH_OBJ_DIR/test/common.sh"
setup_test
-# TODO: Move to a common file tests can source; need more framework...
-failed=0
-check() {
- diff -u $expected $actual
- if [ $? -ne 0 ]; then
- failed=$((failed + 1))
- fi
-}
-
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
expected=$MH_TEST_DIR/$$.expected
actual=$MH_TEST_DIR/$$.actual
@@
-44,7
+35,7
@@
cat > $expected <<EOF
11 12/18 foo@example.edu test<<This is a multi-part message in MIME forma
EOF
scan $msgnum > $actual 2>&1
11 12/18 foo@example.edu test<<This is a multi-part message in MIME forma
EOF
scan $msgnum > $actual 2>&1
-check
+check $expected $actual
# check show (mhl)
cat > $expected <<EOF
# check show (mhl)
cat > $expected <<EOF
@@
-62,7
+53,7
@@
This is a multi-part message in MIME format.
I am a stupid spammer.
EOF
show $msgnum > $actual 2>&1
I am a stupid spammer.
EOF
show $msgnum > $actual 2>&1
-check
+check $expected $actual
# check mhshow
cat > $expected <<EOF
# check mhshow
cat > $expected <<EOF
@@
-79,6
+70,6
@@
This is a multi-part message in MIME format.
I am a stupid spammer.
EOF
mhshow -nopause $msgnum > $actual 2>&1
I am a stupid spammer.
EOF
mhshow -nopause $msgnum > $actual 2>&1
-check
+check $expected $actual
exit $failed
exit $failed