Update docs for testing

This commit is contained in:
mio
2025-01-04 15:41:05 +08:00
parent 77d64c05c2
commit 9e35265a97
2 changed files with 16 additions and 0 deletions

13
docs/Testing.md Normal file
View File

@@ -0,0 +1,13 @@
# Testing in Unicorn
Unicorn focus on the testing to reduce bugs and ensure the expected behaviors. The `tests/` directory contains a few subdirectories for testing purposes.
- `unit/`: C unit tests since Unicorn 2.
- `regress/`: The regression tests written in Python and C, imported from Unicorn 1.
- `rust-tests/`: The tests written in rust.
- `fuzz/`: The fuzz drivers for OSS-Fuzz.
- `benchmarks/`: The benchmark suite imported from Unicorn 1.
## Contribution Guide
Generally, it is ideal to add new tests whenever a PR is made. `unit/` should be the first place for the new tests to go.

3
tests/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Testing
See [this](../docs/Testing.md)