#include <algorithm>
#include <vector>
#include <iostream>
#include <iterator>
#include <cmath>
#include <cstdlib>
#include <catch2/catch.hpp>
#include <utils.hpp>
#include <wasm_config.hpp>
#include <sysio/vm/backend.hpp>
Go to the source code of this file.
◆ BACKEND_TEST_CASE() [1/5]
BACKEND_TEST_CASE |
( |
"Testing wasm <nop_0_wasm>" | , |
|
|
"" | [nop_0_wasm_tests] ) |
Definition at line 18 of file nop_tests.cpp.
18 {
20 auto code =
read_wasm( std::string(wasm_directory) +
"nop.0.wasm");
22
106}
auto call_with_return(host_t &host, const std::string_view &mod, const std::string_view &func, Args... args)
backend_t bkend(hello_wasm, ehm, &wa)
std::vector< uint8_t > read_wasm(const std::string &fname)
◆ BACKEND_TEST_CASE() [2/5]
BACKEND_TEST_CASE |
( |
"Testing wasm <nop_1_wasm>" | , |
|
|
"" | [nop_1_wasm_tests] ) |
Definition at line 108 of file nop_tests.cpp.
108 {
110 auto code =
read_wasm( std::string(wasm_directory) +
"nop.1.wasm");
112}
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
◆ BACKEND_TEST_CASE() [3/5]
BACKEND_TEST_CASE |
( |
"Testing wasm <nop_2_wasm>" | , |
|
|
"" | [nop_2_wasm_tests] ) |
Definition at line 114 of file nop_tests.cpp.
114 {
116 auto code =
read_wasm( std::string(wasm_directory) +
"nop.2.wasm");
118}
◆ BACKEND_TEST_CASE() [4/5]
BACKEND_TEST_CASE |
( |
"Testing wasm <nop_3_wasm>" | , |
|
|
"" | [nop_3_wasm_tests] ) |
Definition at line 120 of file nop_tests.cpp.
120 {
122 auto code =
read_wasm( std::string(wasm_directory) +
"nop.3.wasm");
124}
◆ BACKEND_TEST_CASE() [5/5]
BACKEND_TEST_CASE |
( |
"Testing wasm <nop_4_wasm>" | , |
|
|
"" | [nop_4_wasm_tests] ) |
Definition at line 126 of file nop_tests.cpp.
126 {
128 auto code =
read_wasm( std::string(wasm_directory) +
"nop.4.wasm");
130}
◆ wa