Results for ysh-builtin-eval.test.sh

statusyshysh_ALT
pass 2929
FAIL 22
total3131
caseyshysh_ALTdescription
0pass pass eval builtin does not take a literal block - can restore this later
1pass pass Eval a block within a proc
2pass pass Eval block created by calling a proc
3pass pass io->eval with argv bindings
4pass pass eval lines with argv bindings
5pass pass eval lines with var bindings
6pass pass eval with custom dollar0
7pass pass eval with vars bindings
8pass pass dynamic binding names and mutation
9pass pass binding procs in the eval-ed namespace
10pass pass vars initializes the variable frame, but does not remember it
11pass pass eval pos_args must be strings
12pass pass eval with vars follows same scoping as without
13pass pass eval 'mystring' vs. call io->eval(myblock)
14pass pass io->eval(to_dict=true) - local and global
15pass pass io->eval(to_dict=true) with dollar0, pos_args, vars - dict ordering bug
16pass pass io->eval(to_dict=true) with in_captured_frame=true
17pass pass parseCommand then io->eval(to_dict=true) - in global scope
18pass pass parseCommand with syntax error
19pass pass Dict (&d) { ... } converts frame to dict
20pass pass block in Dict (&d) { ... } can read from outer scope
21pass pass block in yb-capture Dict (&d) can read from outer scope
22pass pass Dict (&d) and setvar
23pass pass Dict (&d) and setglobal
24FAIL FAIL bindings created shvar persist, which is different than eval(to_dict=true)
detailsdetails
25pass pass io->eval with in_captured_frame=true can express cd builtin
26pass pass io->eval with in_captured_frame=true can express cd builtin in different module
27pass pass io->eval() has cleaner scoping than shell's eval builtin
28pass pass io->eval with in_captured_frame=true and setglobal
29FAIL FAIL eval should have a sandboxed mode
detailsdetails
30pass pass io->evalExpr() with vars, dollar0, pos_args
58 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

ysh24 bindings created shvar persist, which is different than eval(to_dict=true)

[ysh stdout] Expected 'a=b\na=a\ninner=z\ninner2=z\n', got ''
[ysh status] Expected 0, got 2

stdout:
stderr: 
  shvar IFS=: a='b' {
                ^
[ stdin ]:2: Invalid quoted word part in YSH (OILS-ERR-17)
ysh_ALT24 bindings created shvar persist, which is different than eval(to_dict=true)

[ysh_ALT stdout] Expected 'a=b\na=a\ninner=z\ninner2=z\n', got ''
[ysh_ALT status] Expected 0, got 2

stdout:
stderr: 
  shvar IFS=: a='b' {
                ^
[ stdin ]:2: Invalid quoted word part in YSH (OILS-ERR-17)
ysh29 eval should have a sandboxed mode

[ysh stdout] Expected 'TODO\n', got ''
[ysh status] Expected 1, got 2

stdout:
stderr: 
      var d = {}
          ^
[ stdin ]:12: 'd' was already declared
ysh_ALT29 eval should have a sandboxed mode

[ysh_ALT stdout] Expected 'TODO\n', got ''
[ysh_ALT status] Expected 1, got 2

stdout:
stderr: 
      var d = {}
          ^
[ stdin ]:12: 'd' was already declared