Mercurial > masqmail
comparison tests/localhost-stdin/test @ 64:0379789a847b
improved comments in test cases
author | meillo@marmaro.de |
---|---|
date | Sun, 30 May 2010 16:52:35 +0200 |
parents | 49ca781e1503 |
children | 60bb2dbe2866 |
comparison
equal
deleted
inserted
replaced
63:49ca781e1503 | 64:0379789a847b |
---|---|
1 #! /bin/bash | 1 #!/bin/sh |
2 | 2 |
3 # should be run from within tests dir set if you move this: | 3 # path to the masqmail executable |
4 mm_bin=../../src/masqmail | 4 mm_bin=../../src/masqmail |
5 | 5 |
6 # | 6 |
7 hfrom="\"Fritz Meier\" <`logname`@localhost>" | 7 hfrom="\"Fritz Meier\" <`logname`@localhost>" |
8 hto=$hfrom | 8 hto=$hfrom |
9 to=`logname`@localhost | 9 to=`logname`@localhost |
10 hsubject="MasqMail stdin Test" | 10 hsubject="Masqmail test: localhost-stdin" |
11 | 11 |
12 # | 12 |
13 # Testing with rcpt on cmd line | 13 # Testing with rcpt on cmd line |
14 # (dot does end) | 14 # (dot does end) |
15 # | 15 # |
16 # the command to be run: | 16 # the command to be run: |
17 cmd="$mm_bin -C ./test.conf $to" | 17 cmd="$mm_bin -C ./test.conf $to" |
20 From: $hfrom | 20 From: $hfrom |
21 To: $hto | 21 To: $hto |
22 Subject: $hsubject | 22 Subject: $hsubject |
23 | 23 |
24 Hallo Fritz! | 24 Hallo Fritz! |
25 | |
26 .. | 25 .. |
27 there is a dot above (Yes, one and not two). | 26 there is a dot above (Yes, one and not two). |
28 | 27 |
29 command was: $cmd | 28 command was: $cmd |
30 | 29 |
31 Fritz | 30 Fritz |
32 . | 31 . |
33 | 32 |
34 EOF | 33 EOF |
35 | 34 |
36 # | 35 |
37 # Testing with rcpt on cmd line with -oi option | 36 # Testing with rcpt on cmd line with -oi option |
38 # (dot does not end) | 37 # (dot does not end) |
39 # | 38 # |
40 # the command to be run: | 39 # the command to be run: |
41 cmd="$mm_bin -C ./test.conf -oi $to" | 40 cmd="$mm_bin -C ./test.conf -oi $to" |
53 | 52 |
54 Fritz | 53 Fritz |
55 | 54 |
56 EOF | 55 EOF |
57 | 56 |
58 # | 57 |
59 # Testing with rcpt read from headers (-t option) | 58 # Testing with rcpt read from headers (-t option) |
60 # (dot does end) | 59 # (dot does end) |
61 # | 60 # |
62 # the command to be run: | 61 # the command to be run: |
63 cmd="$mm_bin -C ./test.conf -t" | 62 cmd="$mm_bin -C ./test.conf -t" |