From 77f9c1e5132e24b2ce9d0dbf88f7d8c80328d660 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 3 May 2010 19:28:36 -0700 Subject: [PATCH] add more control limit tests --- t/07_control_limit.t | 57 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/t/07_control_limit.t b/t/07_control_limit.t index 630cc8d..f4f600b 100644 --- a/t/07_control_limit.t +++ b/t/07_control_limit.t @@ -1,6 +1,6 @@ # -*- mode: cperl; -*- -use Test::More tests => 4; +use Test::More tests => 8; use warnings; use strict; @@ -102,3 +102,58 @@ $SD_SIZE = ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed: Munging a bug with limit_package_foo")) == 0, 'control@bugs.something'. "limit message succeeded with no errors"); +send_message(to=>'submit@bugs.something', + headers => [To => 'submit@bugs.something', + From => 'foo@bugs.something', + Subject => 'Submiting a bug', + ], + body => < 'control@bugs.something', + headers => [To => 'control@bugs.something', + From => 'foo@bugs.something', + Subject => "Munging a bug with limit_package_bar", + ], + body => < 'control@bugs.something', + headers => [To => 'control@bugs.something', + From => 'foo@bugs.something', + Subject => "Munging a bug with limit_package_foo", + ], + body => <