]>
diplodocus.org Git - nmh/blob - test/runtest
3 export MH_TEST_DIR
=`cat test-temp-dir`
4 export MH
=$MH_TEST_DIR/mh_profile
5 export PATH
=$MH_TEST_DIR/bin
:$PATH
8 rm -rf $MH_TEST_DIR/Mail
10 mkdir $MH_TEST_DIR/Mail
11 folder
-create +inbox
> /dev
/null
12 # create 10 basic messages
15 cat > $MH_TEST_DIR/Mail
/inbox
/$i <<EOF
16 From: Test$i <test$i@example.com>
17 To: Some User <user@example.com>
18 Date: Fri, 29 Sep 2006 00:00:00
19 Subject: Testing message $i
21 This is message number $i
30 if [ $return_value -eq 0 ] ; then
32 elif [ $return_value -eq 120 ]; then
33 # indicates test was skipped (eg needed program not found)
34 # test itself should have printed a message about this,
35 # so print nothing here.