]> diplodocus.org Git - nmh/blobdiff - test/runtest
Make the test suite work on systems other than Linux. Still needs work.
[nmh] / test / runtest
index 17ea5e6a2a3cec4d9e6e51dcd0da222b5c53d0d0..f23608bf560c2db8fe718c258c3ebc522aa6d227 100755 (executable)
@@ -12,13 +12,6 @@ export MH=$MH_TEST_DIR/Mail/.mh_profile
 export PATH=$MH_TEST_DIR/bin:$PATH
 export MH_TEST_COMMON=$PWD/common.sh
 
 export PATH=$MH_TEST_DIR/bin:$PATH
 export MH_TEST_COMMON=$PWD/common.sh
 
-#### Some tests use mhshow to display headers.  It relies on mhl's
-#### default mhl.headers, which runs the date through the pretty
-#### function.  That displays the date with the user's current
-#### timezone.  All of the tests expect GMT, so fool them into using
-#### that.
-export TZ=GMT
-
 [ -d $MH_TEST_DIR ] || ./setup-test
 
 # clean old test data
 [ -d $MH_TEST_DIR ] || ./setup-test
 
 # clean old test data
@@ -29,7 +22,7 @@ mkdir $MH_TEST_DIR/Mail
 echo "Path: $MH_TEST_DIR/Mail" > $MH
 folder -create +inbox > /dev/null
 # create 10 basic messages
 echo "Path: $MH_TEST_DIR/Mail" > $MH
 folder -create +inbox > /dev/null
 # create 10 basic messages
-for i in `seq 1 10`;
+for i in 1 2 3 4 5 6 7 8 9 10;
 do
     cat > $MH_TEST_DIR/Mail/inbox/$i <<EOF
 From: Test$i <test$i@example.com>
 do
     cat > $MH_TEST_DIR/Mail/inbox/$i <<EOF
 From: Test$i <test$i@example.com>
@@ -54,7 +47,7 @@ elif [ $return_value -eq 120 ]; then
     # indicates test was skipped (eg needed program not found)
     # test itself should have printed a message about this,
     # so print nothing here.
     # indicates test was skipped (eg needed program not found)
     # test itself should have printed a message about this,
     # so print nothing here.
-    :
+    status=0
 else
     echo Test $1 FAIL
 fi
 else
     echo Test $1 FAIL
 fi