Skip to content

Commit 2534708

Browse files
committed
Distribute tests, and clean up after them.
This allows 'make distcheck' to succeed.
1 parent 7e8cad2 commit 2534708

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tests/Makefile.am

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ TESTS = \
22
test-basic.sh \
33
test-auth-plain.sh \
44
test-header-handling.sh
5+
6+
CLEANFILES = \
7+
mail-auth-plain.txt \
8+
out-auth-plain-mail.txt out-auth-plain-rcpt.txt \
9+
mail-header-handling.txt mail-header-handling-correct-recipients.txt \
10+
out-header-handling-mail.txt out-header-handling-rcpt.txt
11+
12+
EXTRA_DIST = $(TESTS)

tests/test-header-handling.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ echo "[email protected]" \
4646
4747
"to12" \
4848
"to13@localhost" \
49-
"[email protected]" > correct-recipients.txt
49+
"[email protected]" > mail-header-handling-correct-recipients.txt
5050

5151
# Check if msmtp adds a correct From header
5252
echo "Testing From header generation"
@@ -69,7 +69,7 @@ echo "Testing address extraction"
6969
../src/msmtp --host=::1 --port=12346 \
7070
--set-from-header=on --read-envelope-from --read-recipients < mail-header-handling.txt
7171
cmp --quiet <(echo "From: [email protected]") <(grep "^From: " out-header-handling-mail.txt)
72-
cmp --quiet correct-recipients.txt out-header-handling-rcpt.txt
72+
cmp --quiet mail-header-handling-correct-recipients.txt out-header-handling-rcpt.txt
7373

7474
# Check if msmtp adds a Date header that agrees with the date command
7575
echo "Testing Date header"

0 commit comments

Comments
 (0)