Add malformed test cases (#3459)

This commit is contained in:
Zhang, Yi
2024-05-21 16:38:34 +08:00
committed by GitHub
parent 15d191943a
commit 591a20b917
53 changed files with 72 additions and 2 deletions

18
tests/malformed/README.md Normal file
View File

@ -0,0 +1,18 @@
# Malformed Test Cases
This folder contains malformed test cases collected from github and peach fuzzer. More cases should be added to here when found.
# Note
Malformed tests are currently for testing running mode of interpreter including classic interpreter and fast interpreter.
# Test
Use the provided python script to test a wasm runtime:
``` shell
python malformed_test.py -r "path/to/runtime"
```
For example you can test wasmtime with:
``` shell
python malformed_test.py -r "/usr/bin/wasmtime"
```
If no args is passed to the script, the default runtime `/usr/bin/iwasm` will be used.