Results for hay.test.sh

statusoshosh-cpp
pass 2525
FAIL 33
total2828
caseoshosh-cppdescription
0pass pass hay builtin usage
1pass pass hay reset
2pass pass hay eval can't be nested
3pass pass hay names at top level
4pass pass Parsing Nested Attributes nodes (bug fix)
5pass pass hay eval Attr node, and JSON
6pass pass hay eval shell node, and JSON
7pass pass _hay() register
8pass pass haynode builtin can define nodes
9pass pass haynode: usage errors (name or block required)
10pass pass haynode: shell nodes require block args; attribute nodes don't
11pass pass hay eval with shopt -s ysh:all
12pass pass Attr block with duplicate names
13pass pass Scope of Variables Inside Hay Blocks
14pass pass Nested bare assignment
15pass pass Param with same name as Hay attribute
16pass pass hay define and then an error
17pass pass parseHay()
18pass pass Code Blocks: parseHay() then shvar _DIALECT= { evalHay() }
19pass pass evalHay() usage
20pass pass Attribute / Data Blocks (package-manager)
21FAIL FAIL Typed Args to Hay Node
detailsdetails
22pass pass OSH and hay (dynamic parsing)
23FAIL FAIL CODE node provides code_str, serialized code - issue #2050
detailsdetails
24FAIL FAIL Proc within Hay node
detailsdetails
25pass pass Using Hay node from another module
26pass pass Defining Hay node in another module
27pass pass Using Hay with --eval flags
50 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh21 Typed Args to Hay Node

[osh status] Expected 0, got 3

stdout:
stderr: 
  when NAME [x > 0] {
             ^
[ stdin ]:6: fatal: Expected 0 typed args, but got 1
osh-cpp21 Typed Args to Hay Node

[osh-cpp status] Expected 0, got 3

stdout:
stderr: 
  when NAME [x > 0] {
             ^
[ stdin ]:6: fatal: Expected 0 typed args, but got 1
osh23 CODE node provides code_str, serialized code - issue #2050

[osh stdout] Expected '', got "(Dict)\n{\n source: null,\n children: [\n {\n type: 'Package',\n args: [],\n children: [\n {\n type: 'INSTALL',\n args: [],\n location_str: '[ stdin ]',\n location_start_line: 8,\n code_str: b' \\n\\n cd dist {\\n ./install\\n }\\n '\n }\n ],\n attrs: {name: 'osh'}\n }\n ]\n}\n"

stdout:
(Dict)
{
    source: null,
    children: [
        {
            type: 'Package',
            args: [],
            children: [
                {
                    type: 'INSTALL',
                    args: [],
                    location_str: '[ stdin ]',
                    location_start_line: 8,
                    code_str: b'           \n\n    cd dist {\n      ./install\n    }\n  '
                }
            ],
            attrs: {name: 'osh'}
        }
    ]
}
stderr:
osh-cpp23 CODE node provides code_str, serialized code - issue #2050

[osh-cpp stdout] Expected '', got "(Dict)\n{\n source: null,\n children: [\n {\n type: 'Package',\n args: [],\n children: [\n {\n type: 'INSTALL',\n args: [],\n location_str: '[ stdin ]',\n location_start_line: 8,\n code_str: b' \\n\\n cd dist {\\n ./install\\n }\\n '\n }\n ],\n attrs: {name: 'osh'}\n }\n ]\n}\n"

stdout:
(Dict)
{
    source: null,
    children: [
        {
            type: 'Package',
            args: [],
            children: [
                {
                    type: 'INSTALL',
                    args: [],
                    location_str: '[ stdin ]',
                    location_start_line: 8,
                    code_str: b'           \n\n    cd dist {\n      ./install\n    }\n  '
                }
            ],
            attrs: {name: 'osh'}
        }
    ]
}
stderr:
osh24 Proc within Hay node

[osh stdout] Expected '', got "(Dict)\n{\n source: null,\n children: [\n {\n type: 'Package',\n args: ['cpython'],\n children: [],\n attrs: {version: '3.11', build: <Proc 0x7fd7758b6680>}\n }\n ]\n}\n<Proc 0x7fd7758b6680>\nversion=3.11\n"
[osh status] Expected 0, got 127

stdout:
(Dict)
{
    source: null,
    children: [
        {
            type: 'Package',
            args: ['cpython'],
            children: [],
            attrs: {version: '3.11', build: <Proc 0x7fd7758b6680>}
        }
    ]
}
<Proc 0x7fd7758b6680>
version=3.11
stderr:
      make
      ^~~~
[ stdin ]:10: Command 'make' not found (OILS-ERR-100)
[ stdin ]:10: errexit PID 29773: Command failed with status 127
osh-cpp24 Proc within Hay node

[osh-cpp stdout] Expected '', got "(Dict)\n{\n source: null,\n children: [\n {\n type: 'Package',\n args: ['cpython'],\n children: [],\n attrs: {version: '3.11', build: <Proc 0xb30>}\n }\n ]\n}\n<Proc 0xb30>\nversion=3.11\n"
[osh-cpp status] Expected 0, got 127

stdout:
(Dict)
{
    source: null,
    children: [
        {
            type: 'Package',
            args: ['cpython'],
            children: [],
            attrs: {version: '3.11', build: <Proc 0xb30>}
        }
    ]
}
<Proc 0xb30>
version=3.11
stderr:
      make
      ^~~~
[ stdin ]:10: Command 'make' not found (OILS-ERR-100)
[ stdin ]:10: errexit PID 29788: Command failed with status 127