Squashed commit of the following: commit 606d572db561d8de659bce6ac96252f8a1d7ee29 Author: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 14:56:07 2017 +0100 tests should be release tests, so move to xt/ commit7673f3ee1eAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 14:19:19 2017 +0100 allow check_acl to accept Device or NetAddr::IP instance commitc31059bc01Author: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 14:19:00 2017 +0100 update docs commitdeaeab2670Author: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 14:18:27 2017 +0100 SNMP only stanza has access to full check_acl features commit4a44fa5863Author: Oliver Gorwits <oliver@cpan.org> Date: Mon May 1 18:49:38 2017 +0100 add AND operator and negation support to ACLs
19 lines
482 B
Perl
19 lines
482 B
Perl
#!/usr/bin/perl
|
|
use strict;
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
use Env::Path;
|
|
use FindBin qw( $Bin );
|
|
|
|
my @phantomjs = Env::Path->PATH->Whence('phantomjs');
|
|
my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS};
|
|
|
|
if ( ! defined $phantomjs or !-x $phantomjs ) {
|
|
plan skip_all =>
|
|
"phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location";
|
|
}
|
|
else {
|
|
exec( $phantomjs, "$Bin/js/run_qunit.js", "$Bin/html/portsort.html" );
|
|
}
|