summaryrefslogtreecommitdiffstats
path: root/lib/tests/test_all.t
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2008-11-28 08:22:39 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2008-11-28 08:22:39 (GMT)
commit538b97cea63d68efbd9c9c67d9c41278cfd1ebad (patch)
tree84e707f97fb82f1920fb7568241e8b5d8f71c0af /lib/tests/test_all.t
parentd40abb2504b99e1318840ad1a5d9f4a340c465b5 (diff)
downloadmonitoring-plugins-538b97cea63d68efbd9c9c67d9c41278cfd1ebad.tar.gz
Revert inclusion of libtap into nagiosplugins
(except for the NEWS file) This reverts the following commits (latest first): f3e0909, 9f16b54, be8df51, f31cd40, 5270c7d, a25083f, f1bfe40, c503d85 and 6c476db
Diffstat (limited to 'lib/tests/test_all.t')
-rwxr-xr-xlib/tests/test_all.t38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/tests/test_all.t b/lib/tests/test_all.t
deleted file mode 100755
index 1fae81a..0000000
--- a/lib/tests/test_all.t
+++ /dev/null
@@ -1,38 +0,0 @@
1#!/usr/bin/perl
2# Creates $file.t for each @ARGV
3# Then calls runtests for all these files
4
5use strict;
6use Test::Harness;
7use Getopt::Std;
8
9my $opts = {};
10getopts("v", $opts) or die "Getopt failed";
11
12$Test::Harness::verbose = $opts->{v};
13$Test::Harness::switches="";
14
15my $special_errors = {
16 test_ini => "please enable parse-ini to test",
17 test_opts => "please enable parse-ini to test",
18};
19my $default_error = "could not compile";
20
21my @tests;
22foreach my $file (@ARGV) {
23 my $file_t = "$file.t";
24 my $error = $special_errors->{ $file } || $default_error;
25 open F, ">", $file_t or die "Cannot open $file_t for writing";
26 print F <<EOF;
27use Test::More;
28if (! -e "$file") {
29 plan skip_all => "./$file not compiled - $error";
30}
31exec "./$file";
32EOF
33 close F;
34 push @tests, $file_t;
35}
36chmod 0750, @tests;
37runtests @tests;
38unlink @tests;