spec test index / oilshell.org
case | dash | bash | mksh | ash | osh | osh_ALT | osh-byterun | description |
0 | pass | pass | pass | pass | pass | pass | FAIL | getopts empty |
details | ||||||||
1 | pass | pass | pass | pass | pass | pass | FAIL | getopts sees unknown arg |
details | ||||||||
2 | pass | pass | pass | pass | pass | pass | FAIL | getopts three invocations |
details | ||||||||
3 | pass | pass | pass | pass | pass | pass | FAIL | getopts resets OPTARG |
details | ||||||||
4 | pass | pass | pass | pass | pass | pass | FAIL | Basic getopts invocation |
details | ||||||||
5 | pass | pass | pass | pass | pass | pass | FAIL | getopts with invalid flag |
details | ||||||||
6 | pass | pass | pass | pass | pass | pass | FAIL | getopts missing required argument |
details | ||||||||
7 | pass | pass | pass | pass | pass | pass | FAIL | getopts doesn't look for flags after args |
details | ||||||||
8 | pass | pass | pass | pass | pass | pass | FAIL | getopts with explicit args |
details | ||||||||
9 | pass | pass | pass | pass | pass | pass | FAIL | OPTIND |
details | ||||||||
10 | pass | pass | BUG | pass | BUG | BUG | FAIL | OPTIND after multiple getopts with same spec |
details | details | details | details | |||||
11 | BUG | pass | BUG | BUG | BUG | BUG | FAIL | OPTIND after multiple getopts with different spec |
details | details | details | details | details | details | |||
12 | pass | BUG | BUG | pass | BUG | BUG | FAIL | OPTIND narrowed down |
details | details | details | details | details | ||||
13 | pass | pass | pass | pass | pass | pass | FAIL | Getopts parses the function's arguments |
details | ||||||||
14 | pass | pass | pass | pass | pass | pass | FAIL | Local OPTIND |
details |
78 passed, 0 ok, 0 known unimplemented, 12 known bugs, 0 failed, 0 skipped
osh-byterun | 0 getopts empty [osh-byterun stdout] Expected 'status=1 opt=? OPTARG=\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 1 getopts sees unknown arg [osh-byterun stdout] Expected 'status=0 opt=? OPTARG=\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 2 getopts three invocations [osh-byterun stdout] Expected u'status=0 opt=h\nstatus=0 opt=c\nstatus=1 opt=?\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 3 getopts resets OPTARG [osh-byterun stdout] Expected u'status=0 opt=c OPTARG=foo\nstatus=0 opt=h OPTARG=\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 4 Basic getopts invocation [osh-byterun stdout] Expected 'h=1 c=foo optind=4 argv=x y z\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 5 getopts with invalid flag [osh-byterun stdout] Expected 'ERROR 3\n', got '' [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 6 getopts missing required argument [osh-byterun stdout] Expected 'ERROR 3\n', got '' [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 7 getopts doesn't look for flags after args [osh-byterun stdout] Expected 'h=0 c= optind=1 argv=x -h -c y\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 8 getopts with explicit args [osh-byterun stdout] Expected 'h=1 c=foo optind=4 argv=A B C\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 9 OPTIND [osh-byterun stdout] Expected '1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 10 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: _tmp/spec-bin/mksh: <stdin>[13]: getopts: arguments changed since last call |
osh | 10 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: |
osh_ALT | 10 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: |
osh-byterun | 10 OPTIND after multiple getopts with same spec [osh-byterun stdout] Expected u'1\n-\n-\n4\n4\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 11 OPTIND after multiple getopts with different spec stdout: . 2 - - - 5 _ 2stderr: No arg for -f option |
mksh | 11 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: _tmp/spec-bin/mksh: <stdin>[14]: getopts: arguments changed since last call |
ash | 11 OPTIND after multiple getopts with different spec stdout: . 2 - - - 5 _ 2stderr: No arg for -f option |
osh | 11 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: |
osh_ALT | 11 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: |
osh-byterun | 11 OPTIND after multiple getopts with different spec [osh-byterun stdout] Expected u'.\n2\n-\n-\n5\n5\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 12 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
mksh | 12 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
osh | 12 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
osh_ALT | 12 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
osh-byterun | 12 OPTIND narrowed down [osh-byterun stdout] Expected 'a=1 b= c= d=1 e=E\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 13 Getopts parses the function's arguments [osh-byterun stdout] Expected 'h=0 c=bar opt=? optind=3 argv=-h -c foo x y z\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 14 Local OPTIND [osh-byterun stdout] Expected 'loop 2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |