File: check_rpc.t

package info (click to toggle)
monitoring-plugins 2.3.3-5%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,996 kB
  • sloc: ansic: 63,549; sh: 14,212; perl: 7,390; makefile: 487
file content (21 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (6)
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",   3, $successOutput );

exit(0) if defined($Test::Harness::VERSION);
exit($tests - $t);