Results for ysh-builtin-module.test.sh

statusosh
pass 25
FAIL 3
total28
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 usage with --pick etc.
5pass use --extern is a no-op, for static analysis
6pass use foo.ysh creates a value.Obj, and it's cached on later invocations
7pass procs in a module can call setglobal on globals in that module
8pass no provided names
9pass bad provide type
10pass invalid provide entries
11pass use foo.ysh creates a value.Obj with __invoke__
12pass module itself is invokable Obj, which can contain invokable obj!
13pass argument binding test
14pass module-with-hyphens
15pass modules can access __builtins__ directly
16pass use may only be used a TOP level, not within proc
17pass Mutable variables are frozen - beware!
18pass module invoked without any arguments is an error
19pass module invoked with nonexistent name is error
20pass circular import doesn't result in infinite loop, or crash
21pass Module with parse error
22pass Module with runtime error
23FAIL user can inspect __modules__ cache
details
24pass use foo.ysh --pick a b
25pass use foo.ysh --pick nonexistent
26FAIL use foo.ysh --all-provided
details
27FAIL use foo.ysh --all-for-testing
details
25 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh23 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:
osh26 use foo.ysh --all-provided

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

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

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

stdout:
TODO
stderr: