- Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathruntest
31 lines (25 loc) · 886 Bytes
/
runtest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
DIR=`pwd`
Msg2archive=$DIR/msg2hypermailarchive.py
TestMsg=$DIR/test-msg
if [ !-d ../tests/mail-archive ];then
mkdir ../tests/mail-archive
fi
if [ !-d ../tests/mail-archive/mailbox ];then
mkdir ../tests/mail-archive/mailbox
fi
#cat test-msg | htestmail -v
# Tests for generic msg2archive executable
#
# usage: msg2archive [options] (file on stdin only)
# -A archive-basedir (#define ARCHIVE)
# -b about_link (#define ABOUT_LINK)
# -c configfile (#define CONFIGFILE)
# -H hypermail executable (#define HYPERMAIL)
# -L listname (#define LISTNAME)
# -l list lable (#define LABEL)
# -M mailbox directory (#define MAILBOXDIR)
# -t testing (no execution, assumes -v)
# -v verbose
(cd ../tests; cat $TestMsg|$Msg2archive -v -L hypermail-test )