spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 4 | 0 | 0 | |
FAIL | 0 | 4 | 4 | |
total | 4 | 4 | 4 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | FAIL | FAIL | --debug-file |
details | details | |||
1 | pass | FAIL | FAIL | crash dump |
details | details | |||
2 | pass | FAIL | FAIL | crash dump with source |
details | details | |||
3 | pass | FAIL | FAIL | help index |
details | details |
4 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
osh_.py | 0 --debug-file [osh_.py stdout] Expected 'yes\n', got '' [osh_.py status] Expected 0, got 2 stdout: stderr: Error running ['--debug-file', '/debug.txt', '-c', 'true']: [Errno 2] No such file or directory grep: /debug.txt: No such file or directory |
osh_.cc | 0 --debug-file [osh_.cc stdout] Expected 'yes\n', got "(cmd_value.Argv argv:[--debug-file '/debug.txt' -c true] arg_spids:[2 4 7 9])\n(cmd_value.Argv argv:[grep 'OSH started with' '/debug.txt'] arg_spids:[13 15 19])\nyes\n" stdout: (cmd_value.Argv argv:[--debug-file '/debug.txt' -c true] arg_spids:[2 4 7 9]) (cmd_value.Argv argv:[grep 'OSH started with' '/debug.txt'] arg_spids:[13 15 19]) yesstderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 1 crash dump [osh_.py stdout] Expected 'status=1\nstatus=0\n', got 'status=1\nstatus=1\n' [osh_.py stderr] Found 'Traceback (most recent' stdout: status=1 status=1stderr: Error running ['-c', '\ng() {\n local glocal="glocal"\n echo $(( 1 / 0 ))\n}\nf() {\n local flocal="flocal"\n shift\n FOO=bar g\n}\nreadonly array=(A B C)\nf "${array[@]}"\n', 'dummy', 'a', 'b', 'c']: [Errno 2] No such file or directory Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/lib/python2.7/json/tool.py", line 40, in <module> main() File "/usr/lib/python2.7/json/tool.py", line 21, in main infile = open(sys.argv[1], 'rb') IOError: [Errno 2] No such file or directory: '/*.json' |
osh_.cc | 1 crash dump [osh_.cc stdout] Expected 'status=1\nstatus=0\n', got '(cmd_value.Argv argv:[rm -f \'/*.json\'] arg_spids:[0 2 4])\n(cmd_value.Argv\n argv: [\n -c\n\'\\ng() {\\n local glocal="glocal"\\n echo $(( 1 / 0 ))\\n}\\nf() {\\n local flocal="flocal"\\n shift\\n FOO=bar g\\n}\\nreadonly array=(A B C)\\nf "${array[@]}"\\n\'\n dummy\n a\n b\n c\n ]\n arg_spids: [14 16 31 33 35 37]\n)\nstatus=0\n(cmd_value.Argv argv:[python2 -m json.tool \'/*.json\'] arg_spids:[44 46 48 50])\nstatus=0\n' stdout: (cmd_value.Argv argv:[rm -f '/*.json'] arg_spids:[0 2 4]) (cmd_value.Argv argv: [ -c '\ng() {\n local glocal="glocal"\n echo $(( 1 / 0 ))\n}\nf() {\n local flocal="flocal"\n shift\n FOO=bar g\n}\nreadonly array=(A B C)\nf "${array[@]}"\n' dummy a b c ] arg_spids: [14 16 31 33 35 37] ) status=0 (cmd_value.Argv argv:[python2 -m json.tool '/*.json'] arg_spids:[44 46 48 50]) status=0stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 2 crash dump with source [osh_.py stdout] Expected 'status=1\nOK\n', got 'status=1\n' stdout: status=1stderr: Error running ['-c', '\nset -o errexit\nsource spec/testdata/crash.sh\n']: [Errno 2] No such file or directory + set -o errexit + (lvalue.Named name:ok spids:[32]) = (value.Str s:0) + test -s '/*.json' + test 0 -ge 1 |
osh_.cc | 2 crash dump with source [osh_.cc stdout] Expected 'status=1\nOK\n', got "(cmd_value.Argv argv:[-c '\\nset -o errexit\\nsource spec/testdata/crash.sh\\n'] arg_spids:[5 7])\nstatus=0\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[-c '\nset -o errexit\nsource spec/testdata/crash.sh\n'] arg_spids:[5 7]) status=0stderr: Unhandled SimpleCommand osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed. |
osh_.py | 3 help index [osh_.py stdout] Expected 'index 0\nindex groups 0\nindex ZZZ 1\n', got '' [osh_.py status] Expected 0, 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 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 45 |
osh_.cc | 3 help index [osh_.cc stdout] Expected 'index 0\nindex groups 0\nindex ZZZ 1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |