Results for case_.test.sh

casedashbashmkshoshdescription
0pass pass pass FAIL Case statement
details
1N-I pass pass FAIL Case statement with ;;&
detailsdetails
2N-I pass pass FAIL Case statement with ;&
detailsdetails
3pass pass pass FAIL Case with empty condition
details

10 passed, 0 ok, 2 known unimplemented, 0 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

osh0 Case statement

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

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 900, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 875, in _Execute
    raise NotImplementedError
NotImplementedError
dash1 Case statement with ;;&

stdout:
stderr: 
/bin/dash: 3: Syntax error: newline unexpected (expecting ")")
osh1 Case statement with ;;&

[osh stdout] Expected b'A\nstar\nstar2\n', got b''

stdout:
stderr: 
Line 2 of '<stdin>'
    a) echo A ;;&
                ^
Expected word type KW_Esac, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15))
---
Line 0 of '<unknown>'
  <token had no position info>
NO COL
Error parsing AndOr in ParseCommandTerm
---
dash2 Case statement with ;&

stdout:
stderr: 
/bin/dash: 2: Syntax error: "&" unexpected
osh2 Case statement with ;&

[osh stdout] Expected b'A\ntwo\nthree\n', got b''

stdout:
stderr: 
Line 2 of '<stdin>'
    a) echo A ;&
               ^
ParseCommand: Expected to parse a command, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15))
---
Line 0 of '<unknown>'
  <token had no position info>
NO COL
Error parsing AndOr in ParseCommandTerm
---
Line 2 of '<stdin>'
    a) echo A ;&
               ^
Expected DSEMI or ESAC, got (TokenWord token:(token id:Op_Amp val:"&" span_id:15))
---
Line 0 of '<unknown>'
  <token had no position info>
NO COL
ParseCase: error parsing case list
---
Line 0 of '<unknown>'
  <token had no position info>
NO COL
Error parsing AndOr in ParseCommandTerm
---
osh3 Case with empty condition

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

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 900, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 875, in _Execute
    raise NotImplementedError
NotImplementedError