Results for ysh-builtin-eval.test.sh

statusysh
FAIL 26
total26
caseyshdescription
0FAIL eval builtin does not take a literal block - can restore this later
details
1FAIL Eval a block within a proc
details
2FAIL Eval block created by calling a proc
details
3FAIL io->eval with argv bindings
details
4FAIL eval lines with argv bindings
details
5FAIL eval lines with var bindings
details
6FAIL eval with custom dollar0
details
7FAIL eval with vars bindings
details
8FAIL dynamic binding names and mutation
details
9FAIL binding procs in the eval-ed namespace
details
10FAIL vars initializes the variable frame, but does not remember it
details
11FAIL eval pos_args must be strings
details
12FAIL eval with vars follows same scoping as without
details
13FAIL eval 'mystring' vs. call io->eval(myblock)
details
14FAIL io->evalToDict() - local and global
details
15FAIL parseCommand then io->evalToDict() - in global scope
details
16FAIL parseCommand with syntax error
details
17FAIL Dict (&d) { ... } converts frame to dict
details
18FAIL block in Dict (&d) { ... } can read from outer scope
details
19FAIL block in yb-capture Dict (&d) can read from outer scope
details
20FAIL Dict (&d) and setvar
details
21FAIL Dict (&d) and setglobal
details
22FAIL bindings created shvar persist, which is different than evalToDict()
details
23FAIL io->evalInFrame() can express try, cd builtins
details
24FAIL parseCommand(), io->evalInFrame(frag, frame) can behave like eval $mystr
details
25FAIL eval should have a sandboxed mode
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 26 failed, 0 timeouts, 0 cases skipped
26 failed under osh

Details on runs that didn't PASS

ysh0 eval builtin does not take a literal block - can restore this later

[ysh stdout] Expected 'obj\ncommand literal\n', got ''
[ysh status] Expected 2, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh1 Eval a block within a proc

[ysh stdout] Expected 'In a block!\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh2 Eval block created by calling a proc

[ysh stdout] Expected '0\n1\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh3 io->eval with argv bindings

[ysh stdout] Expected 'foo bar baz\n(List) ["foo","bar","baz"]\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh4 eval lines with argv bindings

[ysh stdout] Expected 'b a\nd c\nb a mylocal\nd c mylocal\n\nb a local2\nd c local2\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh5 eval lines with var bindings

[ysh stdout] Expected 'a b | a mylocal\nc d | c mylocal\n\na b | a local2\nc d | c local2\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh6 eval with custom dollar0

[ysh stdout] Expected 'my arg0\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh7 eval with vars bindings

[ysh stdout] Expected '(Str) "abc"\n(Str) "123"\n(Str) "abc"\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh8 dynamic binding names and mutation

[ysh stdout] Expected '(Dict) {"a":1,"z":"z"}\n(Dict) {"b":2,"z":"z"}\n(Dict) {"c":3,"z":"z"}\n\n(Dict) {"a":1,"z":"z","d":0}\n(Dict) {"b":2,"z":"z","d":0}\n(Dict) {"c":3,"z":"z","d":0}\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh9 binding procs in the eval-ed namespace

[ysh stdout] Expected 'flag -h --help\narg file\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh10 vars initializes the variable frame, but does not remember it

[ysh stdout] Expected '(Dict) {"foo":123}\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh11 eval pos_args must be strings

[ysh status] Expected 3, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh12 eval with vars follows same scoping as without

[ysh stdout] Expected 'baz\nbaz\nfoo\nfoo\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh13 eval 'mystring' vs. call io->eval(myblock)

[ysh stdout] Expected 'plain\nplain=0\nplain\nplain=0\n\none\n(Dict) {"code":1}\none\n(Dict) {"code":1}\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh14 io->evalToDict() - local and global

[ysh stdout] Expected '(Dict) {"foo":42,"bar":"global"}\n(Dict) {"foo":42,"g":"-global","p":"-param","L":"-local"}\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh15 parseCommand then io->evalToDict() - in global scope

[ysh stdout] Expected '<Command>\nhi\n(Dict) {"x":42,"y":"global"}\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh16 parseCommand with syntax error

[ysh stdout] Expected '(Dict) {"code":3,"message":"Syntax error in parseCommand()"}\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh17 Dict (&d) { ... } converts frame to dict

[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh18 block in Dict (&d) { ... } can read from outer scope

[ysh stdout] Expected '(Dict) {"y":43}\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh19 block in yb-capture Dict (&d) can read from outer scope

[ysh stdout] Expected '(Dict) {"status":0,"stdout":"43\\n"}\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh20 Dict (&d) and setvar

[ysh stdout] Expected 'Dict proc global outer=xx\ninside Dict outer=xx\n(Dict) {"outer2":"outer2","not_declared":"yy"}\nafter Dict outer=zz\n\nDict proc global outer=zz\n(Dict) {"p":99}\n[p] after Dict outer=p-outer-mutated\nafter p outer=zz\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh21 Dict (&d) and setglobal

[ysh stdout] Expected ' [frame_vars_] __E__ a\n\n(Dict) {"a":42}\ng=zz\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh22 bindings created shvar persist, which is different than evalToDict()

[ysh stdout] Expected 'a=b\na=a\ninner=z\ninner2=z\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh23 io->evalInFrame() can express try, cd builtins

[ysh stdout] Expected 'x: i = 0, j = 2\nx: i = 1, j = 3\nx: i = 2, j = 4\n' Got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh24 parseCommand(), io->evalInFrame(frag, frame) can behave like eval $mystr

[ysh stdout] Expected 'mylocal=42\nmylocal=99\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh25 eval should have a sandboxed mode

[ysh stdout] Expected 'TODO\n', got ''
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_