Move most wasmtime tests into one test suite (#1544)
* Move most wasmtime tests into one test suite This commit moves most wasmtime tests into a single test suite which gets compiled into one executable instead of having lots of test executables. The goal here is to reduce disk space on CI, and this should be achieved by having fewer executables which means fewer copies of `libwasmtime.rlib` linked across binaries on the system. More importantly though this means that DWARF debug information should only be in one executable rather than duplicated across many. * Share more build caches Globally set `RUSTFLAGS` to `-Dwarnings` instead of individually so all build steps share the same value. * Allow some dead code in cranelift-codegen Prevents having to fix all warnings for all possible feature combinations, only the main ones which come up. * Update some debug file paths
This commit is contained in:
2
tests/all/fuzzing/README.md
Normal file
2
tests/all/fuzzing/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
This directory contains `.wasm` binaries generated during fuzzing that uncovered
|
||||
a bug, and which we now use as regression tests in `../fuzzing.rs`.
|
||||
1
tests/all/fuzzing/empty.wat
Normal file
1
tests/all/fuzzing/empty.wat
Normal file
@@ -0,0 +1 @@
|
||||
(module)
|
||||
1
tests/all/fuzzing/empty_with_memory.wat
Normal file
1
tests/all/fuzzing/empty_with_memory.wat
Normal file
@@ -0,0 +1 @@
|
||||
(module (memory 1))
|
||||
49
tests/all/fuzzing/issue694.wat
Normal file
49
tests/all/fuzzing/issue694.wat
Normal file
@@ -0,0 +1,49 @@
|
||||
(module
|
||||
(type (;0;) (func))
|
||||
(type (;1;) (func (param i64)))
|
||||
(func (;0;) (type 0))
|
||||
(func (;1;) (type 0))
|
||||
(func (;2;) (type 0))
|
||||
(func (;3;) (type 0))
|
||||
(func (;4;) (type 1) (param i64)
|
||||
(local f32 f32 f32)
|
||||
loop (result i64) ;; label = @1
|
||||
global.get 0
|
||||
if ;; label = @2
|
||||
local.get 1
|
||||
return
|
||||
end
|
||||
block (result i64) ;; label = @2
|
||||
loop ;; label = @3
|
||||
block ;; label = @4
|
||||
global.get 0
|
||||
if ;; label = @5
|
||||
i32.const 5
|
||||
if (result f32) ;; label = @6
|
||||
block (result f32) ;; label = @7
|
||||
call 0
|
||||
i32.const 7
|
||||
if (result f32) ;; label = @8
|
||||
local.get 2
|
||||
else
|
||||
f32.const 0x1p+0 (;=1;)
|
||||
end
|
||||
end
|
||||
else
|
||||
f32.const 0x1p+0 (;=1;)
|
||||
end
|
||||
local.tee 1
|
||||
local.set 3
|
||||
end
|
||||
end
|
||||
end
|
||||
i32.const 8
|
||||
br_if 1 (;@1;)
|
||||
i64.const 4
|
||||
end
|
||||
end
|
||||
return)
|
||||
(memory (;0;) 1)
|
||||
(global (;0;) i32 (i32.const 0))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user