Results for ysh-proc.test.sh

statusosh
FAIL 36
total36
caseoshdescription
0FAIL Open proc (any number of args)
details
1FAIL Closed proc with no args, passed too many
details
2FAIL Open proc has ARGV
details
3FAIL Closed proc has empty "$@" or ARGV
details
4FAIL Proc with default args
details
5FAIL Proc with word params
details
6FAIL Proc with ... "rest" word params
details
7FAIL word rest params 2
details
8FAIL proc with typed args
details
9FAIL Proc name-with-hyphen
details
10FAIL Proc with block arg
details
11FAIL proc returning wrong type
details
12FAIL proc returning invalid string
details
13FAIL 'return' doesn't accept expressions
details
14FAIL procs are in same namespace as variables
details
15FAIL Nested proc is allowed
details
16FAIL Procs defined inside compound statements
details
17FAIL Block can be passed literally, or as expression in third arg group
details
18FAIL Pass through all 4 kinds of args
details
19FAIL Global and local ARGV, like "$@"
details
20FAIL Mutating global ARGV
details
21FAIL Mutating local ARGV
details
22FAIL typed proc allows all kinds of args
details
23FAIL can unset procs without -f
details
24FAIL procs shadow sh-funcs
details
25FAIL first word skips non-proc variables
details
26FAIL proc resolution changes with the local scope
details
27FAIL procs are defined in local scope
details
28FAIL declare -f -F only prints shell functions
details
29FAIL compgen -A function shows user-defined invokables - shell funcs, Proc, Obj
details
30FAIL type / type -a builtin on invokables - shell func, proc, invokable
details
31FAIL invokable Obj that doesn't declare self
details
32FAIL invokable Obj is called with self
details
33FAIL invokable Obj with more typed args
details
34FAIL two different objects can share the same __invoke__
details
35FAIL Stateful proc with counter
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 36 failed, 0 timeouts, 0 cases skipped
36 failed under osh

Details on runs that didn't PASS

osh0 Open proc (any number of args)

[osh stdout] Expected 'status=42\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh1 Closed proc with no args, passed too many

[osh stdout] Expected 'status=42\n', got ''
[osh status] Expected 3, got 1
[osh 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_
osh2 Open proc has ARGV

[osh stdout] Expected 'ARGV x y z\ndollar-at a b c\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh3 Closed proc has empty "$@" or ARGV

[osh stdout] Expected "params\nx\ny\nz\n['dollar-at', 'a', 'b', 'c']\n['ARGV']\n" Got ''
[osh status] Expected 0, got 1
[osh 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_
osh4 Proc with default args

[osh stdout] Expected 'x=foo\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh5 Proc with word params

[osh stdout] Expected 'a b c\nstatus=42\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh6 Proc with ... "rest" word params

[osh stdout] Expected 'names:\na\nb\nc\nstatus=0\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh7 word rest params 2

[osh stdout] Expected 'a\nb c\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh8 proc with typed args

[osh stdout] Expected '(Str) "WORD"\n(List) [1,2,3]\n(Dict) {"name":"bob"}\n---\n(Str) "x"\n(List) ["a","b"]\n(Dict) {"bob":42}\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh9 Proc name-with-hyphen

[osh stdout] Expected 'x y z\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh10 Proc with block arg

[osh stdout] Expected 'f word a b\nFFF\ng word a b\ng rest c d\nGGG\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh11 proc returning wrong type

[osh status] Expected 3, got 1
[osh 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_
osh12 proc returning invalid string

[osh 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_
osh13 'return' doesn't accept expressions

[osh status] Expected 2, got 1
[osh 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_
osh14 procs are in same namespace as variables

[osh stdout] Expected 'myproc is a Proc\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh15 Nested proc is allowed

[osh stdout] Expected 'G\n', got ''
[osh status] Expected 127, got 1
[osh 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_
osh16 Procs defined inside compound statements

[osh stdout] Expected 'loop\nbrace\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh17 Block can be passed literally, or as expression in third arg group

[osh stdout] Expected 'literal\nexpression\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh18 Pass through all 4 kinds of args

[osh stdout] Expected '(List) ["a","b"]\n(List) ["c","d"]\n(Dict) {"n":99}\nCommand\n\n(List) ["a","b"]\n(List) ["c","d"]\n(Dict) {"n":99}\nCommand\n\n' Got ''
[osh 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_
osh19 Global and local ARGV, like "$@"

[osh stdout] Expected "[]\n[]\n['a b', 'c']\n[]\n['1', '2 3']\n[]\n", got ''
[osh status] Expected 0, got 1
[osh 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_
osh20 Mutating global ARGV

[osh stdout] Expected "['global']\n['global', 'GG']\n", got ''
[osh status] Expected 0, got 1
[osh 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_
osh21 Mutating local ARGV

[osh stdout] Expected "['global', 'a b', 'c']\n['local', 'a b', 'c']\n['local', 'a b', 'c', 'LL']\n['global', 'a b', 'c']\n" Got ''
[osh status] Expected 0, got 1
[osh 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_
osh22 typed proc allows all kinds of args

[osh stdout] Expected '(Str) "word"\n(Int) 42\n(Int) 99\nCommand\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh23 can unset procs without -f

[osh stdout] Expected 'bar\nstatus=0\n<Proc>\nstatus=127\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh24 procs shadow sh-funcs

[osh stdout] Expected 'proc\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh25 first word skips non-proc variables

[osh stdout] Expected 'sh-func grep\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh26 proc resolution changes with the local scope

[osh stdout] Expected 'foo\nbar\nfoo\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh27 procs are defined in local scope

[osh stdout] Expected ' [frame_vars_] ARGV localproc\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh28 declare -f -F only prints shell functions

[osh stdout] Expected 'declare -f myfunc\n---\nstatus=1\nstatus=1\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh29 compgen -A function shows user-defined invokables - shell funcs, Proc, Obj

[osh stdout] Expected 'my-shell-func\nmyproc\n---\ndefine-inner\ninner\nmy-shell-func\nmyproc\n---\ndefine-inner\nmy-shell-func\nmyinvoke\nmyobj\nmyproc\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh30 type / type -a builtin on invokables - shell func, proc, invokable

[osh stdout] Expected 'function\nproc\ninvokable\n1\n---\nmy-shell-func is a shell function\nmyproc is a YSH proc\ninvokable is a YSH invokable\n1\n---\nmy-shell-func is a shell function\nmyproc is a YSH proc\ninvokable is a YSH invokable\n---\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh31 invokable Obj that doesn't declare self

[osh status] Expected 3, got 1
[osh 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_
osh32 invokable Obj is called with self

[osh stdout] Expected 'sum = 8\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh33 invokable Obj with more typed args

[osh stdout] Expected 'sum = 1\n(Dict) {"x":0,"y":1}\n(List) ["a","b",42,43]\n\nsum = 5\n(Obj) ("x":2,"y":3) --> ("__invoke__":<Proc>)\n(List) ["a","b",44,45]\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh34 two different objects can share the same __invoke__

[osh stdout] Expected 'sum = 9\nsum = 53\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh35 Stateful proc with counter

[osh stdout] Expected 'counter = 1\ncounter = 3\ncounter = 6\n', got ''
[osh status] Expected 0, got 1
[osh 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_