8 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped 10 failed under osh
| osh-cpp | 0 eval() is a pure function [osh-cpp stdout] Expected '(Dict) {"a":1,"b":2}\nimpure code=5\n3\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:6: Unexpected EOF while parsing command |
| osh-cpp | 1 evalExpr() is a pure function [osh-cpp stdout] Expected 'pure=43\nimpure code=5\nimpure=45\n' Got 'pure=43\n' [osh-cpp status] Expected 0 Got 2 stdout: pure=43stderr: var impure = ^[x + $(echo 3)]
^
[ stdin ]:7: Invalid word while parsing command list
|
| osh | 2 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-cpp | 2 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: |
| osh-cpp | 3 Executor: can run user-defined Procs [osh-cpp stdout] Expected '(List) ["p-outside","p-inside"]\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:17: Unexpected EOF while parsing command |
| osh-cpp | 4 Executor: can run Hay (while Hay is hard-coded) [osh-cpp stdout] Expected '{\n "version": "1.1"\n}\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:10: Unexpected EOF while parsing command |
| osh-cpp | 5 Executor: External Commands not allowed [osh-cpp stdout] Expected '1\n2\n3\n' Got '' [osh-cpp status] Expected 127 Got 2 stdout: stderr: var cmd = ^(seq 3)
^
[ stdin ]:1: Invalid word while parsing command list
|
| osh-cpp | 6 Command subs, pipelines not allowed with --eval-pure [osh-cpp stdout] Expected 'command sub\ncommand-sub.sh=5\ncommand-sub.ysh=5\n\n3\neval\npipeline.sh=5\n' Got '\n3\neval\npipeline.sh=5\n' stdout: 3 eval pipeline.sh=5stderr: x=$(echo command sub)
^
command-sub.sh:1: Invalid word while parsing command list
x=$(echo command sub)
^
command-sub.sh:1: Invalid word while parsing command list
var x = $(echo command sub)
^
command-sub.ysh:1: Invalid word while parsing command list
seq 3 | wc -l
^
pipeline.sh:1: fatal: Pipelines aren't allowed in pure mode (OILS-ERR-204)
|
| osh-cpp | 7 Process subs, subshells not allowed with eval() [osh-cpp stdout] Expected "1\n2\ncode=5 message=Process subs aren't allowed in pure mode (OILS-ERR-204)\n\nsubshell\ncode=5 message=Subshells aren't allowed in pure mode (OILS-ERR-204)\n" Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: var cmd = ^( cat <(echo 1) <(echo 2) )
^
[ stdin ]:3: Invalid word while parsing command list
|
| osh-cpp | 8 Background job & [osh-cpp stdout] Expected "code=5 message=Background jobs aren't allowed in pure mode (OILS-ERR-204)\n3\ncode=5 message=Pipelines aren't allowed in pure mode (OILS-ERR-204)\n" Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: var cmd = ^( sleep 0.01 & wait )
^
[ stdin ]:3: Invalid word while parsing command list
|
| osh | 9 Redirects [osh stdout] Expected 'TODO\n' Got "removed 'out.txt'\n" stdout: removed 'out.txt'stderr: |
| osh-cpp | 9 Redirects [osh-cpp stdout] Expected 'TODO\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: var cmd = ^( Package foo > out.txt )
^
[ stdin ]:4: Invalid word while parsing command list
|
| osh | 10 Are any builtins allowed? true, false [osh status] Expected 0 Got 1 stdout: true builtin true command truestderr: builtin false
^~~~~~~
[ stdin ]:13: errexit PID 40012: Command failed with status 1
|
| osh-cpp | 10 Are any builtins allowed? true, false [osh-cpp stdout] Expected 'true\nbuiltin true\ncommand true\n' Got '' [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:15: Unexpected EOF while parsing command |
| osh | 11 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 40048: Command failed with status 127
|
| osh-cpp | 11 Are source or use builtins allowed? [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:7: Unexpected EOF while parsing command |
| osh | 12 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 40071: Command failed with status 127
|
| osh-cpp | 12 Can log to stderr in pure mode [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:8: Unexpected EOF while parsing command |
| osh | 13 io and vm are not allowed [osh stdout] Expected '' Got '<Frame 0x7f966b4f9a00>\n(Int) 140284022202272\n<Stdin>\n<Frame 0x7f966b4f93c0>\n(Int) 140284022199232\n<Stdin>\n' stdout: <Frame 0x7f966b4f9a00> (Int) 140284022202272 <Stdin> <Frame 0x7f966b4f93c0> (Int) 140284022199232 <Stdin>stderr: |
| osh-cpp | 13 io and vm are not allowed [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:6: Unexpected EOF while parsing command |
| osh | 14 Can't make an alias of io->eval and call it, etc. [osh stdout] Expected '' Got 'hi\n' stdout: histderr: |
| osh-cpp | 14 Can't make an alias of io->eval and call it, etc. [osh-cpp status] Expected 0 Got 2 stdout: stderr: var cmd = ^(echo hi)
^
[ stdin ]:6: Invalid word while parsing command list
|
| osh | 15 Globbing not allowed [osh stdout] Expected '' Got '*.txt\n' [osh status] Expected 0 Got 127 stdout: *.txtstderr: echo *.txt
^~~~
[ stdin ]:2: Command 'echo' not found in pure mode (OILS-ERR-102)
|
| osh-cpp | 15 Globbing not allowed [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:3: Unexpected EOF while parsing command |
| osh | 16 $RANDOM $SECONDS [osh status] Expected 0 Got 1 stdout: stderr: echo not-implemented=$RANDOM
^~~~~~~
[ stdin ]:4: fatal: Undefined variable 'RANDOM'
|
| osh-cpp | 16 $RANDOM $SECONDS [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:6: Unexpected EOF while parsing command |
| osh | 17 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-cpp | 17 Purely-evaluated code can't set traps for later [osh-cpp status] Expected 0 Got 2 stdout: stderr: ) ^ [ stdin ]:3: Unexpected EOF while parsing command |