Results for xtrace.test.sh

statusoshosh_.pyosh_.cc
pass 980
FAIL 3412
total121212
caseoshosh_.pyosh_.ccdescription
0FAIL FAIL FAIL set -o verbose prints unevaluated code
detailsdetailsdetails
1pass pass FAIL xtrace with unprintable chars
details
2pass pass FAIL xtrace with unicode chars
details
3pass pass FAIL xtrace with tabs
details
4pass pass FAIL xtrace with whitespace, quotes, and backslash
details
5pass pass FAIL xtrace with newlines
details
6pass FAIL FAIL xtrace written before command executes
detailsdetails
7FAIL FAIL FAIL PS4 is scoped
detailsdetailsdetails
8FAIL FAIL FAIL xtrace with variables in PS4
detailsdetailsdetails
9pass pass FAIL PS4 with unterminated ${
details
10pass pass FAIL PS4 with unterminated $(
details
11pass pass FAIL PS4 with runtime error
details
17 passed, 0 OK, 0 not implemented, 0 BUG, 19 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh0 set -o verbose prints unevaluated code

[osh stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n'

stdout:
foo
bar
stderr:
Warning: set -o verbose not implemented
osh_.py0 set -o verbose prints unevaluated code

[osh_.py stdout] Expected 'foo\nbar\n', got 'foo\n\n'
[osh_.py stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n'

stdout:
foo

stderr:
Warning: set -o verbose not implemented
osh_.cc0 set -o verbose prints unevaluated code

[osh_.cc stdout] Expected 'foo\nbar\n', got 'foo\n\n'
[osh_.cc stderr] Expected 'x=foo\ny=bar\necho $x\necho $(echo $y)\n', got 'Warning: set -o verbose not implemented\n'

stdout:
foo

stderr:
Warning: set -o verbose not implemented
osh_.cc1 xtrace with unprintable chars

[osh_.cc stdout] Expected 'a\x03b\x04c\x00d\n', got ''
[osh_.cc stderr] Expected "+ echo $'a\\x03b\\x04c\\x00d'\n", got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.cc2 xtrace with unicode chars

[osh_.cc stdout] Expected '[\xce\xbc] [\xce\xbc]\n', got ''
[osh_.cc stderr] Expected "+ echo '[\xce\xbc]' '[\xce\xbc]'\n", got "osh_eval.dbg: mycpp/mylib.h:491: void List<int>::reverse() [T = int]: Assertion `0' failed.\n"
[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_.cc3 xtrace with tabs

[osh_.cc stdout] Expected u'[\t]\n', got ''
[osh_.cc stderr] Expected "+ echo $'[\\t]'\n", got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.cc4 xtrace with whitespace, quotes, and backslash

[osh_.cc stdout] Expected '1 2 \' " \\\n', got ''
[osh_.cc stderr] Expected '+ echo \'1 2\' $\'\\\'\' \'"\' $\'\\\\\'\n', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.cc5 xtrace with newlines

[osh_.cc stdout] Expected '[\n]\n', got ''
[osh_.cc stderr] Expected "+ echo $'[\\n]'\n", got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.py6 xtrace written before command executes

[osh_.py stdout] Expected u'', got 'one\ntwo\n'
[osh_.py stderr] Expected '+ echo one\none\n+ echo two\ntwo\n', got '+ echo one\n+ echo two\n'

stdout:
one
two
stderr:
+ echo one
+ echo two
osh_.cc6 xtrace written before command executes

[osh_.cc stderr] Expected '+ echo one\none\n+ echo two\ntwo\n', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh7 PS4 is scoped

[osh stderr] Expected '+ echo one\n+ f\n- echo func\n+ echo two\n', got "+ echo one\n+ f\n+ 'TODO: trace string for assignment'\n- echo func\n+ echo two\n"

stdout:
one
func
two
stderr:
+ echo one
+ f
+ 'TODO: trace string for assignment'
- echo func
+ echo two
osh_.py7 PS4 is scoped

[osh_.py stderr] Expected '+ echo one\n+ f\n- echo func\n+ echo two\n', got "+ echo one\n+ f\n+ 'TODO: trace string for assignment'\n- echo func\n+ echo two\n"

stdout:
one
func
two
stderr:
+ echo one
+ f
+ 'TODO: trace string for assignment'
- echo func
+ echo two
osh_.cc7 PS4 is scoped

[osh_.cc stderr] Expected '+ echo one\n+ f\n- echo func\n+ echo two\n', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.\n"
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh8 xtrace with variables in PS4

[osh stderr] Expected '+1:echo one\n+2:echo two\n', got '+1:(lvalue.Named name:x spids:[11]) = (value.Str s:1)\n+1:echo one\n+2:(lvalue.Named name:x spids:[21]) = (value.Str s:2)\n+2:echo two\n'

stdout:
one
two
stderr:
+1:(lvalue.Named name:x spids:[11]) = (value.Str s:1)
+1:echo one
+2:(lvalue.Named name:x spids:[21]) = (value.Str s:2)
+2:echo two
osh_.py8 xtrace with variables in PS4

[osh_.py stderr] Expected '+1:echo one\n+2:echo two\n', got '+1:(lvalue.Named name:x spids:[11]) = (value.Str s:1)\n+1:echo one\n+2:(lvalue.Named name:x spids:[21]) = (value.Str s:2)\n+2:echo two\n'

stdout:
one
two
stderr:
+1:(lvalue.Named name:x spids:[11]) = (value.Str s:1)
+1:echo one
+2:(lvalue.Named name:x spids:[21]) = (value.Str s:2)
+2:echo two
osh_.cc8 xtrace with variables in PS4

[osh_.cc stderr] Expected '+1:echo one\n+2:echo two\n', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.\n"
[osh_.cc stdout] Expected 'one\ntwo\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.cc9 PS4 with unterminated ${

[osh_.cc stdout] Expected 'one\nstatus=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.cc10 PS4 with unterminated $(

[osh_.cc stdout] Expected 'one\nstatus=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.
osh_.cc11 PS4 with runtime error

[osh_.cc stdout] Expected 'one\nstatus=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, syntax_asdl::compound_word *>::index(K) [K = Str *, V = syntax_asdl::compound_word *]: Assertion `0' failed.