mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-10 22:33:33 -05:00
Complete rewrite of the original testing infrastructure and all test cases (to use the new infrastructure) See NPTest.pm and issue 1185704 for more details. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1207 f882894a-f735-0410-b71e-b25c423dba1c
22 lines
355 B
Perl
22 lines
355 B
Perl
#! /usr/bin/perl -w -I ..
|
|
#
|
|
# Remote Procedure Call (RPC) Tests via check_rpc
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
use strict;
|
|
use Test;
|
|
use NPTest;
|
|
|
|
use vars qw($tests);
|
|
BEGIN {$tests = 2; plan tests => $tests}
|
|
|
|
my $successOutput = '/^check_rpc/';
|
|
|
|
my $t;
|
|
|
|
$t += checkCmd( "./check_rpc -V", 0, $successOutput );
|
|
|
|
exit(0) if defined($Test::Harness::VERSION);
|
|
exit($tests - $t);
|