summaryrefslogtreecommitdiff
path: root/tests/email-print-mime-structure.sh
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-11-25 01:53:54 -0500
committerSean Whitton <spwhitton@spwhitton.name>2019-11-25 07:46:31 -0700
commite9e26fa3d84b9d38c4a33fb33f890b21b482ef13 (patch)
treea978cd678bebf751ca72c29ac3bfc626ba6f6895 /tests/email-print-mime-structure.sh
parent0f4661cde91646c0481d00413d1188cf538829d5 (diff)
downloadmailscripts-e9e26fa3d84b9d38c4a33fb33f890b21b482ef13.tar.gz
email-print-mime-structure: simple baseline test suite
I want to ensure that any changes don't ultimately break the behavior of email-print-mime-structure. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'tests/email-print-mime-structure.sh')
-rwxr-xr-xtests/email-print-mime-structure.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/email-print-mime-structure.sh b/tests/email-print-mime-structure.sh
new file mode 100755
index 0000000..5efa2ca
--- /dev/null
+++ b/tests/email-print-mime-structure.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+for eml in tests/email-print-mime-structure/*.eml; do
+ printf "Testing %s\n" "${eml##*/}"
+ diff -u "${eml%%.eml}.out" <(./email-print-mime-structure < "$eml")
+done