summaryrefslogtreecommitdiffstats
path: root/tests/expected/misc
diff options
context:
space:
mode:
authorKarel Zak2016-04-22 13:39:31 +0200
committerKarel Zak2016-04-22 13:39:31 +0200
commitb6782d869710557b1f2252c03dda23b5fa246ac3 (patch)
treec5ef59985d3651994ae2d70424a6f9c0ab64837a /tests/expected/misc
parentmount: add note about loopdev reuse to mount.8 (diff)
downloadkernel-qcow2-util-linux-b6782d869710557b1f2252c03dda23b5fa246ac3.tar.gz
kernel-qcow2-util-linux-b6782d869710557b1f2252c03dda23b5fa246ac3.tar.xz
kernel-qcow2-util-linux-b6782d869710557b1f2252c03dda23b5fa246ac3.zip
tests: move getopt to separate directory
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/expected/misc')
-rw-r--r--tests/expected/misc/getopt9
-rw-r--r--tests/expected/misc/getopt2-alternative_option_clash2
-rw-r--r--tests/expected/misc/getopt2-alternative_option_long2
-rw-r--r--tests/expected/misc/getopt2-alternative_option_short2
-rw-r--r--tests/expected/misc/getopt2-invalid_getopt_option3
-rw-r--r--tests/expected/misc/getopt2-invocation_model_one2
-rw-r--r--tests/expected/misc/getopt2-invocation_model_three_as_one2
-rw-r--r--tests/expected/misc/getopt2-invocation_model_two_as_one2
-rw-r--r--tests/expected/misc/getopt2-invocation_without_parameters3
-rw-r--r--tests/expected/misc/getopt2-long_option_ambiguous_13
-rw-r--r--tests/expected/misc/getopt2-longopts2
-rw-r--r--tests/expected/misc/getopt2-name_option_long4
-rw-r--r--tests/expected/misc/getopt2-name_option_short4
-rw-r--r--tests/expected/misc/getopt2-quiet_option_long2
-rw-r--r--tests/expected/misc/getopt2-quiet_option_short2
-rw-r--r--tests/expected/misc/getopt2-quiet_output_option_long5
-rw-r--r--tests/expected/misc/getopt2-quiet_output_option_short5
-rw-r--r--tests/expected/misc/getopt2-same_long_short_options2
-rw-r--r--tests/expected/misc/getopt2-test_for_enhanced_getopt1
-rw-r--r--tests/expected/misc/getopt2-unknown_options4
-rw-r--r--tests/expected/misc/getopt2-unquoted_option_bash5
-rw-r--r--tests/expected/misc/getopt2-unquoted_option_tcsh5
-rw-r--r--tests/expected/misc/getopt2-weird_quoting_bash5
-rw-r--r--tests/expected/misc/getopt2-weird_quoting_tcsh2
-rw-r--r--tests/expected/misc/getopt3-compatible5
-rw-r--r--tests/expected/misc/getopt3-csh2
-rw-r--r--tests/expected/misc/getopt3-no-arguments3
-rw-r--r--tests/expected/misc/getopt3-non-option4
-rw-r--r--tests/expected/misc/getopt3-posix_correctly4
-rw-r--r--tests/expected/misc/getopt3-sh2
30 files changed, 0 insertions, 98 deletions
diff --git a/tests/expected/misc/getopt b/tests/expected/misc/getopt
deleted file mode 100644
index c2c90aeec..000000000
--- a/tests/expected/misc/getopt
+++ /dev/null
@@ -1,9 +0,0 @@
-Option a
-Option b, argument `1'
-Option c, argument `2'
-Option a
-Option b, argument `3'
-Option c, no argument
-Remaining arguments:
---> `foo'
---> `bar'
diff --git a/tests/expected/misc/getopt2-alternative_option_clash b/tests/expected/misc/getopt2-alternative_option_clash
deleted file mode 100644
index 04ae19de0..000000000
--- a/tests/expected/misc/getopt2-alternative_option_clash
+++ /dev/null
@@ -1,2 +0,0 @@
- -a --abcde --abcde -a -c --
-exit value: 0
diff --git a/tests/expected/misc/getopt2-alternative_option_long b/tests/expected/misc/getopt2-alternative_option_long
deleted file mode 100644
index 0f5fc19c0..000000000
--- a/tests/expected/misc/getopt2-alternative_option_long
+++ /dev/null
@@ -1,2 +0,0 @@
- -a --one --two 'MANDATORY' --three 'OPTIONAL' --
-exit value: 0
diff --git a/tests/expected/misc/getopt2-alternative_option_short b/tests/expected/misc/getopt2-alternative_option_short
deleted file mode 100644
index 0f5fc19c0..000000000
--- a/tests/expected/misc/getopt2-alternative_option_short
+++ /dev/null
@@ -1,2 +0,0 @@
- -a --one --two 'MANDATORY' --three 'OPTIONAL' --
-exit value: 0
diff --git a/tests/expected/misc/getopt2-invalid_getopt_option b/tests/expected/misc/getopt2-invalid_getopt_option
deleted file mode 100644
index 531cc9828..000000000
--- a/tests/expected/misc/getopt2-invalid_getopt_option
+++ /dev/null
@@ -1,3 +0,0 @@
-getopt: invalid option -- 'b'
-Try `getopt --help' for more information.
-exit value: 2
diff --git a/tests/expected/misc/getopt2-invocation_model_one b/tests/expected/misc/getopt2-invocation_model_one
deleted file mode 100644
index ca4ddca90..000000000
--- a/tests/expected/misc/getopt2-invocation_model_one
+++ /dev/null
@@ -1,2 +0,0 @@
- -b -d -e OPTIONAL1 -f -a -c -ISREQUIRED -g BECOMES THREE ARGUMENTS -- ARG0 ARG1 NOT_OPTIONAL ARG2 ARG3
-exit value: 0
diff --git a/tests/expected/misc/getopt2-invocation_model_three_as_one b/tests/expected/misc/getopt2-invocation_model_three_as_one
deleted file mode 100644
index 1d4701f5c..000000000
--- a/tests/expected/misc/getopt2-invocation_model_three_as_one
+++ /dev/null
@@ -1,2 +0,0 @@
- -b -d '' -e 'OPTIONAL1' -f '' -a -c '-ISREQUIRED' -g 'BECOMES THREE ARGUMENTS' -- 'ARG0' 'ARG1' 'NOT_OPTIONAL' 'ARG2' 'ARG3'
-exit value: 0
diff --git a/tests/expected/misc/getopt2-invocation_model_two_as_one b/tests/expected/misc/getopt2-invocation_model_two_as_one
deleted file mode 100644
index 1d4701f5c..000000000
--- a/tests/expected/misc/getopt2-invocation_model_two_as_one
+++ /dev/null
@@ -1,2 +0,0 @@
- -b -d '' -e 'OPTIONAL1' -f '' -a -c '-ISREQUIRED' -g 'BECOMES THREE ARGUMENTS' -- 'ARG0' 'ARG1' 'NOT_OPTIONAL' 'ARG2' 'ARG3'
-exit value: 0
diff --git a/tests/expected/misc/getopt2-invocation_without_parameters b/tests/expected/misc/getopt2-invocation_without_parameters
deleted file mode 100644
index 08b3ed5cf..000000000
--- a/tests/expected/misc/getopt2-invocation_without_parameters
+++ /dev/null
@@ -1,3 +0,0 @@
-getopt: missing optstring argument
-Try `getopt --help' for more information.
-exit value: 2
diff --git a/tests/expected/misc/getopt2-long_option_ambiguous_1 b/tests/expected/misc/getopt2-long_option_ambiguous_1
deleted file mode 100644
index c8cfbb3d9..000000000
--- a/tests/expected/misc/getopt2-long_option_ambiguous_1
+++ /dev/null
@@ -1,3 +0,0 @@
-getopt: option '--long' is ambiguous; possibilities: '--long1' '--long2'
- --
-exit value: 1
diff --git a/tests/expected/misc/getopt2-longopts b/tests/expected/misc/getopt2-longopts
deleted file mode 100644
index 379b5abc1..000000000
--- a/tests/expected/misc/getopt2-longopts
+++ /dev/null
@@ -1,2 +0,0 @@
- --long1 --thirdlong 'ARGUMENT' --secondlong 'ARG' --abbriviation 'ABBRARG' -a -- 'EXTRA1'
-exit value: 0
diff --git a/tests/expected/misc/getopt2-name_option_long b/tests/expected/misc/getopt2-name_option_long
deleted file mode 100644
index 60b9e6b7b..000000000
--- a/tests/expected/misc/getopt2-name_option_long
+++ /dev/null
@@ -1,4 +0,0 @@
-THIS_PROGRAM: invalid option -- 'b'
-THIS_PROGRAM: unrecognized option '--whatever'
- --long -a --
-exit value: 1
diff --git a/tests/expected/misc/getopt2-name_option_short b/tests/expected/misc/getopt2-name_option_short
deleted file mode 100644
index 60b9e6b7b..000000000
--- a/tests/expected/misc/getopt2-name_option_short
+++ /dev/null
@@ -1,4 +0,0 @@
-THIS_PROGRAM: invalid option -- 'b'
-THIS_PROGRAM: unrecognized option '--whatever'
- --long -a --
-exit value: 1
diff --git a/tests/expected/misc/getopt2-quiet_option_long b/tests/expected/misc/getopt2-quiet_option_long
deleted file mode 100644
index 3e1a9672a..000000000
--- a/tests/expected/misc/getopt2-quiet_option_long
+++ /dev/null
@@ -1,2 +0,0 @@
- --
-exit value: 1
diff --git a/tests/expected/misc/getopt2-quiet_option_short b/tests/expected/misc/getopt2-quiet_option_short
deleted file mode 100644
index 3e1a9672a..000000000
--- a/tests/expected/misc/getopt2-quiet_option_short
+++ /dev/null
@@ -1,2 +0,0 @@
- --
-exit value: 1
diff --git a/tests/expected/misc/getopt2-quiet_output_option_long b/tests/expected/misc/getopt2-quiet_output_option_long
deleted file mode 100644
index 3e05ca7df..000000000
--- a/tests/expected/misc/getopt2-quiet_output_option_long
+++ /dev/null
@@ -1,5 +0,0 @@
-getopt: invalid option -- 'c'
-getopt: unrecognized option '--unknown'
-getopt: option '--long' is ambiguous; possibilities: '--long1' '--long2'
-getopt: option requires an argument -- 'b'
-exit value: 1
diff --git a/tests/expected/misc/getopt2-quiet_output_option_short b/tests/expected/misc/getopt2-quiet_output_option_short
deleted file mode 100644
index 3e05ca7df..000000000
--- a/tests/expected/misc/getopt2-quiet_output_option_short
+++ /dev/null
@@ -1,5 +0,0 @@
-getopt: invalid option -- 'c'
-getopt: unrecognized option '--unknown'
-getopt: option '--long' is ambiguous; possibilities: '--long1' '--long2'
-getopt: option requires an argument -- 'b'
-exit value: 1
diff --git a/tests/expected/misc/getopt2-same_long_short_options b/tests/expected/misc/getopt2-same_long_short_options
deleted file mode 100644
index 919d2276b..000000000
--- a/tests/expected/misc/getopt2-same_long_short_options
+++ /dev/null
@@ -1,2 +0,0 @@
- -a --a --
-exit value: 0
diff --git a/tests/expected/misc/getopt2-test_for_enhanced_getopt b/tests/expected/misc/getopt2-test_for_enhanced_getopt
deleted file mode 100644
index 539db061d..000000000
--- a/tests/expected/misc/getopt2-test_for_enhanced_getopt
+++ /dev/null
@@ -1 +0,0 @@
-exit value: 4
diff --git a/tests/expected/misc/getopt2-unknown_options b/tests/expected/misc/getopt2-unknown_options
deleted file mode 100644
index 6edba2b77..000000000
--- a/tests/expected/misc/getopt2-unknown_options
+++ /dev/null
@@ -1,4 +0,0 @@
-getopt: invalid option -- 'b'
-getopt: unrecognized option '--whatever'
- --long -a --
-exit value: 1
diff --git a/tests/expected/misc/getopt2-unquoted_option_bash b/tests/expected/misc/getopt2-unquoted_option_bash
deleted file mode 100644
index 8da362fe8..000000000
--- a/tests/expected/misc/getopt2-unquoted_option_bash
+++ /dev/null
@@ -1,5 +0,0 @@
- -a $?!* --long1 "\' -- More
- than
-one
-line
-exit value: 0
diff --git a/tests/expected/misc/getopt2-unquoted_option_tcsh b/tests/expected/misc/getopt2-unquoted_option_tcsh
deleted file mode 100644
index 8da362fe8..000000000
--- a/tests/expected/misc/getopt2-unquoted_option_tcsh
+++ /dev/null
@@ -1,5 +0,0 @@
- -a $?!* --long1 "\' -- More
- than
-one
-line
-exit value: 0
diff --git a/tests/expected/misc/getopt2-weird_quoting_bash b/tests/expected/misc/getopt2-weird_quoting_bash
deleted file mode 100644
index db871ce13..000000000
--- a/tests/expected/misc/getopt2-weird_quoting_bash
+++ /dev/null
@@ -1,5 +0,0 @@
- -a '$?!* ' --long1 '"\'\''' -- 'More
- than
-one
-line'
-exit value: 0
diff --git a/tests/expected/misc/getopt2-weird_quoting_tcsh b/tests/expected/misc/getopt2-weird_quoting_tcsh
deleted file mode 100644
index 9e5b71da0..000000000
--- a/tests/expected/misc/getopt2-weird_quoting_tcsh
+++ /dev/null
@@ -1,2 +0,0 @@
- -a '$?'\!'*'\ '' --long1 '"\\'\''' -- 'More\n'\ 'than\none\nline'
-exit value: 0
diff --git a/tests/expected/misc/getopt3-compatible b/tests/expected/misc/getopt3-compatible
deleted file mode 100644
index 585de608a..000000000
--- a/tests/expected/misc/getopt3-compatible
+++ /dev/null
@@ -1,5 +0,0 @@
-getopt: missing optstring argument
-Try `getopt --help' for more information.
-exit value: 2
- --
-exit value: 0
diff --git a/tests/expected/misc/getopt3-csh b/tests/expected/misc/getopt3-csh
deleted file mode 100644
index 86e48f4fe..000000000
--- a/tests/expected/misc/getopt3-csh
+++ /dev/null
@@ -1,2 +0,0 @@
- -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar'
-exit value: 0
diff --git a/tests/expected/misc/getopt3-no-arguments b/tests/expected/misc/getopt3-no-arguments
deleted file mode 100644
index 08b3ed5cf..000000000
--- a/tests/expected/misc/getopt3-no-arguments
+++ /dev/null
@@ -1,3 +0,0 @@
-getopt: missing optstring argument
-Try `getopt --help' for more information.
-exit value: 2
diff --git a/tests/expected/misc/getopt3-non-option b/tests/expected/misc/getopt3-non-option
deleted file mode 100644
index 73f0b659c..000000000
--- a/tests/expected/misc/getopt3-non-option
+++ /dev/null
@@ -1,4 +0,0 @@
- -a 'x' -- 'y' '-b' 'z' 'w'
- -a 'x' -b 'z' -- 'y' 'w'
- -a 'x' 'y' -b 'z' 'w' --
-exit value: 0
diff --git a/tests/expected/misc/getopt3-posix_correctly b/tests/expected/misc/getopt3-posix_correctly
deleted file mode 100644
index 5b2bc33fc..000000000
--- a/tests/expected/misc/getopt3-posix_correctly
+++ /dev/null
@@ -1,4 +0,0 @@
- -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar' 'xyxxy' '--a-long'
-exit value: 0
- -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar' 'xyxxy' '--a-long'
-exit value: 0
diff --git a/tests/expected/misc/getopt3-sh b/tests/expected/misc/getopt3-sh
deleted file mode 100644
index 86e48f4fe..000000000
--- a/tests/expected/misc/getopt3-sh
+++ /dev/null
@@ -1,2 +0,0 @@
- -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar'
-exit value: 0