diff options
author | Gavin Carr <gonzai@users.sourceforge.net> | 2007-02-08 05:18:06 +0000 |
---|---|---|
committer | Gavin Carr <gonzai@users.sourceforge.net> | 2007-02-08 05:18:06 +0000 |
commit | 0e41613e9f547ab97365329572555936e84f77b2 (patch) | |
tree | 4d657ad1a7bb96ba4f4ff40037198edc58449aed /t/npg03/input | |
parent | d56d5a0d2d4b29ac2a296bc39a7b80862a7f7e8f (diff) | |
download | monitoring-plugin-perl-0e41613e9f547ab97365329572555936e84f77b2.tar.gz |
Add initial --default-opts implementation to Nagios::Plugin::Getopt (II).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1617 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 't/npg03/input')
-rw-r--r-- | t/npg03/input/00_basic | 1 | ||||
-rw-r--r-- | t/npg03/input/01_override1 | 1 | ||||
-rw-r--r-- | t/npg03/input/02_override2 | 1 | ||||
-rw-r--r-- | t/npg03/input/05_singlechar1 | 1 | ||||
-rw-r--r-- | t/npg03/input/06_singlechar2 | 1 | ||||
-rw-r--r-- | t/npg03/input/07_singlechar3 | 1 | ||||
-rw-r--r-- | t/npg03/input/09_funnystuff | 1 | ||||
-rw-r--r-- | t/npg03/input/12_nosection_implicit | 1 | ||||
-rw-r--r-- | t/npg03/input/13_nosection_explicit_dies | 1 | ||||
-rw-r--r-- | t/npg03/input/14_badsection_dies | 1 |
10 files changed, 10 insertions, 0 deletions
diff --git a/t/npg03/input/00_basic b/t/npg03/input/00_basic new file mode 100644 index 0000000..4c16788 --- /dev/null +++ b/t/npg03/input/00_basic | |||
@@ -0,0 +1 @@ | |||
check_mysql -S --default-opts= --default-opts=more_options -H localhost | |||
diff --git a/t/npg03/input/01_override1 b/t/npg03/input/01_override1 new file mode 100644 index 0000000..9e051e9 --- /dev/null +++ b/t/npg03/input/01_override1 | |||
@@ -0,0 +1 @@ | |||
check_mysql --username=admin --default-opts=more_options --warning=5 | |||
diff --git a/t/npg03/input/02_override2 b/t/npg03/input/02_override2 new file mode 100644 index 0000000..ceabe55 --- /dev/null +++ b/t/npg03/input/02_override2 | |||
@@ -0,0 +1 @@ | |||
check_mysql --default-opts= -u admin | |||
diff --git a/t/npg03/input/05_singlechar1 b/t/npg03/input/05_singlechar1 new file mode 100644 index 0000000..1edb8bf --- /dev/null +++ b/t/npg03/input/05_singlechar1 | |||
@@ -0,0 +1 @@ | |||
check_disk --default-opts= -p /home | |||
diff --git a/t/npg03/input/06_singlechar2 b/t/npg03/input/06_singlechar2 new file mode 100644 index 0000000..24965c7 --- /dev/null +++ b/t/npg03/input/06_singlechar2 | |||
@@ -0,0 +1 @@ | |||
check_disk --default-opts=check_2_disks | |||
diff --git a/t/npg03/input/07_singlechar3 b/t/npg03/input/07_singlechar3 new file mode 100644 index 0000000..0abc70f --- /dev/null +++ b/t/npg03/input/07_singlechar3 | |||
@@ -0,0 +1 @@ | |||
check_disk --default-opts= -p /home -p /users | |||
diff --git a/t/npg03/input/09_funnystuff b/t/npg03/input/09_funnystuff new file mode 100644 index 0000000..c2d6160 --- /dev/null +++ b/t/npg03/input/09_funnystuff | |||
@@ -0,0 +1 @@ | |||
check_disk --default-opts=funny_stuff | |||
diff --git a/t/npg03/input/12_nosection_implicit b/t/npg03/input/12_nosection_implicit new file mode 100644 index 0000000..7bb6136 --- /dev/null +++ b/t/npg03/input/12_nosection_implicit | |||
@@ -0,0 +1 @@ | |||
check_no_section -H localhost | |||
diff --git a/t/npg03/input/13_nosection_explicit_dies b/t/npg03/input/13_nosection_explicit_dies new file mode 100644 index 0000000..90aab51 --- /dev/null +++ b/t/npg03/input/13_nosection_explicit_dies | |||
@@ -0,0 +1 @@ | |||
check_no_section --default-opts= -H localhost | |||
diff --git a/t/npg03/input/14_badsection_dies b/t/npg03/input/14_badsection_dies new file mode 100644 index 0000000..70815a9 --- /dev/null +++ b/t/npg03/input/14_badsection_dies | |||
@@ -0,0 +1 @@ | |||
check_no_section --default-opts=bad_section | |||