Module wasi_test_generator::wasitests

source ยท
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ยง

Constantsยง

Functionsยง

  • compile ๐Ÿ”’
    Returns the a Vec of the test modules created
  • compile the Wasm file for the given version of WASI
  • Pulls args to the program out of a comment at the top of the file starting with โ€œ// WasiOptions:โ€
  • Compile and execute the test file as native code, saving the results to be compared against later.