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 49102: env 'false'\n; process 49102: status 1\n. builtin set '+x'\n"

stdout:
stderr: 
| command 49102: env 'false'
; process 49102: 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 49116: env 'false'\n; process 49116: status 1\n. builtin 'true'\n. builtin set '+x'\n"

stdout:
stderr: 
| command 49116: env 'false'
; process 49116: 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 49121\n; process 49121: status 3\n. builtin set '+x'\n"

stdout:
stderr: 
. builtin ':' begin
| forkwait 49121
; process 49121: 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 49127\n; process 49127: status 0\n. builtin echo 'foo=bar'\n. builtin set '+x'\n"

stdout:
foo=bar
stderr:
| command sub 49127
; process 49127: 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 49133\n| proc sub 49134\n| command 49135: tac /dev/fd/5 /dev/fd/6\n; process 49133: status 0\n; process 49134: status 0\n; process 49135: status 0\n. builtin set '+x'\n"

stdout:
4
3
1
stderr:
. builtin ':' begin
| proc sub 49133
| proc sub 49134
| command 49135: tac /dev/fd/5 /dev/fd/6
; process 49133: status 0
; process 49134: status 0
; process 49135: 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 49141\n | part 49142\n | command 49143: wc -l\n ; process 49141: status 0\n ; process 49142: status 0\n ; process 49143: status 0\n< pipeline\n. builtin set '+x'\n"

stdout:
2
stderr:
. builtin ':' begin
> pipeline
  | part 49141
  | part 49142
  | command 49143: wc -l
  ; process 49141: status 0
  ; process 49142: status 0
  ; process 49143: 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 49152\n| part 49153\n| part 49154\n> wait\n ; process 49152: status 0\n ; process 49153: status 0\n ; process 49154: status 1\n< wait\n. builtin echo 'status=0'\n. builtin set '+x'\n"

stdout:
status=0
stderr:
. builtin ':' begin
| part 49152
| part 49153
| part 49154
> wait
  ; process 49152: status 0
  ; process 49153: status 0
  ; process 49154: 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 49160\n> wait\n ; process 49160: status 0\n< wait\n. builtin shopt -s 'ysh:upgrade'\n. builtin fork\n| fork 49161\n> wait\n ; process 49161: status 0\n< wait\n. builtin set '+x'\n"

stdout:
stderr: 
| fork 49160
> wait
  ; process 49160: status 0
< wait
. builtin shopt -s 'ysh:upgrade'
. builtin fork
| fork 49161
> wait
  ; process 49161: 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 49167: tac\n; process 49167: status 0\n. builtin set '+x'\n"

stdout:
2
3
stderr:
. builtin ':' begin
| command 49167: tac
; process 49167: 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 49172: tac - /dev/fd/3\n; process 49172: status 0\n. builtin set '+x'\n"

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