status | osh | osh-cpp | |
pass | 5 | 5 | |
FAIL | 10 | 10 | |
total | 15 | 15 | |
case | osh | osh-cpp | description |
0 | pass | pass | eval() is a pure function |
1 | pass | pass | evalExpr() is a pure function |
2 | FAIL | FAIL | Idiom to handle purity errors from untrusted config files |
details | details | ||
3 | FAIL | FAIL | Can log to stderr in pure mode |
details | details | ||
4 | FAIL | FAIL | Executor: can run user-defined Procs (and Hay, for now) |
details | details | ||
5 | FAIL | FAIL | Executor: External Commands not allowed |
details | details | ||
6 | pass | pass | Command subs, pipelines not allowed with --eval-pure |
7 | pass | pass | Process subs, subshells not allowed with eval() |
8 | pass | pass | Background job & |
9 | FAIL | FAIL | Are any builtins allowed? true, false |
details | details | ||
10 | FAIL | FAIL | Are source or use builtins allowed? |
details | details | ||
11 | FAIL | FAIL | io and vm are not allowed |
details | details | ||
12 | FAIL | FAIL | Can't make an alias of io->eval and call it, etc. |
details | details | ||
13 | FAIL | FAIL | $RANDOM $SECONDS |
details | details | ||
14 | FAIL | FAIL | Purely-evaluated code can't set traps for later |
details | details |
10 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped 10 failed under osh
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 | 3 Can log to stderr in pure mode [osh stdout] Expected '', got 'TODO: log builtin?\n' stdout: TODO: log builtin?stderr: |
osh-cpp | 3 Can log to stderr in pure mode [osh-cpp stdout] Expected '', got 'TODO: log builtin?\n' stdout: TODO: log builtin?stderr: |
osh | 4 Executor: can run user-defined Procs (and Hay, for now) [osh stdout] Expected '', got "(Dict)\n{\n source: null,\n children: [\n {\n type: 'Package',\n args: ['foo'],\n children: [\n {\n type: 'INSTALL',\n args: [],\n location_str: '[ stdin ]',\n location_start_line: 7,\n code_str: ' echo hi '\n }\n ],\n attrs: {version: '1.1'}\n }\n ]\n}\nmyproc\n" stdout: (Dict) { source: null, children: [ { type: 'Package', args: ['foo'], children: [ { type: 'INSTALL', args: [], location_str: '[ stdin ]', location_start_line: 7, code_str: ' echo hi ' } ], attrs: {version: '1.1'} } ] } myprocstderr: |
osh-cpp | 4 Executor: can run user-defined Procs (and Hay, for now) [osh-cpp stdout] Expected '', got "(Dict)\n{\n source: null,\n children: [\n {\n type: 'Package',\n args: ['foo'],\n children: [\n {\n type: 'INSTALL',\n args: [],\n location_str: '[ stdin ]',\n location_start_line: 7,\n code_str: ' echo hi '\n }\n ],\n attrs: {version: '1.1'}\n }\n ]\n}\nmyproc\n" stdout: (Dict) { source: null, children: [ { type: 'Package', args: ['foo'], children: [ { type: 'INSTALL', args: [], location_str: '[ stdin ]', location_start_line: 7, code_str: ' echo hi ' } ], attrs: {version: '1.1'} } ] } myprocstderr: |
osh | 5 Executor: External Commands not allowed [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh-cpp | 5 Executor: External Commands not allowed [osh-cpp stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh | 9 Are any builtins allowed? true, false [osh stdout] Expected 'true\nbuiltin true\ncommand true\n', got '' [osh status] Expected 1, got 0 stdout: stderr: RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand |
osh-cpp | 9 Are any builtins allowed? true, false [osh-cpp stdout] Expected 'true\nbuiltin true\ncommand true\n', got '' [osh-cpp status] Expected 1, got 0 stdout: stderr: RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand RunSimpleCommand |
osh | 10 Are source or use builtins allowed? [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh-cpp | 10 Are source or use builtins allowed? [osh-cpp stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh | 11 io and vm are not allowed [osh stdout] Expected '', got '<Frame 0x7f142b2ba7a0>\n(Int) 139724600354720\n<Stdin>\n' stdout: <Frame 0x7f142b2ba7a0> (Int) 139724600354720 <Stdin>stderr: |
osh-cpp | 11 io and vm are not allowed [osh-cpp stdout] Expected '', got '<Frame 0x1899>\n(Int) 6053\n<Stdin>\n' stdout: <Frame 0x1899> (Int) 6053 <Stdin>stderr: |
osh | 12 Can't make an alias of io->eval and call it, etc. [osh stdout] Expected '', got 'hi\n' stdout: histderr: |
osh-cpp | 12 Can't make an alias of io->eval and call it, etc. [osh-cpp stdout] Expected '', got 'hi\n' stdout: histderr: |
osh | 13 $RANDOM $SECONDS [osh stdout] Expected '', got 'not-implemented=\n0\n' stdout: not-implemented= 0stderr: |
osh-cpp | 13 $RANDOM $SECONDS [osh-cpp stdout] Expected '', got 'not-implemented=\n0\n' stdout: not-implemented= 0stderr: |
osh | 14 Purely-evaluated code can't set traps for later [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh-cpp | 14 Purely-evaluated code can't set traps for later [osh-cpp stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |