mirror of
https://git.proxmox.com/git/proxmox-spamassassin
synced 2025-04-29 04:30:26 +00:00
22 lines
484 B
Perl
Executable File
22 lines
484 B
Perl
Executable File
#!/usr/bin/perl -T
|
|
|
|
use lib '.'; use lib 't';
|
|
use SATest; sa_t_init("lint_nocreate_prefs");
|
|
use Test::More tests => 2;
|
|
|
|
# ---------------------------------------------------------------------------
|
|
tstpre ("
|
|
loadplugin Mail::SpamAssassin::Plugin::AWL
|
|
");
|
|
|
|
%patterns = ( qr/^/, 'anything' );
|
|
|
|
# override locale for this test!
|
|
$ENV{'LANGUAGE'} = $ENV{'LC_ALL'} = 'C';
|
|
|
|
sarun ("-L --lint --prefspath=$workdir/prefs", \&patterns_run_cb);
|
|
ok_all_patterns();
|
|
|
|
ok (!-f "$workdir/prefs");
|
|
|