Results for ysh-builtin-module.test.sh

statusosh
pass 21
FAIL 5
total26
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
10pass use foo.ysh creates a value.Obj with __invoke__
11pass module itself is invokable Obj, which can contain invokable obj!
12pass argument binding test
13pass module-with-hyphens
14pass modules can access __builtins__ directly
15pass use may only be used a TOP level, not within proc
16pass Mutable variables are frozen - beware!
17pass module invoked without any arguments is an error
18pass module invoked with nonexistent name is error
19FAIL circular import is an error?
details
20pass Module with parse error
21pass Module with runtime error
22FAIL user can inspect __modules__ cache
details
23FAIL use foo.ysh --names a b
details
24FAIL use foo.ysh --all-provided
details
25FAIL use foo.ysh --all-for-testing
details
21 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

osh19 circular import is an error?

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

stdout:
hi
stderr:
osh22 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:
osh23 use foo.ysh --names a b

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

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

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

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

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

stdout:
TODO
stderr: