masqmail
annotate tests/test.templ @ 55:185ba6c0e6f0
install man pages again, patch by Juergen Daubert
author | meillo@marmaro.de |
---|---|
date | Sat, 29 May 2010 14:28:45 +0200 |
parents | |
children |
rev | line source |
---|---|
meillo@0 | 1 #! /bin/bash |
meillo@0 | 2 |
meillo@0 | 3 # should be run from within tests dir |
meillo@0 | 4 # set if you move this: |
meillo@0 | 5 mm_src_dir=../src |
meillo@0 | 6 mm_bin=$mm_src_dir/masqmail |
meillo@0 | 7 |
meillo@0 | 8 # |
meillo@0 | 9 hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>" |
meillo@0 | 10 hto=$hfrom |
meillo@0 | 11 to=`logname`@RECV_HOST |
meillo@0 | 12 hsubject="MasqMail stdin Test" |
meillo@0 | 13 |
meillo@0 | 14 # |
meillo@0 | 15 # Testing with rcpt on cmd line |
meillo@0 | 16 # (dot does end) |
meillo@0 | 17 # |
meillo@0 | 18 # the command to be run: |
meillo@0 | 19 cmd="$mm_bin -C ./test.conf $to" |
meillo@0 | 20 |
meillo@0 | 21 $cmd <<EOF |
meillo@0 | 22 From: $hfrom |
meillo@0 | 23 To: $hto |
meillo@0 | 24 Subject: $hsubject |
meillo@0 | 25 |
meillo@0 | 26 Hallo Fritz! |
meillo@0 | 27 |
meillo@0 | 28 .. |
meillo@0 | 29 there is a dot above (Yes, one and not two). |
meillo@0 | 30 |
meillo@0 | 31 command was: $cmd |
meillo@0 | 32 |
meillo@0 | 33 Fritz |
meillo@0 | 34 . |
meillo@0 | 35 |
meillo@0 | 36 EOF |
meillo@0 | 37 |
meillo@0 | 38 # |
meillo@0 | 39 # Testing with rcpt on cmd line with -oi option |
meillo@0 | 40 # (dot does not end) |
meillo@0 | 41 # |
meillo@0 | 42 # the command to be run: |
meillo@0 | 43 cmd="$mm_bin -C ./test.conf -oi $to" |
meillo@0 | 44 |
meillo@0 | 45 $cmd <<EOF |
meillo@0 | 46 From: $hfrom |
meillo@0 | 47 To: $hto |
meillo@0 | 48 Subject: $hsubject |
meillo@0 | 49 |
meillo@0 | 50 Hallo Fritz! |
meillo@0 | 51 . |
meillo@0 | 52 there is a dot above. |
meillo@0 | 53 |
meillo@0 | 54 command was: $cmd |
meillo@0 | 55 |
meillo@0 | 56 Fritz |
meillo@0 | 57 |
meillo@0 | 58 EOF |
meillo@0 | 59 |
meillo@0 | 60 # |
meillo@0 | 61 # Testing with rcpt read from headers (-t option) |
meillo@0 | 62 # (dot does end) |
meillo@0 | 63 # |
meillo@0 | 64 # the command to be run: |
meillo@0 | 65 cmd="$mm_bin -C ./test.conf -t" |
meillo@0 | 66 |
meillo@0 | 67 $cmd <<EOF |
meillo@0 | 68 From: $hfrom |
meillo@0 | 69 To: $hto |
meillo@0 | 70 Subject: $hsubject |
meillo@0 | 71 |
meillo@0 | 72 Hallo Fritz! |
meillo@0 | 73 .. |
meillo@0 | 74 there is a dot above. |
meillo@0 | 75 |
meillo@0 | 76 command was: $cmd |
meillo@0 | 77 |
meillo@0 | 78 Fritz |
meillo@0 | 79 . |
meillo@0 | 80 |
meillo@0 | 81 EOF |