spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 8 | 8 | |
FAIL | 4 | 4 | |
total | 12 | 12 | |
case | osh | osh-cpp | description |
0 | pass | pass | Case statement |
1 | FAIL | FAIL | Case statement with ;;& |
details | details | ||
2 | FAIL | FAIL | Case statement with ;& |
details | details | ||
3 | pass | pass | Case with empty condition |
4 | pass | pass | Match a literal with a glob character |
5 | pass | pass | Match a literal with a glob character with a dynamic pattern |
6 | pass | pass | Quoted literal in glob pattern |
7 | pass | pass | Multiple Patterns Match |
8 | pass | pass | Match one unicode char |
9 | FAIL | FAIL | case with single byte LC_ALL=C |
details | details | ||
10 | pass | pass | \(\) in pattern (regression) |
11 | FAIL | FAIL | case \n bug regression |
details | details |
16 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 1 Case statement with ;;& [osh stdout] Expected 'A\nstar\nstar2\n', got '' [osh status] Expected 0, got 2 stdout: stderr: a) echo A ;;& ^ [ stdin ]:2: Expected word type Id.KW_Esac, got Id.Op_Amp |
osh-cpp | 1 Case statement with ;;& [osh-cpp stdout] Expected 'A\nstar\nstar2\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: a) echo A ;;& ^ [ stdin ]:2: Expected word type Id.KW_Esac, got Id.Op_Amp |
osh | 2 Case statement with ;& [osh stdout] Expected 'A\ntwo\nthree\n', got '' [osh status] Expected 0, got 2 stdout: stderr: a) echo A ;& ^ [ stdin ]:2: Invalid word while parsing command |
osh-cpp | 2 Case statement with ;& [osh-cpp stdout] Expected 'A\ntwo\nthree\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: a) echo A ;& ^ [ stdin ]:2: Invalid word while parsing command |
osh | 9 case with single byte LC_ALL=C [osh stdout] Expected 'b\n', got 'a\n' stdout: astderr: |
osh-cpp | 9 case with single byte LC_ALL=C [osh-cpp stdout] Expected 'b\n', got 'a\n' stdout: astderr: |
osh | 11 case \n bug regression [osh status] Expected 2, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 224, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 199, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oils_for_unix.py", line 146, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/andy/git/oilshell/oil/core/shell.py", line 910, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 348, 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 1790, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1616, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1503, in _Dispatch to_match = self._EvalCaseArg(node.to_match, node.case_kw) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 671, in _EvalCaseArg return self.word_ev.EvalWordToString(arg.w).s File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1813, in EvalWordToString assert UP_w.tag() == word_e.Compound, UP_w AssertionError: (Token id: Id.Op_Newline col: 4 length: 1 span_id: 1 line: (SourceLine line_num:1 content:'case\n' src:(source.Stdin comment:'')) tval: _ ) |
osh-cpp | 11 case \n bug regression [osh-cpp status] Expected 2, got -6 stdout: stderr: osh: _gen/bin/oils_for_unix.mycpp.cc:33229: void word_eval::AbstractWordEvaluator::_EvalWordPart(syntax_asdl::word_part_t*, List<runtime_asdl::part_value_t*>*, int): Assertion `0' failed. timeout: the monitored command dumped core |