spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 5 | 5 | |
FAIL | 8 | 8 | |
total | 13 | 13 | |
case | ysh | ysh-cpp | description |
0 | pass | pass | Eval does not take a literal block - can restore this later |
1 | pass | pass | Eval a block within a proc |
2 | pass | pass | Eval block created by calling a proc |
3 | pass | pass | eval (block) can read variables like eval '' |
4 | FAIL | FAIL | eval should have a sandboxed mode |
details | details | ||
5 | FAIL | FAIL | eval with argv bindings |
details | details | ||
6 | FAIL | FAIL | eval lines with argv bindings |
details | details | ||
7 | FAIL | FAIL | eval with custom arg0 |
details | details | ||
8 | FAIL | FAIL | eval with vars bindings |
details | details | ||
9 | FAIL | FAIL | dynamic binding names and mutation |
details | details | ||
10 | FAIL | FAIL | binding procs in the eval-ed namespace |
details | details | ||
11 | FAIL | FAIL | vars initializes the variable frame, but does not remember it |
details | details | ||
12 | pass | pass | eval 'mystring' vs. eval (myblock) |
10 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped 8 failed under osh
ysh | 4 eval should have a sandboxed mode [ysh stdout] Expected 'TODO\n', got '' stdout: stderr: push-frame { ^ [ stdin ]:4: fatal: 'push-frame' appears to be external. External commands don't accept typed args (OILS-ERR-200) |
ysh-cpp | 4 eval should have a sandboxed mode [ysh-cpp stdout] Expected 'TODO\n', got '' stdout: stderr: push-frame { ^ [ stdin ]:4: fatal: 'push-frame' appears to be external. External commands don't accept typed args (OILS-ERR-200) |
ysh | 5 eval with argv bindings [ysh stdout] Expected 'foo bar baz\n(List) ["foo","bar","baz"]\n' Got '' [ysh status] Expected 0, got 2 stdout: stderr: eval (^(echo "$@")) (pos_args=:| foo bar baz |) ^ [ stdin ]:1: Invalid word while parsing command line (Id.Op_LParen) |
ysh-cpp | 5 eval with argv bindings [ysh-cpp stdout] Expected 'foo bar baz\n(List) ["foo","bar","baz"]\n' Got '' [ysh-cpp status] Expected 0, got 2 stdout: stderr: eval (^(echo "$@")) (pos_args=:| foo bar baz |) ^ [ stdin ]:1: Invalid word while parsing command line (Id.Op_LParen) |
ysh | 6 eval lines with argv bindings [ysh stdout] Expected 'a\nc\n', got '' stdout: stderr: while read --line { ^~~~~~ [ stdin ]:2: 'read' got invalid flag '--line' |
ysh-cpp | 6 eval lines with argv bindings [ysh-cpp stdout] Expected 'a\nc\n', got '' stdout: stderr: while read --line { ^~~~~~ [ stdin ]:2: 'read' got invalid flag '--line' |
ysh | 7 eval with custom arg0 [ysh stdout] Expected 'my arg0\n', got '' [ysh status] Expected 0, got 2 stdout: stderr: eval (^(write $0)) (arg0="my arg0") ^ [ stdin ]:1: Invalid word while parsing command line (Id.Op_LParen) |
ysh-cpp | 7 eval with custom arg0 [ysh-cpp stdout] Expected 'my arg0\n', got '' [ysh-cpp status] Expected 0, got 2 stdout: stderr: eval (^(write $0)) (arg0="my arg0") ^ [ stdin ]:1: Invalid word while parsing command line (Id.Op_LParen) |
ysh | 8 eval with vars bindings [ysh stdout] Expected 'abc\n123\n', got '(Str) "abc"\n' [ysh status] Expected 0, got 3 stdout: (Str) "abc"stderr: eval (^(pp test_ (myVar)), vars={ 'myVar': '123' }) ^ [ stdin ]:3: fatal: Got unexpected named args: vars |
ysh-cpp | 8 eval with vars bindings [ysh-cpp stdout] Expected 'abc\n123\n', got '(Str) "abc"\n' [ysh-cpp status] Expected 0, got 3 stdout: (Str) "abc"stderr: eval (^(pp test_ (myVar)), vars={ 'myVar': '123' }) ^ [ stdin ]:3: fatal: Got unexpected named args: vars |
ysh | 9 dynamic binding names and mutation [ysh stdout] Expected '(Dict) {"a":1}\n(Dict) {"b":2}\n(Dict) {"c":3}\n(List) [{"a":1,"d":0},{"b":2,"d":0},{"c":3,"d":0}]\n' Got '' [ysh status] Expected 0, got 3 stdout: stderr: eval (block, vars={ binding: _ }) ^ [ stdin ]:7: fatal: Got unexpected named args: vars |
ysh-cpp | 9 dynamic binding names and mutation [ysh-cpp stdout] Expected '(Dict) {"a":1}\n(Dict) {"b":2}\n(Dict) {"c":3}\n(List) [{"a":1,"d":0},{"b":2,"d":0},{"c":3,"d":0}]\n' Got '' [ysh-cpp status] Expected 0, got 3 stdout: stderr: eval (block, vars={ binding: _ }) ^ [ stdin ]:7: fatal: Got unexpected named args: vars |
ysh | 10 binding procs in the eval-ed namespace [ysh stdout] Expected 'flag -h --help\narg file\n', got '' [ysh status] Expected 0, got 3 stdout: stderr: eval (block, vars={ 'flag': __flag, 'arg': __arg }) ^ [ stdin ]:10: fatal: Got unexpected named args: vars |
ysh-cpp | 10 binding procs in the eval-ed namespace [ysh-cpp stdout] Expected 'flag -h --help\narg file\n', got '' [ysh-cpp status] Expected 0, got 3 stdout: stderr: eval (block, vars={ 'flag': __flag, 'arg': __arg }) ^ [ stdin ]:10: fatal: Got unexpected named args: vars |
ysh | 11 vars initializes the variable frame, but does not remember it [ysh stdout] Expected '(Dict) {"foo":123}\n', got '' [ysh status] Expected 0, got 2 stdout: stderr: eval (^(var bar = 321), vars=vars) ^ [ stdin ]:2: Syntax error in expression (near Id.Eof_RParen) |
ysh-cpp | 11 vars initializes the variable frame, but does not remember it [ysh-cpp stdout] Expected '(Dict) {"foo":123}\n', got '' [ysh-cpp status] Expected 0, got 2 stdout: stderr: eval (^(var bar = 321), vars=vars) ^ [ stdin ]:2: Syntax error in expression (near Id.Eof_RParen) |