Lines Matching refs:test_getopt
7 function test_getopt() { function
12 test_getopt "a b c" " -- b c"
13 test_getopt "a -a b c" " -a -- b c"
14 test_getopt "a -- -a b c" " -- -a b c"
17 test_getopt "-o a -- " " --"
18 test_getopt "-o a -- -a b c" " -a -- 'b' 'c'"
19 test_getopt "-o a: -- -a b c" " -a 'b' -- 'c'"
22 test_getopt "-o a -l long -- -a --long a" " -a --long -- 'a'"
23 test_getopt "-o a -l one -l two -- -a --one --two" " -a --one --two --"
24 test_getopt "-o a -l one,two -- -a --one --two" " -a --one --two --"
26 test_getopt "-o a -l one: -- -a --one arg" " -a --one 'arg' --"
28 test_getopt "-o a -l one:: -- -a --one" " -a --one '' --"
29 test_getopt "-o a -l one:: -- -a --one arg" " -a --one '' -- 'arg'"
30 test_getopt "-o a -l one:: -- -a --one=arg" " -a --one 'arg' --"
33 test_getopt "-o a -a -l long -- -long --long a" " --long --long -- 'a'"
36 test_getopt "-u -o a: -- -a b c" " -a b -- c"
39 test_getopt "-o a -- \"it\'s\"" " -- 'it\'\''s'"
40 test_getopt "-o a -u -- \"it\'s\"" " -- it\'s"