status | osh | |
pass | 3 | |
FAIL | 10 | |
total | 13 | |
case | osh | description |
0 | pass | eval() is a pure function |
1 | pass | evalExpr() is a pure function |
2 | FAIL | Idiom to handle purity errors from untrusted config files |
details | ||
3 | FAIL | Can log to stderr in pure mode |
details | ||
4 | FAIL | Executor: can run user-defined Procs (and Hay, for now) |
details | ||
5 | FAIL | Executor: External Commands not allowed |
details | ||
6 | pass | Executor: Command subs, pipelines, etc. not allowed |
7 | FAIL | Executor: Builtins not allowed |
details | ||
8 | FAIL | Are source or use builtins allowed? |
details | ||
9 | FAIL | io and vm are not allowed |
details | ||
10 | FAIL | Can't make an alias of io->eval and call it, etc. |
details | ||
11 | FAIL | $RANDOM $SECONDS |
details | ||
12 | FAIL | Purely-evaluated code can't set traps for later |
details |
3 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 | 3 Can log to stderr in pure mode [osh 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 | 5 Executor: External Commands not allowed [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh | 7 Executor: Builtins not allowed [osh stdout] Expected '', got '1\n 2\n 3\n\n' stdout: 1 2 3stderr: |
osh | 8 Are source or use builtins allowed? [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh | 9 io and vm are not allowed [osh stdout] Expected '', got '<Frame 0x7fd3d7a2b638>\n(Int) 140547832591928\n<Stdin>\n' stdout: <Frame 0x7fd3d7a2b638> (Int) 140547832591928 <Stdin>stderr: |
osh | 10 Can't make an alias of io->eval and call it, etc. [osh stdout] Expected '', got 'hi\n' stdout: histderr: |
osh | 11 $RANDOM $SECONDS [osh stdout] Expected '', got 'not-implemented=\n0\n' stdout: not-implemented= 0stderr: |
osh | 12 Purely-evaluated code can't set traps for later [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |