Results for func-parsing.test.sh

casedashbashmkshoshosh_ALTosh-byterundescription
0pass pass BUG pass pass FAIL Incomplete Function
detailsdetails
1pass pass ok pass pass FAIL Incomplete Function 2
detailsdetails
2pass pass ok pass pass FAIL Bad function
detailsdetails
3pass ok pass ok ok FAIL Unbraced function body.
detailsdetailsdetailsdetails
4pass pass pass pass pass FAIL Function with spaces, to see if ( and ) are separate tokens.
details
5pass pass pass pass pass FAIL subshell function
details
6pass pass pass pass pass FAIL Hard case, function with } token in it
details
7ok pass pass pass pass FAIL . in function name
detailsdetails
8ok pass ok pass pass FAIL = in function name
detailsdetailsdetails
9pass ok ok pass pass FAIL Function name with $
detailsdetailsdetails
10ok pass pass pass pass FAIL Function name with !
detailsdetails
11ok pass pass pass pass FAIL Function name with -
detailsdetails
12pass pass pass pass pass FAIL Break after ) is OK.
details
13pass pass pass pass pass FAIL Nested definition
details

57 passed, 12 ok, 0 known unimplemented, 1 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

mksh0 Incomplete Function

stdout:
stderr: 
osh-byterun0 Incomplete Function

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
mksh1 Incomplete Function 2

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[2]: syntax error: '{' unmatched
osh-byterun1 Incomplete Function 2

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
mksh2 Bad function

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'ls' unexpected
osh-byterun2 Bad function

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
bash3 Unbraced function body.

stdout:
stderr: 
_tmp/spec-bin/bash: line 1: syntax error near unexpected token `ls'
_tmp/spec-bin/bash: line 1: `one_line() ls; one_line;'
osh3 Unbraced function body.

stdout:
stderr: 
Line 1 of '<stdin>'
  one_line() ls; one_line;
             ^~
Unexpected word while parsing compound command
osh_ALT3 Unbraced function body.

stdout:
stderr: 
Line 1 of '<stdin>'
  one_line() ls; one_line;
             ^~
Unexpected word while parsing compound command
osh-byterun3 Unbraced function body.

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun4 Function with spaces, to see if ( and ) are separate tokens.

[osh-byterun stdout] Expected 'in-func\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun5 subshell function

[osh-byterun stdout] Expected '5 0\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun6 Hard case, function with } token in it

[osh-byterun stdout] Expected '}\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash7 . in function name

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: Bad function name
osh-byterun7 . in function name

[osh-byterun stdout] Expected 'func-name.ext\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash8 = in function name

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: Bad function name
mksh8 = in function name

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: func-name=ext: invalid function name
osh-byterun8 = in function name

[osh-byterun stdout] Expected 'func-name=ext\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
bash9 Function name with $

stdout:
stderr: 
_tmp/spec-bin/bash: line 1: `foo$bar': not a valid identifier
mksh9 Function name with $

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: foo$bar: invalid function name
osh-byterun9 Function name with $

[osh-byterun status] Expected 2, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash10 Function name with !

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: Bad function name
osh-byterun10 Function name with !

[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
dash11 Function name with -

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: Bad function name
osh-byterun11 Function name with -

[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun12 Break after ) is OK.

[osh-byterun stdout] Expected u'hi\nin-func\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend
osh-byterun13 Nested definition

[osh-byterun stdout] Expected 'nested\n', got ''
[osh-byterun status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module>
    from frontend import args
ImportError: No module named frontend