Commit e870b63b authored by nagayama15's avatar nagayama15

Improve test

parent 25744852
......@@ -5,6 +5,10 @@ add_executable(test_kyut
kyut/watermarker/test_FunctionOrderingWatermarker.cpp
)
target_compile_definitions(test_kyut
PRIVATE KYUT_TEST_SOURCE_DIR="${CMAKE_SOURCE_DIR}"
)
target_link_libraries(test_kyut
kyut
)
......@@ -10,9 +10,9 @@ BOOST_AUTO_TEST_SUITE(kyut)
BOOST_AUTO_TEST_SUITE(watermarker)
BOOST_AUTO_TEST_CASE(function_ordering_watermarker) {
BOOST_AUTO_TEST_CASE(embed_function_ordering) {
wasm::Module module;
wasm::ModuleReader{}.read("../example/test1.wast", module);
wasm::ModuleReader{}.read(KYUT_TEST_SOURCE_DIR "/example/test1.wast", module);
BOOST_REQUIRE_EQUAL(module.functions.size(), std::size_t{6});
BOOST_REQUIRE_EQUAL(module.functions[0]->name, "g1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment