Mercurial > masqmail-0.2
comparison tests/hostname-stdin/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 | tests/test.templ@08114f7dcc23 |
children | 0379789a847b |
comparison
equal
deleted
inserted
replaced
62:610cd4e09b91 | 63:49ca781e1503 |
---|---|
1 #! /bin/bash | |
2 | |
3 # should be run from within tests dir set if you move this: | |
4 mm_bin=../../src/masqmail | |
5 | |
6 hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>" | |
7 hto="$hfrom" | |
8 to=`logname`@RECV_HOST | |
9 hsubject="MasqMail stdin Test" | |
10 | |
11 | |
12 # Testing with rcpt on cmd line | |
13 # (dot does end) | |
14 # | |
15 # the command to be run: | |
16 cmd="$mm_bin -C ./test.conf $to" | |
17 | |
18 $cmd <<EOF | |
19 From: $hfrom | |
20 To: $hto | |
21 Subject: $hsubject | |
22 | |
23 Hallo Fritz! | |
24 | |
25 .. | |
26 there is a dot above (Yes, one and not two). | |
27 | |
28 command was: $cmd | |
29 | |
30 Fritz | |
31 . | |
32 | |
33 EOF | |
34 | |
35 # | |
36 # Testing with rcpt on cmd line with -oi option | |
37 # (dot does not end) | |
38 # | |
39 # the command to be run: | |
40 cmd="$mm_bin -C ./test.conf -oi $to" | |
41 | |
42 $cmd <<EOF | |
43 From: $hfrom | |
44 To: $hto | |
45 Subject: $hsubject | |
46 | |
47 Hallo Fritz! | |
48 . | |
49 there is a dot above. | |
50 | |
51 command was: $cmd | |
52 | |
53 Fritz | |
54 | |
55 EOF | |
56 | |
57 # | |
58 # Testing with rcpt read from headers (-t option) | |
59 # (dot does end) | |
60 # | |
61 # the command to be run: | |
62 cmd="$mm_bin -C ./test.conf -t" | |
63 | |
64 $cmd <<EOF | |
65 From: $hfrom | |
66 To: $hto | |
67 Subject: $hsubject | |
68 | |
69 Hallo Fritz! | |
70 .. | |
71 there is a dot above. | |
72 | |
73 command was: $cmd | |
74 | |
75 Fritz | |
76 . | |
77 | |
78 EOF |