Results for builtin-getopts.test.sh

statusoshosh_.pyosh_.cc
pass 191919
BUG 333
total222222
caseoshosh_.pyosh_.ccdescription
0pass pass pass getopts empty
1pass pass pass getopts sees unknown arg
2pass pass pass getopts three invocations
3pass pass pass getopts resets OPTARG
4pass pass pass Basic getopts invocation
5pass pass pass getopts with invalid variable name
6pass pass pass getopts with invalid flag
7pass pass pass getopts with with -
8pass pass pass getopts missing required argument
9pass pass pass getopts doesn't look for flags after args
10pass pass pass getopts with explicit args
11pass pass pass OPTIND
12BUG BUG BUG OPTIND after multiple getopts with same spec
detailsdetailsdetails
13BUG BUG BUG OPTIND after multiple getopts with different spec
detailsdetailsdetails
14BUG BUG BUG OPTIND narrowed down
detailsdetailsdetails
15pass pass pass Getopts parses the function's arguments
16pass pass pass Local OPTIND
17pass pass pass two flags: -ab
18pass pass pass flag and arg: -c10
19pass pass pass More Smooshing 1
20pass pass pass More Smooshing 2
21pass pass pass OPTIND should be >= 1 (regression)
57 passed, 0 OK, 0 not implemented, 9 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_.py12 OPTIND after multiple getopts with same spec

stdout:
1
-
-
4
4
stderr:
osh_.cc12 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_.py13 OPTIND after multiple getopts with different spec

stdout:
.
2
-
-
5
5
stderr:
osh_.cc13 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_.py14 OPTIND narrowed down

stdout:
a=1 b= c= d=1 e=E
stderr:
osh_.cc14 OPTIND narrowed down

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