spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 8 | 7 | 0 | |
FAIL | 0 | 1 | 8 | |
total | 8 | 8 | 8 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | FAIL | Evaluation of constant parts |
details | ||||
1 | pass | FAIL | FAIL | Evaluation of each part |
details | details | |||
2 | pass | pass | FAIL | Word splitting |
details | ||||
3 | pass | pass | FAIL | Word joining |
details | ||||
4 | pass | pass | FAIL | Word elision |
details | ||||
5 | pass | pass | FAIL | Default values -- more cases |
details | ||||
6 | pass | pass | FAIL | Globbing after splitting |
details | ||||
7 | pass | pass | FAIL | Globbing escaping |
details |
15 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped
osh_.cc | 0 Evaluation of constant parts [osh_.cc stdout] Expected "['bare', 'sq']\n", got '(cmd_value.Argv argv:[argv.py bare sq] arg_spids:[0 2 4])\n' stdout: (cmd_value.Argv argv:[argv.py bare sq] arg_spids:[0 2 4])stderr: Unhandled SimpleCommand |
osh_.py | 1 Evaluation of each part [osh_.py stdout] Expected "['bare', 'sq', '/home/bob', 's', '-s-', 'a1', 'a2', '3', 'c', 'c']\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 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 1 Evaluation of each part [osh_.cc stdout] Expected "['bare', 'sq', '/home/bob', 's', '-s-', 'a1', 'a2', '3', 'c', 'c']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/core_passwd.h:16: Str *passwd::GetHomeDir(syntax_asdl::Token *): Assertion `0' failed. |
osh_.cc | 2 Word splitting [osh_.cc stdout] Expected "['1', '23', '4', '5 6']\n", got "(cmd_value.Argv argv:[argv.py 1 23 4 '5 6'] arg_spids:[15 17 17 17 20])\n" stdout: (cmd_value.Argv argv:[argv.py 1 23 4 '5 6'] arg_spids:[15 17 17 17 20])stderr: Unhandled SimpleCommand |
osh_.cc | 3 Word joining [osh_.cc stdout] Expected "['1', '2a1', 'a2_x', 'y', 'z']\n", got '(cmd_value.Argv argv:[argv.py 1 2a1 a2_] arg_spids:[22 24 24 24])\n' stdout: (cmd_value.Argv argv:[argv.py 1 2a1 a2_] arg_spids:[22 24 24 24])stderr: set 5 Unhandled SimpleCommand |
osh_.cc | 4 Word elision [osh_.cc stdout] Expected "['-', '']\n", got "(cmd_value.Argv argv:[argv.py - ''] arg_spids:[4 8 10])\n" stdout: (cmd_value.Argv argv:[argv.py - ''] arg_spids:[4 8 10])stderr: Unhandled SimpleCommand |
osh_.cc | 5 Default values -- more cases [osh_.cc stdout] Expected '[\'hi\', \'a b\', \'c d\', \'e f\', "\'g h\'"]\n', got "(cmd_value.Argv argv:[argv.py hi 'a b' 'c d' 'e f' '\\'g h\\''] arg_spids:[0 2 8 16 24 34])\n" stdout: (cmd_value.Argv argv:[argv.py hi 'a b' 'c d' 'e f' '\'g h\''] arg_spids:[0 2 8 16 24 34])stderr: Unhandled SimpleCommand |
osh_.cc | 6 Globbing after splitting [osh_.cc stdout] Expected "['_tmp/foo.hh', '_tmp/bar.gg', '_tmp/foo.gg']\n", got "(cmd_value.Argv argv:[touch '_tmp/foo.gg' '_tmp/bar.gg' '_tmp/foo.hh'] arg_spids:[0 2 4 6])\n(cmd_value.Argv argv:[argv.py '_tmp/foo.hh' '_tmp/bar.gg' '_tmp/foo.gg'] arg_spids:[13 15 15 15])\n" stdout: (cmd_value.Argv argv:[touch '_tmp/foo.gg' '_tmp/bar.gg' '_tmp/foo.hh'] arg_spids:[0 2 4 6]) (cmd_value.Argv argv:[argv.py '_tmp/foo.hh' '_tmp/bar.gg' '_tmp/foo.gg'] arg_spids:[13 15 15 15])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.cc | 7 Globbing escaping [osh_.cc stdout] Expected "['_tmp/[bc]ar.mm', '-', '_tmp/bar.mm', '_tmp/car.mm']\n", got "(cmd_value.Argv argv:[touch '_tmp/[bc]ar.mm'] arg_spids:[0 2])\n(cmd_value.Argv argv:[touch '_tmp/bar.mm' '_tmp/car.mm'] arg_spids:[9 11 13])\n(cmd_value.Argv\n argv: [argv.py '_tmp/[bc]ar.mm' - '_tmp/bar.mm' '_tmp/car.mm']\n arg_spids: [15 17 23 25 25]\n)\n" stdout: (cmd_value.Argv argv:[touch '_tmp/[bc]ar.mm'] arg_spids:[0 2]) (cmd_value.Argv argv:[touch '_tmp/bar.mm' '_tmp/car.mm'] arg_spids:[9 11 13]) (cmd_value.Argv argv: [argv.py '_tmp/[bc]ar.mm' - '_tmp/bar.mm' '_tmp/car.mm'] arg_spids: [15 17 23 25 25] )stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |