Results for case_.test.sh

statusoshosh_.pyosh_.cc
pass 877
FAIL 344
total111111
caseoshosh_.pyosh_.ccdescription
0pass pass pass Case statement
1FAIL FAIL FAIL Case statement with ;;&
detailsdetailsdetails
2FAIL FAIL FAIL Case statement with ;&
detailsdetailsdetails
3pass pass pass Case with empty condition
4pass pass pass Match a literal with a glob character
5pass pass pass Match a literal with a glob character with a dynamic pattern
6pass pass pass Quoted literal in glob pattern
7pass pass pass Multiple Patterns Match
8pass FAIL FAIL Match one unicode char
detailsdetails
9FAIL FAIL FAIL case with single byte LC_ALL=C
detailsdetailsdetails
10pass pass pass \(\) in pattern (regression)
22 passed, 0 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh1 Case statement with ;;&

[osh stdout] Expected u'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_.py1 Case statement with ;;&

[osh_.py stdout] Expected u'A\nstar\nstar2\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
    a) echo A ;;&
                ^
[ stdin ]:2: Expected word type Id.KW_Esac, got Id.Op_Amp
osh_.cc1 Case statement with ;;&

[osh_.cc stdout] Expected u'A\nstar\nstar2\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
    a) echo A ;;&
                ^
[ stdin ]:2: dynamic_fmt_dummy
osh2 Case statement with ;&

[osh stdout] Expected u'A\ntwo\nthree\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
    a) echo A ;&
               ^
[ stdin ]:2: Invalid word while parsing command
osh_.py2 Case statement with ;&

[osh_.py stdout] Expected u'A\ntwo\nthree\n', got ''
[osh_.py status] Expected 0, got 2

stdout:
stderr: 
    a) echo A ;&
               ^
[ stdin ]:2: Invalid word while parsing command
osh_.cc2 Case statement with ;&

[osh_.cc stdout] Expected u'A\ntwo\nthree\n', got ''
[osh_.cc status] Expected 0, got 2

stdout:
stderr: 
    a) echo A ;&
               ^
[ stdin ]:2: Invalid word while parsing command
osh_.py8 Match one unicode char

[osh_.py stdout] Expected 'yes\nyes\nno\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 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1326, in _EvalWordPart
    self._EvalDoubleQuoted(part.parts, part_vals)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 821, in _EvalDoubleQuoted
    self._EvalWordPart(p, part_vals, quoted=True)
  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_.cc8 Match one unicode char

[osh_.cc stdout] Expected 'yes\nyes\nno\n', got 'yes\nno\nno\n'

stdout:
yes
no
no
stderr:
osh9 case with single byte LC_ALL=C

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

stdout:
a
stderr:
osh_.py9 case with single byte LC_ALL=C

[osh_.py stdout] Expected 'b\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 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  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_.cc9 case with single byte LC_ALL=C

[osh_.cc stdout] Expected 'b\n', got 'a\n'

stdout:
a
stderr: