Results for serialize.test.sh

statusoshosh_.pyosh_.cc
pass 742
ok 321
FAIL 047
total101010
caseoshosh_.pyosh_.ccdescription
0pass FAIL FAIL printf %q newline
detailsdetails
1pass pass pass printf %q spaces
2ok FAIL FAIL printf %q quotes
detailsdetailsdetails
3ok ok ok printf %q unprintable
detailsdetailsdetails
4ok ok FAIL printf %q unicode
detailsdetailsdetails
5pass pass pass printf %q invalid unicode
6pass FAIL FAIL set
detailsdetails
7pass FAIL FAIL declare
detailsdetails
8pass pass FAIL ${var@Q}
details
9pass pass FAIL xtrace
details
13 passed, 6 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py0 printf %q newline

[osh_.py stdout] Expected "$'one\\ntwo'\nroundtrip-ok\n", got "$'one\\ntwo'\n"
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
$'one\ntwo'
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_.cc0 printf %q newline

[osh_.cc stdout] Expected "$'one\\ntwo'\nroundtrip-ok\n", got "$'one\\ntwo'\n"
[osh_.cc status] Expected 0, got 1

stdout:
$'one\ntwo'
stderr:
osh2 printf %q quotes

stdout:
$'\'"'
roundtrip-ok
stderr:
osh_.py2 printf %q quotes

[osh_.py stdout] Expected '$\'\\\'"\'\nroundtrip-ok\n', got '$\'\\\'"\'\n'
[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_.cc2 printf %q quotes

[osh_.cc stdout] Expected '$\'\\\'"\'\nroundtrip-ok\n', got '$\'\\\'"\'\n'
[osh_.cc status] Expected 0, got 1

stdout:
$'\'"'
stderr:
osh3 printf %q unprintable

stdout:
$'\xff'
stderr:
osh_.py3 printf %q unprintable

stdout:
$'\xff'
stderr:
osh_.cc3 printf %q unprintable

stdout:
$'\xff'
stderr:
osh4 printf %q unicode

stdout:
'μ'
stderr:
osh_.py4 printf %q unicode

stdout:
'μ'
stderr:
osh_.cc4 printf %q unicode

[osh_.cc stdout] Expected "'\xce\xbc'\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:491: void List<int>::reverse() [T = int]: Assertion `0' failed.
osh_.py6 set

[osh_.py stdout] Expected "zz=$'one\\ntwo'\n", got ''

stdout:
stderr: 
osh_.cc6 set

[osh_.cc stdout] Expected "zz=$'one\\ntwo'\n", got ''

stdout:
stderr: 
osh_.py7 declare

[osh_.py stdout] Expected "zz=$'one\\ntwo'\ndeclare -- zz=$'one\\ntwo'\n", got "declare -- zz=$'one\\ntwo'\n"

stdout:
declare -- zz=$'one\ntwo'
stderr:
osh_.cc7 declare

[osh_.cc stdout] Expected "zz=$'one\\ntwo'\ndeclare -- zz=$'one\\ntwo'\n", got ''
[osh_.cc status] Expected 0, got -11

stdout:
stderr: 
osh_.cc8 ${var@Q}

[osh_.cc stdout] Expected "$'one\\ntwo \xce\xbc'\n$'one\\ntwo \xce\xbc'\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:491: void List<int>::reverse() [T = int]: Assertion `0' failed.
osh_.cc9 xtrace

[osh_.cc stderr] Expected "+ echo $'one\\ntwo'\n", got 'set 2\n'

stdout:
one
two
stderr:
set 2