Results for ysh-builtin-module.test.sh

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

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

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

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

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

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

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

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

stdout:
TODO
stderr: