summaryrefslogtreecommitdiff
path: root/test/tests/inject/copy
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/inject/copy')
-rw-r--r--test/tests/inject/copy19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/tests/inject/copy b/test/tests/inject/copy
new file mode 100644
index 0000000..9e99c85
--- /dev/null
+++ b/test/tests/inject/copy
@@ -0,0 +1,19 @@
+. functions
+
+tst() {
+ {
+ echo "To: bruceg@em.ca"
+ echo
+ dd if=/dev/urandom bs=1k count=$1 2>/dev/null | uuencode data
+ } >testmessage.in
+ inject -n <testmessage.in | \
+ sed -e '/^Message-Id:/d' -e '/^Date:/d' -e '/^From:/d' >testmessage.out
+ cmp testmessage.in testmessage.out
+}
+
+for k in 1 2 4 8 10 20 40 80 100; do
+ echo "Testing inject with ${k}KB of uuencoded data"
+ tst $k
+done
+
+rm -f testmessage.{in,out}