]>
diplodocus.org Git - nmh/blob - test/runtest
5 if [ ! -e test-temp-dir ]; then
6 echo "test-temp-dir not found: running setup-test"
10 export MH_TEST_DIR
=`cat test-temp-dir`
12 if [ ! -e "$MH_TEST_DIR/bld/Makefile" ]; then
13 echo "temporary directory missing or broken: running setup-test"
15 export MH_TEST_DIR
=`cat test-temp-dir`
18 export MH
=$MH_TEST_DIR/mh_profile
19 export PATH
=$MH_TEST_DIR/bin
:$PATH
22 rm -rf $MH_TEST_DIR/Mail
24 mkdir $MH_TEST_DIR/Mail
25 folder
-create +inbox
> /dev
/null
26 # create 10 basic messages
29 cat > $MH_TEST_DIR/Mail
/inbox
/$i <<EOF
30 From: Test$i <test$i@example.com>
31 To: Some User <user@example.com>
32 Date: Fri, 29 Sep 2006 00:00:00
33 Subject: Testing message $i
35 This is message number $i
45 if [ $return_value -eq 0 ] ; then
47 elif [ $return_value -eq 120 ]; then
48 # indicates test was skipped (eg needed program not found)
49 # test itself should have printed a message about this,
50 # so print nothing here.