]> git.donarmstrong.com Git - debbugs.git/commitdiff
add configuration test script
authorDon Armstrong <don@donarmstrong.com>
Sun, 20 May 2007 10:36:52 +0000 (03:36 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 20 May 2007 10:36:52 +0000 (03:36 -0700)
t/03_configuration.t [new file with mode: 0644]

diff --git a/t/03_configuration.t b/t/03_configuration.t
new file mode 100644 (file)
index 0000000..cf7d3a9
--- /dev/null
@@ -0,0 +1,13 @@
+# -*- mode: cperl;-*-
+
+use Test::More tests => 6;
+
+use warnings;
+use strict;
+
+BEGIN{use_ok('Debbugs::Config',qw(:globals %config));}
+ok($config{sendmail} eq '/usr/lib/sendmail', 'sendmail configuration set sanely');
+ok($config{spam_scan} == 0, 'spam_scan set to 0 by default');
+ok($gSendmail eq '/usr/lib/sendmail','sendmail global works');
+ok($gSpamScan == 0 , 'spam_scan global works');
+ok(defined $gStrongList,'strong_list global works');