Results for ysh-builtin-module.test.sh

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

osh24 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:
osh27 use foo.ysh --all-provided

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

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

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

stdout:
TODO
stderr: