From e9e26fa3d84b9d38c4a33fb33f890b21b482ef13 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 25 Nov 2019 01:53:54 -0500 Subject: 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 --- tests/email-print-mime-structure.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tests/email-print-mime-structure.sh (limited to 'tests/email-print-mime-structure.sh') 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 -- cgit v1.2.3