spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 11 | 3 | 3 | |
FAIL | 0 | 8 | 8 | |
total | 11 | 11 | 11 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | FAIL | FAIL | sh -c |
details | details | |||
1 | pass | FAIL | FAIL | empty -c input |
details | details | |||
2 | pass | FAIL | FAIL | sh +c is accepted |
details | details | |||
3 | pass | pass | pass | empty stdin |
4 | pass | FAIL | FAIL | shell obeys --help (regression for OSH) |
details | details | |||
5 | pass | FAIL | FAIL | args are passed |
details | details | |||
6 | pass | FAIL | FAIL | args that look like flags are passed after script |
details | details | |||
7 | pass | FAIL | FAIL | args that look like flags are passed after -c |
details | details | |||
8 | pass | pass | pass | exit with explicit arg |
9 | pass | pass | pass | exit with no args |
10 | pass | FAIL | FAIL | --rcfile in non-interactive shell prints warnings |
details | details |
17 passed, 0 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped
osh_.py | 0 sh -c [osh_.py stdout] Expected 'hi\n', got "(cmd_value.Argv argv:[-c 'echo hi'] arg_spids:[2 4])\n" stdout: (cmd_value.Argv argv:[-c 'echo hi'] arg_spids:[2 4])stderr: Unhandled SimpleCommand |
osh_.cc | 0 sh -c [osh_.cc stdout] Expected 'hi\n', got "(cmd_value.Argv argv:[-c 'echo hi'] arg_spids:[2 4])\n" stdout: (cmd_value.Argv argv:[-c 'echo hi'] arg_spids:[2 4])stderr: Unhandled SimpleCommand |
osh_.py | 1 empty -c input [osh_.py stdout] Expected u'', got "(cmd_value.Argv argv:[-c ''] arg_spids:[2 4])\n" stdout: (cmd_value.Argv argv:[-c ''] arg_spids:[2 4])stderr: Unhandled SimpleCommand |
osh_.cc | 1 empty -c input [osh_.cc stdout] Expected u'', got "(cmd_value.Argv argv:[-c ''] arg_spids:[2 4])\n" stdout: (cmd_value.Argv argv:[-c ''] arg_spids:[2 4])stderr: Unhandled SimpleCommand |
osh_.py | 2 sh +c is accepted [osh_.py stdout] Expected 'hi\n', got "(cmd_value.Argv argv:['+c' 'echo hi'] arg_spids:[2 5])\n" stdout: (cmd_value.Argv argv:['+c' 'echo hi'] arg_spids:[2 5])stderr: Unhandled SimpleCommand |
osh_.cc | 2 sh +c is accepted [osh_.cc stdout] Expected 'hi\n', got "(cmd_value.Argv argv:['+c' 'echo hi'] arg_spids:[2 5])\n" stdout: (cmd_value.Argv argv:['+c' 'echo hi'] arg_spids:[2 5])stderr: Unhandled SimpleCommand |
osh_.py | 4 shell obeys --help (regression for OSH) [osh_.py stdout] Expected 'yes\n', got '' stdout: stderr: if test $n -gt 0; then ^~~ [ stdin ]:2: (test) Expected unary operator, got '-gt' (2 args) |
osh_.cc | 4 shell obeys --help (regression for OSH) [osh_.cc stdout] Expected 'yes\n', got '' [osh_.cc status] Expected 0, got -4 stdout: stderr: |
osh_.py | 5 args are passed [osh_.py stdout] Expected "['a', 'b']\n", got '(cmd_value.Argv argv:[-c \'argv.py "$@"\' dummy a b] arg_spids:[2 4 8 10 12])\n' stdout: (cmd_value.Argv argv:[-c 'argv.py "$@"' dummy a b] arg_spids:[2 4 8 10 12])stderr: Unhandled SimpleCommand |
osh_.cc | 5 args are passed [osh_.cc stdout] Expected "['a', 'b']\n", got '(cmd_value.Argv argv:[-c \'argv.py "$@"\' dummy a b] arg_spids:[2 4 8 10 12])\n' stdout: (cmd_value.Argv argv:[-c 'argv.py "$@"' dummy a b] arg_spids:[2 4 8 10 12])stderr: Unhandled SimpleCommand |
osh_.py | 6 args that look like flags are passed after script [osh_.py stdout] Expected "['--help', '--help', '-h']\n", got 'argv.py "$@"\n(cmd_value.Argv argv:[chmod \'+x\' \'/sh1.sh\'] arg_spids:[14 16 19])\n(cmd_value.Argv argv:[\'/sh1.sh\' --help --help -h] arg_spids:[23 25 27 29])\n' stdout: argv.py "$@" (cmd_value.Argv argv:[chmod '+x' '/sh1.sh'] arg_spids:[14 16 19]) (cmd_value.Argv argv:['/sh1.sh' --help --help -h] arg_spids:[23 25 27 29])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 6 args that look like flags are passed after script [osh_.cc stdout] Expected "['--help', '--help', '-h']\n", got 'argv.py "$@"\n(cmd_value.Argv argv:[chmod \'+x\' \'/sh1.sh\'] arg_spids:[14 16 19])\n(cmd_value.Argv argv:[\'/sh1.sh\' --help --help -h] arg_spids:[23 25 27 29])\n' stdout: argv.py "$@" (cmd_value.Argv argv:[chmod '+x' '/sh1.sh'] arg_spids:[14 16 19]) (cmd_value.Argv argv:['/sh1.sh' --help --help -h] arg_spids:[23 25 27 29])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 7 args that look like flags are passed after -c [osh_.py stdout] Expected "['--help', '-h']\n", got '(cmd_value.Argv argv:[-c \'argv.py "$@"\' --help --help -h] arg_spids:[2 4 8 10 12])\n' stdout: (cmd_value.Argv argv:[-c 'argv.py "$@"' --help --help -h] arg_spids:[2 4 8 10 12])stderr: Unhandled SimpleCommand |
osh_.cc | 7 args that look like flags are passed after -c [osh_.cc stdout] Expected "['--help', '-h']\n", got '(cmd_value.Argv argv:[-c \'argv.py "$@"\' --help --help -h] arg_spids:[2 4 8 10 12])\n' stdout: (cmd_value.Argv argv:[-c 'argv.py "$@"' --help --help -h] arg_spids:[2 4 8 10 12])stderr: Unhandled SimpleCommand |
osh_.py | 10 --rcfile in non-interactive shell prints warnings [osh_.py stderr] Expected 'warned=1\nwarned=0\n', got 'Unhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\n' stdout: echo rc (cmd_value.Argv argv:[--rcfile rc -i] arg_spids:[12 14 16]) (cmd_value.Argv argv:[grep -q warning interactive.txt] arg_spids:[24 26 28 32]) warned=0 (cmd_value.Argv argv:[--rcfile rc] arg_spids:[44 46]) (cmd_value.Argv argv:[grep -q warning non-interactive.txt] arg_spids:[54 56 58 62]) warned=0 (cmd_value.Argv argv:[head interactive.txt non-interactive.txt] arg_spids:[72 74 74])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 10 --rcfile in non-interactive shell prints warnings [osh_.cc stderr] Expected 'warned=1\nwarned=0\n', got 'Unhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\n' stdout: echo rc (cmd_value.Argv argv:[--rcfile rc -i] arg_spids:[12 14 16]) (cmd_value.Argv argv:[grep -q warning interactive.txt] arg_spids:[24 26 28 32]) warned=0 (cmd_value.Argv argv:[--rcfile rc] arg_spids:[44 46]) (cmd_value.Argv argv:[grep -q warning non-interactive.txt] arg_spids:[54 56 58 62]) warned=0 (cmd_value.Argv argv:[head interactive.txt non-interactive.txt] arg_spids:[72 74 74])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |