Expand description
This file will run at build time to autogenerate the WASI regression tests It will compile the files indicated in TESTS, to:executable and .wasm
- Compile with the native rust target to get the expected output
- Compile with the latest WASI target to get the wasm
- Generate the test that will compare the output of running the .wasm file with wasmer with the expected output
Structsยง
- Native
Output - Wasi
Options - The options provied when executed a WASI Wasm program
- Wasi
Test - This is the structure of the
.wast
file
Constantsยง
- WASI_
TEST_ ๐SRC_ DIR
Functionsยง
- build
- compile ๐
- Returns the a Vec of the test modules created
- compile_
wasm_ ๐for_ version - compile the Wasm file for the given version of WASI
- extract_
args_ ๐from_ source_ file - Pulls args to the program out of a comment at the top of the file starting with โ// WasiOptions:โ
- generate_
native_ ๐output - Compile and execute the test file as native code, saving the results to be compared against later.