Import ezmlm-idx 0.40
[ezmlm] / ezmlm-test.1
CommitLineData
f8beb284
MW
1.TH ezmlm-test 1
2.SH NAME
3ezmlm-test \- test ezmlm programs
4.SH SYNOPSIS
5.B ezmlm-test
6[
7.B \-on
8][
9.B \-h\fI host
10][
11.B \-u\fI user
12][
13.B \-l\fI sqluser
14][
15.B \-t\fI sqltable
16][
17.B \-d\fI sqldatabase
18][
19.B \-p\fI sqlpassword
20][
21.B \-s\fI section
22]
23.I dir
24.SH DESCRIPTION
25.B ezmlm-test
26is run from the ezmlm build directory. It will test most of the functions
27of most of the programs in ezmlm-idx>=0.313. The program prints status
28and error messages to stdout. It requires that qmail runs on the host and that
29mail delivery to a local user functions. By default, it runs as the
30user ``eztest'' who should have read and execute permission to the files
31in the build directory.
32
33For testing with an SQL database (requires ezmlm-idx>=0.32; see
34.BR -p ),
35you need to have first created the tables in the database, e.g. using
36.BR ezmlm-mktab .
37A number of switches allow overriding the default connection information.
38
39.B ezmlm-test
40creates the list ``eztest-__tstlist@host''
41in the directory ``~/__TSTDIR''. This directory and ``~/.qmail-__tstlist*''
42will be overwritten/removed by the program. In addition,
43the file ``~/__TSTDIR_err'' is created. In cases of error, it often contains
44the error message form the failing program.
45
46.B ezmlm-test
47should complete without error.
48As many invocations of the programs test several functions it is not easy
49to determine what went wrong if
50.B ezmlm-test
51fails. Usually, ``~/__TSTDIR__err'' gives some leads, but then debugging
52of the particular program is required. Usually, this involves recreating
53the failing circumstances, including environment variables.
54.SH OPTIONS
55.TP
56.B \-d\fI sqldatabase
57If SQL support is tested, use
58.I sqldatabase
59as the database, overriding the default ``ezmlm''. See
60.BR \-p .
61.TP
62.B \-h\fI host
63Connect to an SQL server on
64.IR host ,
65if an SQL database is used (see
66.BR \-p ).
67Default is empty, which for most database managers defaults to
68localhost/unix socket. To specify a non-default port,
69add ``:port'' to the host name.
70.TP
71.B \-l\fI sqluser
72Connect as
73.I sqluser
74to the SQL server, if an SQL database is used (see
75.BR \-p ).
76By default, it is the same as the executing user as
77specified by the
78.B \-u
79switch or the default ``eztest''.
80.TP
81.B \-n
82Test assuming qmail>=1.02 and ezmlm-idx>=0.32. Normally, this is auto-detected.
83This switch is for testing of
84.B ezmlm-test
85and unlikely to be generally useful.
86.TP
87.B \-o
88Test assuming an old (<1.02) version of qmail which does not support
89the DEFAULT environment variable. Normally, this is auto-detected, and
90DEFAULT support is used if qmail>=1.02 and ezmlm-idx>=0.32. The ``old''
91style works with all versions of qmail, but requires adjustments for
92virtual domains. DEFAULT support makes these adjustments unnecessary.
93.TP
94.B \-p\fI sqlpassword
95Test with SQL support, and use
96.I sqlpassword
97as the connection password. By default, local databases, rather than an
98SQL database are used for testing. To use the SQL database with an
99empty password, specify
100.BR \-p\ '' .
101.TP
102.B \-s\fI section
103Restart
104.B ezmlm-test
105from section
106.IR section .
107This can be used to resume execution if the 30 s given for mail delivery
108was not sufficient for the test message to be delivered. ``9'' can be
109used to clean up any files remaining after incomplete execution of
110.BR ezmlm-test .
111This option should not be needed.
112.TP
113.B \-t\fI sqltable
114Use
115.I sqltable
116as the table root name for the SQL database tables, if an SQL database
117is used (see
118.BR \-p ).
119Default is ``list''.
120.TP
121.B \-u\fI user
122Execute
123.B ezmlm-test
124as
125.IR user .
126Default is ``eztest''. The program refuses to run, unless the effective
127user name matches this user name.
128.SH BUGS
129On some systems, some of the tests give a broken pipe error. This is because
130code needs to be added to the make_message function to capture error messages.
131These errors can be safely ignored for now.
132.SH "SEE ALSO"
133ezmlm(5),
134ezmlm-clean(1),
135ezmlm-gate(1),
136ezmlm-get(1),
137ezmlm-idx(1),
138ezmlm-issubn(1),
139ezmlm-list(1),
140ezmlm-make(1),
141ezmlm-manage(1),
142ezmlm-mktab(1),
143ezmlm-moderate(1),
144ezmlm-request(1),
145ezmlm-return(1),
146ezmlm-send(1),
147ezmlm-split(1),
148ezmlm-store(1),
149ezmlm-sub(1),
150ezmlm-tstdig(1),
151ezmlm-unsub(1),
152ezmlm-warn(1)
153