Results for ysh-builtin-module.test.sh

statusoshosh_ALT
pass 1010
FAIL 66
total1616
caseoshosh_ALTdescription
0pass pass source-guard is an old way of preventing redefinition - could remove it
1pass pass is-main
2pass pass is-main with -c and stdin
3pass pass use builtin usage
4pass pass use --extern is a no-op, for static analysis
5pass pass use foo.ysh creates a value.Obj, and it's cached on later invocations
6pass pass procs in a module can call setglobal on globals in that module
7pass pass no provided names
8pass pass bad provide type
9pass pass invalid provide entries
10FAIL FAIL use foo.ysh creates a value.Obj with __invoke__
detailsdetails
11FAIL FAIL circular import is an error?
detailsdetails
12FAIL FAIL user can inspect __modules__ cache
detailsdetails
13FAIL FAIL use foo.ysh --pick a b
detailsdetails
14FAIL FAIL use foo.ysh --all-provided
detailsdetails
15FAIL FAIL use foo.ysh --all-for-testing
detailsdetails
20 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh10 use foo.ysh creates a value.Obj with __invoke__

[osh stdout] Expected '', got 'caller_no_leak = null\n(Obj) {"MY_INTEGER":42,"log":<Proc>,"die":<Proc>,"setvar_noleak":"util.ysh","setglobal_noleak":"util.ysh"}\n'
[osh status] Expected 0, got 127

stdout:
caller_no_leak = null
(Obj)   {"MY_INTEGER":42,"log":<Proc>,"die":<Proc>,"setvar_noleak":"util.ysh","setglobal_noleak":"util.ysh"}
stderr:
  util log 'hello'
  ^~~~
[ stdin ]:7: 'util' not found (OILS-ERR-100)
[ stdin ]:7: errexit PID 39322: command.Simple failed with status 127
osh_ALT10 use foo.ysh creates a value.Obj with __invoke__

[osh_ALT stdout] Expected '', got 'caller_no_leak = null\n(Obj) {"MY_INTEGER":42,"log":<Proc>,"die":<Proc>,"setvar_noleak":"util.ysh","setglobal_noleak":"util.ysh"}\n'
[osh_ALT status] Expected 0, got 127

stdout:
caller_no_leak = null
(Obj)   {"MY_INTEGER":42,"log":<Proc>,"die":<Proc>,"setvar_noleak":"util.ysh","setglobal_noleak":"util.ysh"}
stderr:
  util log 'hello'
  ^~~~
[ stdin ]:7: 'util' not found (OILS-ERR-100)
[ stdin ]:7: errexit PID 39325: command.Simple failed with status 127
osh11 circular import is an error?

[osh stdout] Expected '', got 'hi\n'

stdout:
hi
stderr:
osh_ALT11 circular import is an error?

[osh_ALT stdout] Expected '', got 'hi\n'

stdout:
hi
stderr:
osh12 user can inspect __modules__ cache

[osh stdout] Expected '', got 'TODO: Dict view of realpath() string -> Obj instance\n'

stdout:
TODO: Dict view of realpath() string -> Obj instance
stderr:
osh_ALT12 user can inspect __modules__ cache

[osh_ALT stdout] Expected '', got 'TODO: Dict view of realpath() string -> Obj instance\n'

stdout:
TODO: Dict view of realpath() string -> Obj instance
stderr:
osh13 use foo.ysh --pick a b

[osh stdout] Expected '', got 'TODO\n'

stdout:
TODO
stderr:
osh_ALT13 use foo.ysh --pick a b

[osh_ALT stdout] Expected '', got 'TODO\n'

stdout:
TODO
stderr:
osh14 use foo.ysh --all-provided

[osh stdout] Expected '', got 'TODO\n'

stdout:
TODO
stderr:
osh_ALT14 use foo.ysh --all-provided

[osh_ALT stdout] Expected '', got 'TODO\n'

stdout:
TODO
stderr:
osh15 use foo.ysh --all-for-testing

[osh stdout] Expected '', got 'TODO\n'

stdout:
TODO
stderr:
osh_ALT15 use foo.ysh --all-for-testing

[osh_ALT stdout] Expected '', got 'TODO\n'

stdout:
TODO
stderr: