PROXY  WHOIS  RQUOTE  TEXTS  SOFT  FOREX  BBOARD
 Music  Philosophy  Code  Literature  Russian

= ROOT|Technical|Code_Examples|C|nagios-plugins-1.4.10|test.pl =

page 1 of 1



#!/usr/bin/perl -w -I .. -I ../..
#
# Wrapper for running the test harnesses
#
# $Id: test.pl.in 1207 2005-07-25 01:47:15Z illumino $
#

use strict;

use Getopt::Long;

use NPTest qw(DetermineTestHarnessDirectory TestsFrom);

my $tstdir;

if ( ! GetOptions( "testdir:s" => \$tstdir ) )
{
  print "Usage: ${0} [--testdir=<directory>] [<test_harness.t> ...]\n";
  exit 1;
}

my @tests;

if ( scalar( @ARGV ) )
{
  @tests = @ARGV;
}
else
{
  my $directory = DetermineTestHarnessDirectory( $tstdir );

  if ( !defined( $directory ) )
  {
    print STDERR "$0: Unable to determine the test harness directory - ABORTING\n";
    exit 2;
  }

  @tests = TestsFrom( $directory, 1 );
}

if ( ! scalar( @tests ) )
{
  print STDERR "$0: Unable to determine the test harnesses to run - ABORTING\n";
  exit 3;
}

use Test::Harness;

#$Test::Harness::verbose=1;

runtests( @tests );
=1=
THE END

<<< SINGLE PAGE >>>

UP TO ROOT | UP TO DIR

Google
 

E-mail Facebook Google Digg del.icio.us BlinkList Fark Furl Ma.gnolia Netscape NewsVine Reddit Slashdot Spurl StumbleUpon Technorati YahooMyWeb LiveJournal Blogmarks TwitThis Live News2.ru BobrDobr.ru Memori.ru MoeMesto.ru

0.053689 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)