Results for hay.test.sh

statusoshosh_ALT
pass 1919
FAIL 22
total2121
caseoshosh_ALTdescription
0pass pass use bin
1pass pass use dialect
2pass pass hay builtin usage
3pass pass hay reset
4pass pass hay eval can't be nested
5pass pass hay names at top level
6pass pass Parsing Nested Attributes nodes (bug fix)
7pass pass hay eval attr node, and JSON
8pass pass hay eval shell node, and JSON
9pass pass _hay() register
10pass pass haynode builtin can define nodes
11pass pass haynode: usage errors (name or block required)
12pass pass haynode: shell nodes require block args; attribute nodes don't
13pass pass hay eval with shopt -s oil:all
14pass pass Scope of Variables Inside Hay Blocks
15pass pass hay define and then an error
16pass pass parse_hay()
17pass pass Code Blocks: parse_hay() then shvar _DIALECT= { eval_hay() }
18pass pass Attribute / Data Blocks (package-manager)
19FAIL FAIL Typed Args to Hay Node
detailsdetails
20FAIL FAIL OSH and hay (dynamic parsing)
detailsdetails
38 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh19 Typed Args to Hay Node

[osh status] Expected 0, got 2

stdout:
stderr: 
  when NAME (x > 0) {
            ^
[ stdin ]:6: 'when' Too many typed args (expected one block)
[ stdin ]:6: errexit PID 28775: command.Simple failed with status 2
osh_ALT19 Typed Args to Hay Node

[osh_ALT status] Expected 0, got 2

stdout:
stderr: 
  when NAME (x > 0) {
            ^
[ stdin ]:6: 'when' Too many typed args (expected one block)
[ stdin ]:6: errexit PID 28836: command.Simple failed with status 2
osh20 OSH and hay (dynamic parsing)

[osh stdout] Expected "backticks\neval\nTYPE TASK\nCODE \n echo `echo task backticks`\n eval 'echo task eval'\n ___\n" Got 'backticks\neval\n'
[osh status] Expected 0, got 3

stdout:
backticks
eval
stderr:
  const children = _hay()->children[0]->children
                           ^~~~~~~~
'/home/andy/git/oilshell/oil/spec/testdata/config/osh-hay.osh':27: fatal: Method 'children' does not exist on 10
  source $REPO_ROOT/spec/testdata/config/osh-hay.osh
  ^~~~~~
[ stdin ]:1: errexit PID 28867: command.Simple failed with status 3
osh_ALT20 OSH and hay (dynamic parsing)

[osh_ALT stdout] Expected "backticks\neval\nTYPE TASK\nCODE \n echo `echo task backticks`\n eval 'echo task eval'\n ___\n" Got 'backticks\neval\n'
[osh_ALT status] Expected 0, got 3

stdout:
backticks
eval
stderr:
  const children = _hay()->children[0]->children
                           ^~~~~~~~
'/home/andy/git/oilshell/oil/test/../spec/testdata/config/osh-hay.osh':27: fatal: Method 'children' does not exist on 10
  source $REPO_ROOT/spec/testdata/config/osh-hay.osh
  ^~~~~~
[ stdin ]:1: errexit PID 28922: command.Simple failed with status 3