Results for ysh-builtin-module.test.sh

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

[osh-cpp 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:
osh-cpp27 use foo.ysh --all-provided

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

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

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

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

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

stdout:
TODO
stderr: