From 0e41613e9f547ab97365329572555936e84f77b2 Mon Sep 17 00:00:00 2001 From: Gavin Carr Date: Thu, 8 Feb 2007 05:18:06 +0000 Subject: 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 --- t/npg03/input/00_basic | 1 + t/npg03/input/01_override1 | 1 + t/npg03/input/02_override2 | 1 + t/npg03/input/05_singlechar1 | 1 + t/npg03/input/06_singlechar2 | 1 + t/npg03/input/07_singlechar3 | 1 + t/npg03/input/09_funnystuff | 1 + t/npg03/input/12_nosection_implicit | 1 + t/npg03/input/13_nosection_explicit_dies | 1 + t/npg03/input/14_badsection_dies | 1 + 10 files changed, 10 insertions(+) create mode 100644 t/npg03/input/00_basic create mode 100644 t/npg03/input/01_override1 create mode 100644 t/npg03/input/02_override2 create mode 100644 t/npg03/input/05_singlechar1 create mode 100644 t/npg03/input/06_singlechar2 create mode 100644 t/npg03/input/07_singlechar3 create mode 100644 t/npg03/input/09_funnystuff create mode 100644 t/npg03/input/12_nosection_implicit create mode 100644 t/npg03/input/13_nosection_explicit_dies create mode 100644 t/npg03/input/14_badsection_dies (limited to 't/npg03/input') 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 -- cgit v1.2.3-74-g34f1