Results for ysh-builtin-module.test.sh

statusosh
pass 10
FAIL 6
total16
caseoshdescription
0pass source-guard is an old way of preventing redefinition - could remove it
1pass is-main
2pass is-main with -c and stdin
3pass use builtin usage
4pass use --extern is a no-op, for static analysis
5pass use foo.ysh creates a value.Obj, and it's cached on later invocations
6pass procs in a module can call setglobal on globals in that module
7pass no provided names
8pass bad provide type
9pass invalid provide entries
10FAIL use foo.ysh creates a value.Obj with __invoke__
details
11FAIL circular import is an error?
details
12FAIL user can inspect __modules__ cache
details
13FAIL use foo.ysh --pick a b
details
14FAIL use foo.ysh --all-provided
details
15FAIL use foo.ysh --all-for-testing
details
10 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 36997: command.Simple failed with status 127
osh11 circular import is an error?

[osh 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:
osh13 use foo.ysh --pick a b

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

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

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

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

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

stdout:
TODO
stderr: