Results for ysh-purity.test.sh

statusoshosh-cpp
pass 88
FAIL 99
total1717
caseoshosh-cppdescription
0pass pass eval() is a pure function
1pass pass evalExpr() is a pure function
2FAIL FAIL Idiom to handle purity errors from untrusted config files
detailsdetails
3pass pass Executor: can run user-defined Procs
4pass pass Executor: can run Hay (while Hay is hard-coded)
5pass pass Executor: External Commands not allowed
6pass pass Command subs, pipelines not allowed with --eval-pure
7pass pass Process subs, subshells not allowed with eval()
8pass pass Background job &
9FAIL FAIL Are any builtins allowed? true, false
detailsdetails
10FAIL FAIL Are source or use builtins allowed?
detailsdetails
11FAIL FAIL Can log to stderr in pure mode
detailsdetails
12FAIL FAIL io and vm are not allowed
detailsdetails
13FAIL FAIL Can't make an alias of io->eval and call it, etc.
detailsdetails
14FAIL FAIL Globbing not allowed
detailsdetails
15FAIL FAIL $RANDOM $SECONDS
detailsdetails
16FAIL FAIL Purely-evaluated code can't set traps for later
detailsdetails
16 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped
9 failed under osh

Details on runs that didn't PASS

osh2 Idiom to handle purity errors from untrusted config files

[osh stdout] Expected '', got "TODO: what's the idiom?\n"

stdout:
TODO: what's the idiom?
stderr:
osh-cpp2 Idiom to handle purity errors from untrusted config files

[osh-cpp stdout] Expected '', got "TODO: what's the idiom?\n"

stdout:
TODO: what's the idiom?
stderr:
osh9 Are any builtins allowed? true, false

[osh status] Expected 0, got 1

stdout:
true
builtin true
command true
stderr:
    builtin false
    ^~~~~~~
[ stdin ]:13: errexit PID 36256: command.Simple failed with status 1
osh-cpp9 Are any builtins allowed? true, false

[osh-cpp status] Expected 0, got 1

stdout:
true
builtin true
command true
stderr:
    builtin false
    ^~~~~~~
[ stdin ]:13: errexit PID 36268: command.Simple failed with status 1
osh10 Are source or use builtins allowed?

[osh status] Expected 0, got 127

stdout:
stderr: 
    source foo.ysh
    ^~~~~~
[ stdin ]:5: Command 'source' not found in pure mode (OILS-ERR-102)
[ stdin ]:5: errexit PID 36277: command.Simple failed with status 127
osh-cpp10 Are source or use builtins allowed?

[osh-cpp status] Expected 0, got 127

stdout:
stderr: 
    source foo.ysh
    ^~~~~~
[ stdin ]:5: Command 'source' not found in pure mode (OILS-ERR-102)
[ stdin ]:5: errexit PID 36283: command.Simple failed with status 127
osh11 Can log to stderr in pure mode

[osh status] Expected 0, got 127

stdout:
stderr: 
    log "hi $name"
    ^~~
[ stdin ]:7: Command 'log' not found (OILS-ERR-100)
[ stdin ]:7: errexit PID 36292: command.Simple failed with status 127
osh-cpp11 Can log to stderr in pure mode

[osh-cpp status] Expected 0, got 127

stdout:
stderr: 
    log "hi $name"
    ^~~
[ stdin ]:7: Command 'log' not found (OILS-ERR-100)
[ stdin ]:7: errexit PID 36308: command.Simple failed with status 127
osh12 io and vm are not allowed

[osh stdout] Expected '', got '<Frame 0x7efc09c5d908>\n(Int) 139620960819464\n<Stdin>\n<Frame 0x7efc09c5d998>\n(Int) 139620960819608\n<Stdin>\n'

stdout:
<Frame 0x7efc09c5d908>
(Int)   139620960819464
<Stdin>
<Frame 0x7efc09c5d998>
(Int)   139620960819608
<Stdin>
stderr:
osh-cpp12 io and vm are not allowed

[osh-cpp stdout] Expected '', got '<Frame 0x1739>\n(Int) 5797\n<Stdin>\n<Frame 0x2a59>\n(Int) 10693\n<Stdin>\n'

stdout:
<Frame 0x1739>
(Int)   5797
<Stdin>
<Frame 0x2a59>
(Int)   10693
<Stdin>
stderr:
osh13 Can't make an alias of io->eval and call it, etc.

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

stdout:
hi
stderr:
osh-cpp13 Can't make an alias of io->eval and call it, etc.

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

stdout:
hi
stderr:
osh14 Globbing not allowed

[osh stdout] Expected '', got '*.txt\n'
[osh status] Expected 0, got 127

stdout:
*.txt
stderr:
    echo *.txt
    ^~~~
[ stdin ]:2: Command 'echo' not found in pure mode (OILS-ERR-102)
osh-cpp14 Globbing not allowed

[osh-cpp stdout] Expected '', got '*.txt\n'
[osh-cpp status] Expected 0, got 127

stdout:
*.txt
stderr:
    echo *.txt
    ^~~~
[ stdin ]:2: Command 'echo' not found in pure mode (OILS-ERR-102)
osh15 $RANDOM $SECONDS

[osh status] Expected 0, got 1

stdout:
stderr: 
    echo not-implemented=$RANDOM
                         ^~~~~~~
[ stdin ]:4: fatal: Undefined variable 'RANDOM'
osh-cpp15 $RANDOM $SECONDS

[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
    echo not-implemented=$RANDOM
                         ^~~~~~~
[ stdin ]:4: fatal: Undefined variable 'RANDOM'
osh16 Purely-evaluated code can't set traps for later

[osh status] Expected 0, got 127

stdout:
stderr: 
    trap 'echo INT' INT
    ^~~~
[ stdin ]:2: Command 'trap' not found in pure mode (OILS-ERR-102)
osh-cpp16 Purely-evaluated code can't set traps for later

[osh-cpp status] Expected 0, got 127

stdout:
stderr: 
    trap 'echo INT' INT
    ^~~~
[ stdin ]:2: Command 'trap' not found in pure mode (OILS-ERR-102)