blob: 0e1616d1df7ca7a62cf129e8b69168c6e991e6fc [file] [log] [blame]
#!/usr/bin/perl
use lib '.'; use lib 't';
use SATest; sa_t_init("plugin_priorities");
use Test; BEGIN { plan tests => 2 };
# ---------------------------------------------------------------------------
%patterns = (
q{ META2_FOUND } => '',
);
%anti_patterns = ();
tstlocalrules ("
loadplugin myTestPlugin ../../data/testplugin.pm
loadplugin myTestPlugin2 ../../data/testplugin2.pm
header META2_FOUND Plugin-Meta-Test2 =~ /bar2/
");
ok (sarun ("-L -t < data/spam/gtube.eml", \&patterns_run_cb));
ok_all_patterns();