#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 <loop_0_wasm>", "[loop_0_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_1_wasm>", "[loop_1_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_10_wasm>", "[loop_10_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_11_wasm>", "[loop_11_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_12_wasm>", "[loop_12_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_2_wasm>", "[loop_2_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_3_wasm>", "[loop_3_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_4_wasm>", "[loop_4_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_5_wasm>", "[loop_5_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_6_wasm>", "[loop_6_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_7_wasm>", "[loop_7_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_8_wasm>", "[loop_8_wasm_tests]") |
|
| BACKEND_TEST_CASE ("Testing wasm <loop_9_wasm>", "[loop_9_wasm_tests]") |
|
◆ BACKEND_TEST_CASE() [1/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_0_wasm>" | , |
|
|
"" | [loop_0_wasm_tests] ) |
Definition at line 18 of file loop_tests.cpp.
18 {
20 auto code =
read_wasm( std::string(wasm_directory) +
"loop.0.wasm");
22
89}
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/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_10_wasm>" | , |
|
|
"" | [loop_10_wasm_tests] ) |
Definition at line 97 of file loop_tests.cpp.
97 {
99 auto code =
read_wasm( std::string(wasm_directory) +
"loop.10.wasm");
101}
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
◆ BACKEND_TEST_CASE() [3/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_11_wasm>" | , |
|
|
"" | [loop_11_wasm_tests] ) |
Definition at line 103 of file loop_tests.cpp.
103 {
105 auto code =
read_wasm( std::string(wasm_directory) +
"loop.11.wasm");
107}
◆ BACKEND_TEST_CASE() [4/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_12_wasm>" | , |
|
|
"" | [loop_12_wasm_tests] ) |
Definition at line 109 of file loop_tests.cpp.
109 {
111 auto code =
read_wasm( std::string(wasm_directory) +
"loop.12.wasm");
113}
◆ BACKEND_TEST_CASE() [5/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_1_wasm>" | , |
|
|
"" | [loop_1_wasm_tests] ) |
Definition at line 91 of file loop_tests.cpp.
91 {
93 auto code =
read_wasm( std::string(wasm_directory) +
"loop.1.wasm");
95}
◆ BACKEND_TEST_CASE() [6/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_2_wasm>" | , |
|
|
"" | [loop_2_wasm_tests] ) |
Definition at line 115 of file loop_tests.cpp.
115 {
117 auto code =
read_wasm( std::string(wasm_directory) +
"loop.2.wasm");
119}
◆ BACKEND_TEST_CASE() [7/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_3_wasm>" | , |
|
|
"" | [loop_3_wasm_tests] ) |
Definition at line 121 of file loop_tests.cpp.
121 {
123 auto code =
read_wasm( std::string(wasm_directory) +
"loop.3.wasm");
125}
◆ BACKEND_TEST_CASE() [8/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_4_wasm>" | , |
|
|
"" | [loop_4_wasm_tests] ) |
Definition at line 127 of file loop_tests.cpp.
127 {
129 auto code =
read_wasm( std::string(wasm_directory) +
"loop.4.wasm");
131}
◆ BACKEND_TEST_CASE() [9/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_5_wasm>" | , |
|
|
"" | [loop_5_wasm_tests] ) |
Definition at line 133 of file loop_tests.cpp.
133 {
135 auto code =
read_wasm( std::string(wasm_directory) +
"loop.5.wasm");
137}
◆ BACKEND_TEST_CASE() [10/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_6_wasm>" | , |
|
|
"" | [loop_6_wasm_tests] ) |
Definition at line 139 of file loop_tests.cpp.
139 {
141 auto code =
read_wasm( std::string(wasm_directory) +
"loop.6.wasm");
143}
◆ BACKEND_TEST_CASE() [11/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_7_wasm>" | , |
|
|
"" | [loop_7_wasm_tests] ) |
Definition at line 145 of file loop_tests.cpp.
145 {
147 auto code =
read_wasm( std::string(wasm_directory) +
"loop.7.wasm");
149}
◆ BACKEND_TEST_CASE() [12/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_8_wasm>" | , |
|
|
"" | [loop_8_wasm_tests] ) |
Definition at line 151 of file loop_tests.cpp.
151 {
153 auto code =
read_wasm( std::string(wasm_directory) +
"loop.8.wasm");
155}
◆ BACKEND_TEST_CASE() [13/13]
BACKEND_TEST_CASE |
( |
"Testing wasm <loop_9_wasm>" | , |
|
|
"" | [loop_9_wasm_tests] ) |
Definition at line 157 of file loop_tests.cpp.
157 {
159 auto code =
read_wasm( std::string(wasm_directory) +
"loop.9.wasm");
161}
◆ wa