Initial checkin of a testsuite
[mmh] / test / setup-test
1 #!/bin/sh
2
3 TEMPDIR=`mktemp -d /tmp/nmh-test-XXXXXXXX`
4 echo $TEMPDIR > test-temp-dir
5
6 pushd ..
7 aclocal
8 autoheader
9 autoconf
10 ./configure --prefix=$TEMPDIR --with-locking=fcntl
11 make install
12
13 echo "Path: $TEMPDIR/Mail" > $TEMPDIR/mh_profile
14 mkdir $TEMPDIR/Mail
15
16 MH=$TEMPDIR/mh_profile $TEMPDIR/bin/folder -create +inbox
17
18 for i in `seq 1 10`;
19 do
20     cat > $TEMPDIR/Mail/inbox/$i <<EOF
21 From: Test$i <test$i@example.com>
22 To: Some User <user@example.com>
23 Date: Fri, 29 Sep 2006 00:00:00
24 Subject: Testing message $i
25
26 This is message number $i
27 EOF
28 done
29
30 popd