| 1 | #!/usr/bin/env perl -w -I .. | ||||||||||
| 2 | # | ||||||||||
| 3 | # ... Tests via check_template-XML.pl | ||||||||||
| 4 | # | ||||||||||
| 5 | # $Id: check_template-MXL.t, v 1.0 2006/02/01 Alex Peeters Exp $ | ||||||||||
| 6 | # | ||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use Test; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | ▶ | use ASNMTAP::Asnmtap::Plugins::NPTest; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use vars qw($tests); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 1 | ▶ | BEGIN {$tests = 5; plan tests => $tests} | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 1 | my $t; | |||||||||
| 16 | 1 | my $prefix = '../plugins/templates'; | |||||||||
| 17 | 1 | my $plugin = 'check_template-XML.pl'; | |||||||||
| 18 | |||||||||||
| 19 | 1 | ▶ | if ( -x "$prefix/$plugin" ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 1 | $t += checkCmd( "$prefix/$plugin -V", 3, "/$plugin/"); | |||||||||
| 21 | 1 | $t += checkCmd( "$prefix/$plugin -h", 3); | |||||||||
| 22 | 1 | $t += checkCmd( "$prefix/$plugin", 3, "/ERROR: The XML file 'xml\/Monitoring-1.0.xml' doesn't exist/"); | |||||||||
| 23 | } else { | ||||||||||
| 24 | 0 | $t += skipMissingCmd( "$prefix/$plugin", $tests ); | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | ▶ | exit(0) if defined($Test::Harness::VERSION); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | 1 | exit($tests - $t); | |||||||||