Revision 24013,
750 bytes
checked in by broder, 15 years ago
(diff) |
Create a package for the Mail::ExpandAliases Perl module.
This will be used for an updated version of the debathena-msmtp-mta
which can understand /etc/aliases files.
|
Line | |
---|
1 | #!/usr/bin/perl -w |
---|
2 | # ---------------------------------------------------------------------- |
---|
3 | # vim: set ft=perl: -*-cperl-*- |
---|
4 | # ---------------------------------------------------------------------- |
---|
5 | |
---|
6 | use strict; |
---|
7 | use Config; |
---|
8 | use Test; |
---|
9 | |
---|
10 | my $result; |
---|
11 | my $cmd = "$Config{'perlpath'} -Mblib expand-alias -f t/aliases 2>/dev/null"; |
---|
12 | |
---|
13 | BEGIN { |
---|
14 | plan test => 4; |
---|
15 | } |
---|
16 | |
---|
17 | chomp ($result = `$cmd spam`); |
---|
18 | ok($result, "/dev/null"); |
---|
19 | |
---|
20 | chomp ($result = `$cmd tjones`); |
---|
21 | ok($result, 'Tom_Jones@unresolvable.perl.org'); |
---|
22 | |
---|
23 | chomp ($result = `$cmd redist`); |
---|
24 | ok($result, '| /path/to/redist'); |
---|
25 | |
---|
26 | chomp ($result = `$cmd jones`); |
---|
27 | ok($result, 'Barnaby_Jones@unresolvable.perl.org Bridget_Jones@unresolvable.perl.org Quincy_Jones@unresolvable.perl.org Tom_Jones@unresolvable.perl.org'); |
---|
Note: See
TracBrowser
for help on using the repository browser.