Results for builtin-getopts.test.sh

statusoshosh-cpp
pass 2121
BUG 33
total2424
caseoshosh-cppdescription
0pass pass getopts empty
1pass pass getopts sees unknown arg
2pass pass getopts three invocations
3pass pass getopts resets OPTARG
4pass pass Basic getopts invocation
5pass pass getopts with invalid variable name
6pass pass getopts with invalid flag
7pass pass getopts with with -
8pass pass getopts missing required argument
9pass pass getopts doesn't look for flags after args
10pass pass getopts with explicit args
11pass pass OPTIND
12BUG BUG OPTIND after multiple getopts with same spec
detailsdetails
13BUG BUG OPTIND after multiple getopts with different spec
detailsdetails
14BUG BUG OPTIND narrowed down
detailsdetails
15pass pass Getopts parses the function's arguments
16pass pass Local OPTIND
17pass pass two flags: -ab
18pass pass flag and arg: -c10
19pass pass More Smooshing 1
20pass pass More Smooshing 2
21pass pass OPTIND should be >= 1 (regression)
22pass pass getopts bug #1523
23pass pass More regression for #1523
42 passed, 0 OK, 0 not implemented, 6 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh12 OPTIND after multiple getopts with same spec

stdout:
1
-
-
4
4
stderr:
osh-cpp12 OPTIND after multiple getopts with same spec

stdout:
1
-
-
4
4
stderr:
osh13 OPTIND after multiple getopts with different spec

stdout:
.
2
-
-
5
5
stderr:
osh-cpp13 OPTIND after multiple getopts with different spec

stdout:
.
2
-
-
5
5
stderr:
osh14 OPTIND narrowed down

stdout:
a=1 b= c= d=1 e=E
stderr:
osh-cpp14 OPTIND narrowed down

stdout:
a=1 b= c= d=1 e=E
stderr: