Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
wasm-watermarker
Commits
e870b63b
Commit
e870b63b
authored
Jul 11, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve test
parent
25744852
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
CMakeLists.txt
test/CMakeLists.txt
+4
-0
test_FunctionOrderingWatermarker.cpp
test/kyut/watermarker/test_FunctionOrderingWatermarker.cpp
+2
-2
No files found.
test/CMakeLists.txt
View file @
e870b63b
...
...
@@ -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
)
test/kyut/watermarker/test_FunctionOrderingWatermarker.cpp
View file @
e870b63b
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment