-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wasm-mutator-fuzz test #3420
Conversation
Hope #3428 can fix failures. |
-fprofile-instr-generate -fcoverage-mapping \ | ||
-fsanitize=address,undefined,fuzzer") | ||
|
||
include(${REPO_ROOT_DIR}/wamr/core/shared/utils/uncommon/shared_uncommon.cmake) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include(${REPO_ROOT_DIR}/wamr/core/shared/utils/uncommon/shared_uncommon.cmake) | |
include(${REPO_ROOT_DIR}/core/shared/utils/uncommon/shared_uncommon.cmake) |
-fsanitize=address,undefined,fuzzer") | ||
|
||
include(${REPO_ROOT_DIR}/wamr/core/shared/utils/uncommon/shared_uncommon.cmake) | ||
include(${REPO_ROOT_DIR}/wamr/build-scripts/runtime_lib.cmake) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include(${REPO_ROOT_DIR}/wamr/build-scripts/runtime_lib.cmake) | |
include(${REPO_ROOT_DIR}/build-scripts/runtime_lib.cmake) |
Maybe just mine, but still, please be awarded of my compilation error # use default configuration
$ cmake -S . -B build
$ cmake --build build
...
wasm_mutator_fuzz.cc:33:10: fatal error: 'iostream' file not found
#include <iostream>
^~~~~~~~~~ |
Let me take a try. I also encountered an issue of running wasm mutator server. |
fixed by |
|
||
for((i=1; i<($@+1); i++)); | ||
do | ||
head -c 100 /dev/urandom | wasm-tools smith -o test_$i.wasm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here. wasm-tools smith
only generates simplest .wasm. Do u think we should use other smith options, like --bulk-memory-enabled
, --exceptions-enabled
, --gc-enabled
, to make generations more complex?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -0,0 +1,133 @@ | |||
// Copyright (C) 2019 Intel Corporation. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is duplicated with wasm_mutator_fuzz.cc
in parent folder, do we need to keep both files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one in workspace is for docker building, the one in /wasm-mutator-fuzz is for manually build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, Thanks~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.