mirror of
https://git.proxmox.com/git/proxmox-spamassassin
synced 2025-04-28 16:01:29 +00:00
20 lines
422 B
Raku
Executable File
20 lines
422 B
Raku
Executable File
#!/usr/bin/perl -T
|
|
|
|
use lib '.'; use lib 't';
|
|
use SATest; sa_t_init("spamc");
|
|
|
|
use Test::More;
|
|
plan skip_all => "No SPAMC exe" if $SKIP_SPAMC_TESTS;
|
|
plan tests => 2;
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%patterns = (
|
|
'hello world', 'spamc',
|
|
);
|
|
|
|
# connect on port 9 (discard): should always fail
|
|
ok (scrun ("-p 9 < data/etc/hello.txt", \&patterns_run_cb));
|
|
ok_all_patterns();
|
|
|