Results for ysh-builtin-module.test.sh

statusoshosh_ALT
pass 1515
FAIL 77
total2222
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 --extern is a no-op, for static analysis
5pass pass use foo.ysh creates a value.Obj, and it's cached on later invocations
6pass pass procs in a module can call setglobal on globals in that module
7pass pass no provided names
8pass pass bad provide type
9pass pass invalid provide entries
10pass pass use foo.ysh creates a value.Obj with __invoke__
11pass pass module itself is invokable Obj, which can contain invokable obj!
12pass pass argument binding test
13pass pass module invoked without any arguments is an error
14pass pass module invoked with nonexistent name is error
15FAIL FAIL circular import is an error?
detailsdetails
16FAIL FAIL Module with runtime error
detailsdetails
17FAIL FAIL Module with parse error
detailsdetails
18FAIL FAIL user can inspect __modules__ cache
detailsdetails
19FAIL FAIL use foo.ysh --names a b
detailsdetails
20FAIL FAIL use foo.ysh --all-provided
detailsdetails
21FAIL FAIL use foo.ysh --all-for-testing
detailsdetails
30 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped
7 failed under osh

Details on runs that didn't PASS

osh15 circular import is an error?

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

stdout:
hi
stderr:
osh_ALT15 circular import is an error?

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

stdout:
hi
stderr:
osh16 Module with runtime error

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

stdout:
TODO
stderr:
osh_ALT16 Module with runtime error

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

stdout:
TODO
stderr:
osh17 Module with parse error

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

stdout:
TODO
stderr:
osh_ALT17 Module with parse error

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

stdout:
TODO
stderr:
osh18 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_ALT18 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:
osh19 use foo.ysh --names a b

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

stdout:
TODO
stderr:
osh_ALT19 use foo.ysh --names a b

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

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

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

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

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

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

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

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

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

stdout:
TODO
stderr: