spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 19 | 19 | |
BUG | 3 | 3 | |
total | 22 | 22 | |
case | osh | osh-cpp | description |
0 | pass | pass | getopts empty |
1 | pass | pass | getopts sees unknown arg |
2 | pass | pass | getopts three invocations |
3 | pass | pass | getopts resets OPTARG |
4 | pass | pass | Basic getopts invocation |
5 | pass | pass | getopts with invalid variable name |
6 | pass | pass | getopts with invalid flag |
7 | pass | pass | getopts with with - |
8 | pass | pass | getopts missing required argument |
9 | pass | pass | getopts doesn't look for flags after args |
10 | pass | pass | getopts with explicit args |
11 | pass | pass | OPTIND |
12 | BUG | BUG | OPTIND after multiple getopts with same spec |
details | details | ||
13 | BUG | BUG | OPTIND after multiple getopts with different spec |
details | details | ||
14 | BUG | BUG | OPTIND narrowed down |
details | details | ||
15 | pass | pass | Getopts parses the function's arguments |
16 | pass | pass | Local OPTIND |
17 | pass | pass | two flags: -ab |
18 | pass | pass | flag and arg: -c10 |
19 | pass | pass | More Smooshing 1 |
20 | pass | pass | More Smooshing 2 |
21 | pass | pass | OPTIND should be >= 1 (regression) |
38 passed, 0 OK, 0 not implemented, 6 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh | 12 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: |
osh-cpp | 12 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: |
osh | 13 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: |
osh-cpp | 13 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: |
osh | 14 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
osh-cpp | 14 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |