mirror of
https://git.proxmox.com/git/proxmox-spamassassin
synced 2025-08-06 01:37:03 +00:00
24 lines
474 B
Perl
Executable File
24 lines
474 B
Perl
Executable File
#!/usr/bin/perl -T
|
|
|
|
use lib '.'; use lib 't';
|
|
use SATest; sa_t_init("metadata");
|
|
use Test::More tests => 3;
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%patterns = (
|
|
|
|
q{ GTUBE }, 'gtube',
|
|
q{ META_FOUND }, 'META_FOUND',
|
|
|
|
);
|
|
|
|
tstlocalrules ("
|
|
loadplugin myTestPlugin ../../data/testplugin.pm
|
|
header META_FOUND Plugin-Meta-Test =~ /bar/
|
|
");
|
|
|
|
ok (sarun ("-L -t < data/spam/gtube.eml", \&patterns_run_cb));
|
|
ok_all_patterns();
|
|
|