Results for ysh-xtrace.test.sh

statusosh
pass 10
FAIL 10
total20
caseoshdescription
0pass Customize PS4
1pass no_xtrace_osh doesn't show [[ ]] etc.
2FAIL no_xtrace_osh UNSET, and xtrace_rich set
details
3pass proc and shell function
4pass eval
5pass source
6FAIL external and builtin
details
7FAIL subshell
details
8FAIL command sub
details
9FAIL process sub (nondeterministic)
details
10FAIL pipeline (nondeterministic)
details
11pass singleton pipeline
12FAIL Background pipeline (separate code path)
details
13FAIL Background process with fork and & (nondeterministic)
details
14FAIL Here doc
details
15FAIL Two here docs
details
16pass Here doc greater than 4096 bytes
17pass Control Flow
18pass use builtin and invokable module
19pass Encoded argv uses shell encoding, not J8
10 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped
10 failed under osh

Details on runs that didn't PASS

osh2 no_xtrace_osh UNSET, and xtrace_rich set

[osh stderr] Expected "| command 12345: env 'false'\n; process 12345: status 1\n. builtin set '+x'\n" Got "| command 7389: env 'false'\n; process 7389: status 1\n. builtin set '+x'\n"

stdout:
stderr: 
| command 7389: env 'false'
; process 7389: status 1
. builtin set '+x'
osh6 external and builtin

[osh stderr] Expected "| command 12345: env 'false'\n; process 12345: status 1\n. builtin 'true'\n. builtin set '+x'\n" Got "| command 7403: env 'false'\n; process 7403: status 1\n. builtin 'true'\n. builtin set '+x'\n"

stdout:
stderr: 
| command 7403: env 'false'
; process 7403: status 1
. builtin 'true'
. builtin set '+x'
osh7 subshell

[osh stderr] Expected " . 12345 builtin ':' p\n + 12345 exit 3\n . 12345 builtin ':' 1\n < 12345 proc p\n > 12345 proc p\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 3\n| forkwait 12345\n" Got ". builtin ':' begin\n| forkwait 7408\n; process 7408: status 3\n. builtin set '+x'\n"

stdout:
stderr: 
. builtin ':' begin
| forkwait 7408
; process 7408: status 3
. builtin set '+x'
osh8 command sub

[osh stderr] Expected " . 12345 builtin echo bar\n. builtin echo 'foo=bar'\n. builtin set '+x'\n; process 12345: status 0\n| command sub 12345\n" Got "| command sub 7414\n; process 7414: status 0\n. builtin echo 'foo=bar'\n. builtin set '+x'\n"

stdout:
foo=bar
stderr:
| command sub 7414
; process 7414: status 0
. builtin echo 'foo=bar'
. builtin set '+x'
osh9 process sub (nondeterministic)

[osh stderr] Expected " . 12345 builtin echo 1\n . 12345 exec seq 3 4\n. builtin ':' begin\n. builtin set '+x'\n; process 12345: status 0\n; process 12345: status 0\n; process 12345: status 0\n| command 12345: tac /dev/fd/N /dev/fd/N\n| proc sub 12345\n| proc sub 12345\n" Got ". builtin ':' begin\n| proc sub 7420\n| proc sub 7421\n| command 7422: tac /dev/fd/5 /dev/fd/6\n; process 7420: status 0\n; process 7421: status 0\n; process 7422: status 0\n. builtin set '+x'\n"

stdout:
4
3
1
stderr:
. builtin ':' begin
| proc sub 7420
| proc sub 7421
| command 7422: tac /dev/fd/5 /dev/fd/6
; process 7420: status 0
; process 7421: status 0
; process 7422: status 0
. builtin set '+x'
osh10 pipeline (nondeterministic)

[osh stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec sort\n < 12345 proc myfunc\n > 12345 proc myfunc\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 0\n | command 12345: wc -l\n | part 12345\n | part 12345\n. builtin ':' begin\n. builtin set '+x'\n< pipeline\n> pipeline\n" Got ". builtin ':' begin\n> pipeline\n | part 7428\n | part 7429\n | command 7430: wc -l\n ; process 7428: status 0\n ; process 7429: status 0\n ; process 7430: status 0\n< pipeline\n. builtin set '+x'\n"

stdout:
2
stderr:
. builtin ':' begin
> pipeline
  | part 7428
  | part 7429
  | command 7430: wc -l
  ; process 7428: status 0
  ; process 7429: status 0
  ; process 7430: status 0
< pipeline
. builtin set '+x'
osh12 Background pipeline (separate code path)

[osh stderr] Expected " . 12345 builtin echo 1\n . 12345 builtin echo 2\n . 12345 exec grep ZZZ\n . 12345 exec sort\n ; process 12345: status 0\n ; process 12345: status 0\n ; process 12345: status 1\n < 12345 proc myfunc\n > 12345 proc myfunc\n. builtin ':' begin\n. builtin echo 'status=0'\n. builtin set '+x'\n< wait\n> wait\n| part 12345\n| part 12345\n| part 12345\n" Got ". builtin ':' begin\n| part 7439\n| part 7440\n| part 7441\n> wait\n ; process 7439: status 0\n ; process 7440: status 0\n ; process 7441: status 1\n< wait\n. builtin echo 'status=0'\n. builtin set '+x'\n"

stdout:
status=0
stderr:
. builtin ':' begin
| part 7439
| part 7440
| part 7441
> wait
  ; process 7439: status 0
  ; process 7440: status 0
  ; process 7441: status 1
< wait
. builtin echo 'status=0'
. builtin set '+x'
osh13 Background process with fork and & (nondeterministic)

[osh stderr] Expected " . 12345 exec sleep 0.1\n . 12345 exec sleep 0.1\n ; process 12345: status 0\n ; process 12345: status 0\n. builtin fork\n. builtin set '+x'\n. builtin shopt -s 'ysh:upgrade'\n< wait\n< wait\n> wait\n> wait\n| fork 12345\n| fork 12345\n" Got "| fork 7447\n> wait\n ; process 7447: status 0\n< wait\n. builtin shopt -s 'ysh:upgrade'\n. builtin fork\n| fork 7448\n> wait\n ; process 7448: status 0\n< wait\n. builtin set '+x'\n"

stdout:
stderr: 
| fork 7447
> wait
  ; process 7447: status 0
< wait
. builtin shopt -s 'ysh:upgrade'
. builtin fork
| fork 7448
> wait
  ; process 7448: status 0
< wait
. builtin set '+x'
osh14 Here doc

[osh stderr] Expected ". builtin ':' begin\n| command 12345: tac\n; process 12345: status 0\n. builtin set '+x'\n" Got ". builtin ':' begin\n| command 7454: tac\n; process 7454: status 0\n. builtin set '+x'\n"

stdout:
2
3
stderr:
. builtin ':' begin
| command 7454: tac
; process 7454: status 0
. builtin set '+x'
osh15 Two here docs

[osh stderr] Expected "| command 12345: tac - /dev/fd/3\n; process 12345: status 0\n. builtin set '+x'\n" Got "| command 7459: tac - /dev/fd/3\n; process 7459: status 0\n. builtin set '+x'\n"

stdout:
yy
xx
zz
stderr:
| command 7459: tac - /dev/fd/3
; process 7459: status 0
. builtin set '+x'