From 4851b07098cc85afb87acb7802a912090b450134 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sat, 9 Dec 2017 18:41:27 +0000 Subject: [PATCH] test: Add missing test file in mda-lmtp The mda-lmtp tests are missing a file in the repository, which causes the test to fail. This went unnoticed because they are not included in the automated test suite, which will be fixed in a follow-up patch. This patch adds the mising test file, with a harder to miss name. --- cmd/mda-lmtp/test-email | 3 +++ cmd/mda-lmtp/test_tcp_null.cmy | 2 +- cmd/mda-lmtp/test_tcp_success.cmy | 2 +- cmd/mda-lmtp/test_unix_failure.cmy | 2 +- cmd/mda-lmtp/test_unix_success.cmy | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 cmd/mda-lmtp/test-email diff --git a/cmd/mda-lmtp/test-email b/cmd/mda-lmtp/test-email new file mode 100644 index 0000000..b5913f9 --- /dev/null +++ b/cmd/mda-lmtp/test-email @@ -0,0 +1,3 @@ +Subject: test + +This is a test. diff --git a/cmd/mda-lmtp/test_tcp_null.cmy b/cmd/mda-lmtp/test_tcp_null.cmy index cdd95c9..2417c09 100644 --- a/cmd/mda-lmtp/test_tcp_null.cmy +++ b/cmd/mda-lmtp/test_tcp_null.cmy @@ -1,7 +1,7 @@ nc tcp_listen localhost:14932 -mda |= ./mda-lmtp --addr=localhost:14932 -f "<>" -d "<>" < .data +mda |= ./mda-lmtp --addr=localhost:14932 -f "<>" -d "<>" < test-email nc -> 220 Hola desde expect diff --git a/cmd/mda-lmtp/test_tcp_success.cmy b/cmd/mda-lmtp/test_tcp_success.cmy index f3b3256..ffab167 100644 --- a/cmd/mda-lmtp/test_tcp_success.cmy +++ b/cmd/mda-lmtp/test_tcp_success.cmy @@ -1,7 +1,7 @@ nc tcp_listen localhost:14932 -mda |= ./mda-lmtp --addr=localhost:14932 -f from -d to < .data +mda |= ./mda-lmtp --addr=localhost:14932 -f from -d to < test-email nc -> 220 Hola desde expect diff --git a/cmd/mda-lmtp/test_unix_failure.cmy b/cmd/mda-lmtp/test_unix_failure.cmy index 0bb8c26..d5cd02c 100644 --- a/cmd/mda-lmtp/test_unix_failure.cmy +++ b/cmd/mda-lmtp/test_unix_failure.cmy @@ -2,7 +2,7 @@ nc unix_listen .test-sock mda = ./mda-lmtp --addr=.test-sock --addr_network=unix \ - -f from -d to < .data + -f from -d to < test-email nc -> 220 Hola desde expect diff --git a/cmd/mda-lmtp/test_unix_success.cmy b/cmd/mda-lmtp/test_unix_success.cmy index 37f3597..c580909 100644 --- a/cmd/mda-lmtp/test_unix_success.cmy +++ b/cmd/mda-lmtp/test_unix_success.cmy @@ -2,7 +2,7 @@ nc unix_listen .test-sock mda |= ./mda-lmtp --addr=.test-sock --addr_network=unix \ - -f from -d to < .data + -f from -d to < test-email nc -> 220 Hola desde expect