annotate tests/relay-to-localhost-mta/test.tpl @ 63:49ca781e1503

reworked the test cases completely they are split into four independent tests now and each one is tested to work with the current version
author meillo@marmaro.de
date Sun, 30 May 2010 16:05:49 +0200
parents
children 0379789a847b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
1 #! /bin/bash
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
2
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
3 # should be run from within tests dir set if you move this:
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
4 mm_bin=../../src/masqmail
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
5
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
6 hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
7 hto="$hfrom"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
8 to=`logname`@RECV_HOST
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
9 hsubject="MasqMail stdin Test"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
10
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
11
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
12 # Testing with rcpt on cmd line
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
13 # (dot does end)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
14 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
15 # the command to be run:
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
16 cmd="$mm_bin -C ./test.conf $to"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
17
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
18 $cmd <<EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
19 From: $hfrom
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
20 To: $hto
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
21 Subject: $hsubject
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
22
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
23 Hallo Fritz!
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
24
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
25 ..
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
26 there is a dot above (Yes, one and not two).
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
27
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
28 command was: $cmd
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
29
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
30 Fritz
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
31 .
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
32
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
33 EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
34
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
35 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
36 # Testing with rcpt on cmd line with -oi option
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
37 # (dot does not end)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
38 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
39 # the command to be run:
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
40 cmd="$mm_bin -C ./test.conf -oi $to"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
41
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
42 $cmd <<EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
43 From: $hfrom
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
44 To: $hto
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
45 Subject: $hsubject
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
46
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
47 Hallo Fritz!
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
48 .
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
49 there is a dot above.
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
50
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
51 command was: $cmd
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
52
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
53 Fritz
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
54
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
55 EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
56
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
57 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
58 # Testing with rcpt read from headers (-t option)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
59 # (dot does end)
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
60 #
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
61 # the command to be run:
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
62 cmd="$mm_bin -C ./test.conf -t"
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
63
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
64 $cmd <<EOF
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
65 From: $hfrom
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
66 To: $hto
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
67 Subject: $hsubject
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
68
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
69 Hallo Fritz!
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
70 ..
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
71 there is a dot above.
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
72
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
73 command was: $cmd
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
74
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
75 Fritz
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
76 .
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
77
49ca781e1503 reworked the test cases completely
meillo@marmaro.de
parents:
diff changeset
78 EOF