Skip to content

Commit 64f03a3

Browse files
committed
Move local test to CLI test
1 parent 1344086 commit 64f03a3

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

tests/local/component-model/component-model-fixed-size-list/fixed-size-list.wast renamed to tests/cli/component-model/fixed-size-list.wast

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
;; RUN: wast % --assert default --snapshot tests/snapshots -f cm-fixed-size-list
2+
13
(component
24
(core module $m
35
(memory (export "memory") 1)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"source_filename": "tests/cli/component-model/fixed-size-list.wast",
3+
"commands": [
4+
{
5+
"type": "module",
6+
"line": 3,
7+
"filename": "fixed-size-list.0.wasm",
8+
"module_type": "binary"
9+
},
10+
{
11+
"type": "module",
12+
"line": 15,
13+
"filename": "fixed-size-list.1.wasm",
14+
"module_type": "binary"
15+
}
16+
]
17+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(component
2+
(core module $m (;0;)
3+
(type (;0;) (func (result i32)))
4+
(memory (;0;) 1)
5+
(export "memory" (memory 0))
6+
(export "ret-list" (func 0))
7+
(func (;0;) (type 0) (result i32)
8+
unreachable
9+
)
10+
)
11+
(core instance $i (;0;) (instantiate $m))
12+
(type (;0;) (list u32 4))
13+
(type (;1;) (func (result 0)))
14+
(alias core export $i "ret-list" (core func (;0;)))
15+
(alias core export $i "memory" (core memory (;0;)))
16+
(func (;0;) (type 1) (canon lift (core func 0) (memory 0)))
17+
(export (;1;) "ret-list" (func 0))
18+
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
(component
2+
(core module $m (;0;)
3+
(type (;0;) (func (param i32 i32 i32 i32)))
4+
(export "param-list" (func 0))
5+
(func (;0;) (type 0) (param i32 i32 i32 i32)
6+
unreachable
7+
)
8+
)
9+
(core instance $i (;0;) (instantiate $m))
10+
(type (;0;) (list u32 4))
11+
(type (;1;) (func (param "l" 0)))
12+
(alias core export $i "param-list" (core func (;0;)))
13+
(func (;0;) (type 1) (canon lift (core func 0)))
14+
(export (;1;) "param-list" (func 0))
15+
)

0 commit comments

Comments
 (0)