spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 6 | 0 | 0 | |
FAIL | 4 | 10 | 10 | |
total | 10 | 10 | 10 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | FAIL | FAIL | ${FUNCNAME[@]} array |
details | details | |||
1 | FAIL | FAIL | FAIL | FUNCNAME with source (scalar or array) |
details | details | details | ||
2 | FAIL | FAIL | FAIL | BASH_SOURCE and BASH_LINENO scalar or array (e.g. for virtualenv) |
details | details | details | ||
3 | pass | FAIL | FAIL | ${FUNCNAME} with prefix/suffix operators |
details | details | |||
4 | pass | FAIL | FAIL | operators on FUNCNAME not allowed by default |
details | details | |||
5 | pass | FAIL | FAIL | ${FUNCNAME} and "set -u" (OSH regression) |
details | details | |||
6 | pass | FAIL | FAIL | $((BASH_LINENO)) (scalar form in arith) |
details | details | |||
7 | FAIL | FAIL | FAIL | ${BASH_SOURCE[@]} with source and function name |
details | details | details | ||
8 | FAIL | FAIL | FAIL | ${BASH_SOURCE[@]} with line numbers |
details | details | details | ||
9 | pass | FAIL | FAIL | ${BASH_LINENO[@]} is a stack of line numbers for function calls |
details | details |
6 passed, 0 OK, 0 not implemented, 0 BUG, 24 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh_.py | 0 ${FUNCNAME[@]} array [osh_.py stdout] Expected "['f']\n['g', 'f']\n['f']\n", got '(cmd_value.Argv argv:[f] arg_spids:[55])\n' stdout: (cmd_value.Argv argv:[f] arg_spids:[55])stderr: Unhandled SimpleCommand |
osh_.cc | 0 ${FUNCNAME[@]} array [osh_.cc stdout] Expected "['f']\n['g', 'f']\n['f']\n", got '(cmd_value.Argv argv:[f] arg_spids:[55])\n' stdout: (cmd_value.Argv argv:[f] arg_spids:[55])stderr: Unhandled SimpleCommand |
osh | 1 FUNCNAME with source (scalar or array) [osh stdout] Expected "[' @', 'source', 'f', 'g']\n[' 0', 'source']\n['${}', 'source']\n[' $', 'source']\n-----\n[' @', 'source']\n[' 0', 'source']\n['${}', 'source']\n[' $', 'source']\n-----\n[]\n", got '-----\n-----\n[]\n' stdout: ----- ----- []stderr: . spec/testdata/echo-funcname.sh ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ stdin ]:2: source 'spec/testdata/echo-funcname.sh' failed: No such file or directory . spec/testdata/echo-funcname.sh ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ stdin ]:9: source 'spec/testdata/echo-funcname.sh' failed: No such file or directory |
osh_.py | 1 FUNCNAME with source (scalar or array) [osh_.py stdout] Expected "[' @', 'source', 'f', 'g']\n[' 0', 'source']\n['${}', 'source']\n[' $', 'source']\n-----\n[' @', 'source']\n[' 0', 'source']\n['${}', 'source']\n[' $', 'source']\n-----\n[]\n", got '(cmd_value.Argv argv:[g] arg_spids:[24])\n-----\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: (cmd_value.Argv argv:[g] arg_spids:[24]) -----stderr: Unhandled SimpleCommand 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 317, 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: 2 |
osh_.cc | 1 FUNCNAME with source (scalar or array) [osh_.cc stdout] Expected "[' @', 'source', 'f', 'g']\n[' 0', 'source']\n['${}', 'source']\n[' $', 'source']\n-----\n[' @', 'source']\n[' 0', 'source']\n['${}', 'source']\n[' $', 'source']\n-----\n[]\n", got '(cmd_value.Argv argv:[g] arg_spids:[24])\n-----\n' [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[g] arg_spids:[24]) -----stderr: Unhandled SimpleCommand osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh | 2 BASH_SOURCE and BASH_LINENO scalar or array (e.g. for virtualenv) [osh stdout] Expected "['']\n['']\n['']\n['']\n['']\n['']\n__\n['spec/testdata/bash-source-string.sh']\n['spec/testdata/bash-source-string.sh']\n['8']\n['8']\n____\n['spec/testdata/bash-source-string2.sh']\n['spec/testdata/bash-source-string2.sh']\n['11']\n['11']\n", got "['']\n['']\n['']\n['']\n['']\n['']\n__\n" [osh status] Expected 0, got 1 stdout: [''] [''] [''] [''] [''] [''] __stderr: source spec/testdata/bash-source-string.sh ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ stdin ]:8: source 'spec/testdata/bash-source-string.sh' failed: No such file or directory |
osh_.py | 2 BASH_SOURCE and BASH_LINENO scalar or array (e.g. for virtualenv) [osh_.py stdout] Expected "['']\n['']\n['']\n['']\n['']\n['']\n__\n['spec/testdata/bash-source-string.sh']\n['spec/testdata/bash-source-string.sh']\n['8']\n['8']\n____\n['spec/testdata/bash-source-string2.sh']\n['spec/testdata/bash-source-string2.sh']\n['11']\n['11']\n", got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[0 2])\n(cmd_value.Argv argv:[argv.py ''] arg_spids:[9 11])\n(cmd_value.Argv argv:[argv.py ''] arg_spids:[20 22])\n(cmd_value.Argv argv:[argv.py ''] arg_spids:[29 31])\n(cmd_value.Argv argv:[argv.py ''] arg_spids:[40 42])\n(cmd_value.Argv argv:[argv.py ''] arg_spids:[49 51])\n__\n" [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: (cmd_value.Argv argv:[argv.py ''] arg_spids:[0 2]) (cmd_value.Argv argv:[argv.py ''] arg_spids:[9 11]) (cmd_value.Argv argv:[argv.py ''] arg_spids:[20 22]) (cmd_value.Argv argv:[argv.py ''] arg_spids:[29 31]) (cmd_value.Argv argv:[argv.py ''] arg_spids:[40 42]) (cmd_value.Argv argv:[argv.py ''] arg_spids:[49 51]) __stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand 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: 28 |
osh_.cc | 2 BASH_SOURCE and BASH_LINENO scalar or array (e.g. for virtualenv) [osh_.cc stdout] Expected "['']\n['']\n['']\n['']\n['']\n['']\n__\n['spec/testdata/bash-source-string.sh']\n['spec/testdata/bash-source-string.sh']\n['8']\n['8']\n____\n['spec/testdata/bash-source-string2.sh']\n['spec/testdata/bash-source-string2.sh']\n['11']\n['11']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) |
osh_.py | 3 ${FUNCNAME} with prefix/suffix operators [osh_.py stdout] Expected "['5']\n['c']\n['heck']\n", got '(cmd_value.Argv argv:[check] arg_spids:[47])\n' stdout: (cmd_value.Argv argv:[check] arg_spids:[47])stderr: Unhandled SimpleCommand |
osh_.cc | 3 ${FUNCNAME} with prefix/suffix operators [osh_.cc stdout] Expected "['5']\n['c']\n['heck']\n", got '(cmd_value.Argv argv:[check] arg_spids:[47])\n' stdout: (cmd_value.Argv argv:[check] arg_spids:[47])stderr: Unhandled SimpleCommand |
osh_.py | 4 operators on FUNCNAME not allowed by default [osh_.py stdout] Expected "['check']\n", got '(cmd_value.Argv argv:[check] arg_spids:[50])\n' [osh_.py status] Expected 1, got 0 stdout: (cmd_value.Argv argv:[check] arg_spids:[50])stderr: Unhandled SimpleCommand |
osh_.cc | 4 operators on FUNCNAME not allowed by default [osh_.cc stdout] Expected "['check']\n", got '(cmd_value.Argv argv:[check] arg_spids:[50])\n' [osh_.cc status] Expected 1, got 0 stdout: (cmd_value.Argv argv:[check] arg_spids:[50])stderr: Unhandled SimpleCommand |
osh_.py | 5 ${FUNCNAME} and "set -u" (OSH regression) [osh_.py stdout] Expected u'', got "(cmd_value.Argv argv:[argv.py ''] arg_spids:[4 6])\n" [osh_.py status] Expected 1, got 0 stdout: (cmd_value.Argv argv:[argv.py ''] arg_spids:[4 6])stderr: set 2 Unhandled SimpleCommand |
osh_.cc | 5 ${FUNCNAME} and "set -u" (OSH regression) [osh_.cc status] Expected 1, got -6 stdout: stderr: set 2 terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) |
osh_.py | 6 $((BASH_LINENO)) (scalar form in arith) [osh_.py stdout] Expected '4\n', got '(cmd_value.Argv argv:[check] arg_spids:[16])\n' stdout: (cmd_value.Argv argv:[check] arg_spids:[16])stderr: Unhandled SimpleCommand |
osh_.cc | 6 $((BASH_LINENO)) (scalar form in arith) [osh_.cc stdout] Expected '4\n', got '(cmd_value.Argv argv:[check] arg_spids:[16])\n' stdout: (cmd_value.Argv argv:[check] arg_spids:[16])stderr: Unhandled SimpleCommand |
osh | 7 ${BASH_SOURCE[@]} with source and function name [osh stdout] Expected "[]\n['spec/testdata/bash-source-simple.sh']\n['spec/testdata/bash-source-simple.sh']\n", got '[]\n' [osh status] Expected 0, got 127 stdout: []stderr: source spec/testdata/bash-source-simple.sh ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ stdin ]:2: source 'spec/testdata/bash-source-simple.sh' failed: No such file or directory f ^ [ stdin ]:3: 'f' not found |
osh_.py | 7 ${BASH_SOURCE[@]} with source and function name [osh_.py stdout] Expected "[]\n['spec/testdata/bash-source-simple.sh']\n['spec/testdata/bash-source-simple.sh']\n", got '(cmd_value.Argv argv:[argv.py] arg_spids:[0])\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: (cmd_value.Argv argv:[argv.py] arg_spids:[0])stderr: Unhandled SimpleCommand 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: 28 |
osh_.cc | 7 ${BASH_SOURCE[@]} with source and function name [osh_.cc stdout] Expected "[]\n['spec/testdata/bash-source-simple.sh']\n['spec/testdata/bash-source-simple.sh']\n", got '(cmd_value.Argv argv:[argv.py] arg_spids:[0])\n' [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[argv.py] arg_spids:[0])stderr: Unhandled SimpleCommand osh_eval.dbg: mycpp/mylib.h:578: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh | 8 ${BASH_SOURCE[@]} with line numbers [osh stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got '' [osh status] Expected 0, got 1 stdout: stderr: osh: Couldn't open 'spec/testdata/bash-source.sh': No such file or directory |
osh_.py | 8 ${BASH_SOURCE[@]} with line numbers [osh_.py stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got "(cmd_value.Argv argv:['spec/testdata/bash-source.sh'] arg_spids:[2])\n" stdout: (cmd_value.Argv argv:['spec/testdata/bash-source.sh'] arg_spids:[2])stderr: Unhandled SimpleCommand |
osh_.cc | 8 ${BASH_SOURCE[@]} with line numbers [osh_.cc stdout] Expected "['begin F funcs', 'f', 'main']\n['begin F files', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['begin F lines', '21', '0']\n['G funcs', 'g', 'f', 'main']\n['G files', 'spec/testdata/bash-source-2.sh', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['G lines', '15', '21', '0']\n['end F funcs', 'f', 'main']\n['end F', 'spec/testdata/bash-source.sh', 'spec/testdata/bash-source.sh']\n['end F lines', '21', '0']\n", got "(cmd_value.Argv argv:['spec/testdata/bash-source.sh'] arg_spids:[2])\n" stdout: (cmd_value.Argv argv:['spec/testdata/bash-source.sh'] arg_spids:[2])stderr: Unhandled SimpleCommand |
osh_.py | 9 ${BASH_LINENO[@]} is a stack of line numbers for function calls [osh_.py stdout] Expected "[]\n['begin F', '10']\n['G', '6', '10']\n['end F', '10']\n", got '(cmd_value.Argv argv:[argv.py] arg_spids:[68])\n(cmd_value.Argv argv:[f] arg_spids:[77])\n' stdout: (cmd_value.Argv argv:[argv.py] arg_spids:[68]) (cmd_value.Argv argv:[f] arg_spids:[77])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 9 ${BASH_LINENO[@]} is a stack of line numbers for function calls [osh_.cc stdout] Expected "[]\n['begin F', '10']\n['G', '6', '10']\n['end F', '10']\n", got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |