spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 8 | 1 | 1 | |
FAIL | 0 | 7 | 7 | |
total | 8 | 8 | 8 | |
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 | pass | pass | empty stdin |
3 | pass | FAIL | FAIL | args are passed |
details | details | |||
4 | pass | FAIL | FAIL | args that look like flags are passed after script |
details | details | |||
5 | pass | FAIL | FAIL | args that look like flags are passed after -c |
details | details | |||
6 | pass | FAIL | FAIL | exit with explicit arg |
details | details | |||
7 | pass | FAIL | FAIL | exit with no args |
details | details |
10 passed, 0 OK, 0 not implemented, 0 BUG, 14 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 | 3 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 | 3 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 | 4 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 | 4 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 | 5 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 | 5 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 | 6 exit with explicit arg [osh_.py status] Expected 42, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 938, in _Dispatch raise util.UserExit(arg) # handled differently than other control flow core.util.UserExit |
osh_.cc | 6 exit with explicit arg [osh_.cc status] Expected 42, got -6 stdout: stderr: terminate called after throwing an instance of 'util::UserExit*' |
osh_.py | 7 exit with no args [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 341, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 228, in main status = main_loop.Batch(cmd_ev, c_parser, arena, is_main=True) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 165, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1450, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1334, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 573, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 321, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 302, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 19 |
osh_.cc | 7 exit with no args [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |