#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 ("Testing wasm <memory_grow_0_wasm>", "[memory_grow_0_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_1_wasm>", "[memory_grow_1_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_2_wasm>", "[memory_grow_2_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_3_wasm>", "[memory_grow_3_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_4_wasm>", "[memory_grow_4_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_5_wasm>", "[memory_grow_5_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_6_wasm>", "[memory_grow_6_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_7_wasm>", "[memory_grow_7_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_8_wasm>", "[memory_grow_8_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <memory_grow_9_wasm>", "[memory_grow_9_wasm_tests]") |
|
◆ BACKEND_TEST_CASE() [1/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_0_wasm>" | , |
|
|
"" | [memory_grow_0_wasm_tests] ) |
Definition at line 18 of file memory_grow_tests.cpp.
18 {
20 auto code =
read_wasm( std::string(wasm_directory) +
"memory_grow.0.wasm");
22
43}
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)
#define CHECK_THROWS_AS(expr, exceptionType)
std::vector< uint8_t > read_wasm(const std::string &fname)
◆ BACKEND_TEST_CASE() [2/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_1_wasm>" | , |
|
|
"" | [memory_grow_1_wasm_tests] ) |
◆ BACKEND_TEST_CASE() [3/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_2_wasm>" | , |
|
|
"" | [memory_grow_2_wasm_tests] ) |
◆ BACKEND_TEST_CASE() [4/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_3_wasm>" | , |
|
|
"" | [memory_grow_3_wasm_tests] ) |
◆ BACKEND_TEST_CASE() [5/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_4_wasm>" | , |
|
|
"" | [memory_grow_4_wasm_tests] ) |
◆ BACKEND_TEST_CASE() [6/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_5_wasm>" | , |
|
|
"" | [memory_grow_5_wasm_tests] ) |
Definition at line 137 of file memory_grow_tests.cpp.
137 {
139 auto code =
read_wasm( std::string(wasm_directory) +
"memory_grow.5.wasm");
141}
sysio::vm::backend< rhf_t > backend_t
◆ BACKEND_TEST_CASE() [7/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_6_wasm>" | , |
|
|
"" | [memory_grow_6_wasm_tests] ) |
◆ BACKEND_TEST_CASE() [8/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_7_wasm>" | , |
|
|
"" | [memory_grow_7_wasm_tests] ) |
◆ BACKEND_TEST_CASE() [9/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_8_wasm>" | , |
|
|
"" | [memory_grow_8_wasm_tests] ) |
◆ BACKEND_TEST_CASE() [10/10]
BACKEND_TEST_CASE |
( |
"Testing wasm <memory_grow_9_wasm>" | , |
|
|
"" | [memory_grow_9_wasm_tests] ) |
◆ wa