Results for case_.test.sh

statusoshosh-cpp
pass 88
FAIL 44
total1212
caseoshosh-cppdescription
0pass pass Case statement
1FAIL FAIL Case statement with ;;&
detailsdetails
2FAIL FAIL Case statement with ;&
detailsdetails
3pass pass Case with empty condition
4pass pass Match a literal with a glob character
5pass pass Match a literal with a glob character with a dynamic pattern
6pass pass Quoted literal in glob pattern
7pass pass Multiple Patterns Match
8pass pass Match one unicode char
9FAIL FAIL case with single byte LC_ALL=C
detailsdetails
10pass pass \(\) in pattern (regression)
11FAIL FAIL case \n bug regression
detailsdetails
16 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh1 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-cpp1 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
osh2 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-cpp2 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
osh9 case with single byte LC_ALL=C

[osh stdout] Expected 'b\n', got 'a\n'

stdout:
a
stderr:
osh-cpp9 case with single byte LC_ALL=C

[osh-cpp stdout] Expected 'b\n', got 'a\n'

stdout:
a
stderr:
osh11 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-cpp11 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