File: check_rpc.t

package info (click to toggle)
nagios-plugins 1.4.15-3squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,184 kB
  • ctags: 6,100
  • sloc: ansic: 55,405; perl: 13,875; sh: 13,136; makefile: 496; python: 444; awk: 46
file content (21 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/perl -w -I ..
#
# Remote Procedure Call (RPC) Tests via check_rpc
#
#

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);