mirror of
https://git.proxmox.com/git/proxmox-spamassassin
synced 2025-08-15 06:48:30 +00:00
27 lines
682 B
Raku
Executable File
27 lines
682 B
Raku
Executable File
#!/usr/bin/perl -T
|
|
|
|
use lib '.'; use lib 't';
|
|
use SATest; sa_t_init("spamc_x_e");
|
|
|
|
use Test::More;
|
|
plan skip_all => "Spamd tests disabled" if $SKIP_SPAMD_TESTS;
|
|
plan tests => 7;
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# test case for bug 5478: spamc -x -e
|
|
|
|
%patterns = ( 'Fine' => 'Fine' );
|
|
|
|
ok start_spamd("-L");
|
|
ok spamcrun("-x -e /bin/echo Fine < data/nice/001", \&patterns_run_cb);
|
|
ok ok_all_patterns();
|
|
stop_spamd();
|
|
|
|
%patterns = ( );
|
|
%anti_patterns = ( 'Fine' => 'Fine' );
|
|
$spamdhost = '255.255.255.255'; # cause "connection failed" errors
|
|
|
|
ok !spamcrun("-x -e /bin/echo Fine < data/nice/001", \&patterns_run_cb);
|
|
ok ok_all_patterns();
|
|
|