git » chasquid » commit 4851b07

test: Add missing test file in mda-lmtp

author Alberto Bertogli
2017-12-09 18:41:27 UTC
committer Alberto Bertogli
2017-12-09 18:41:27 UTC
parent fcf2cae120c76f98b492c7500e3c99bc738410a5

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 -0
cmd/mda-lmtp/test_tcp_null.cmy +1 -1
cmd/mda-lmtp/test_tcp_success.cmy +1 -1
cmd/mda-lmtp/test_unix_failure.cmy +1 -1
cmd/mda-lmtp/test_unix_success.cmy +1 -1

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