mirror of
https://github.com/loro-dev/loro.git
synced 2024-11-28 17:41:49 +00:00
test: add 8 client fuzz text test
This commit is contained in:
parent
7284301ce8
commit
0cd16d6e4b
3 changed files with 14 additions and 1 deletions
|
@ -41,3 +41,9 @@ name = "two_client_text"
|
|||
path = "fuzz_targets/two_client_text.rs"
|
||||
test = false
|
||||
doc = false
|
||||
|
||||
[[bin]]
|
||||
name = "text"
|
||||
path = "fuzz_targets/text.rs"
|
||||
test = false
|
||||
doc = false
|
||||
|
|
5
crates/loro-core/fuzz/fuzz_targets/text.rs
Normal file
5
crates/loro-core/fuzz/fuzz_targets/text.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
#![no_main]
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
use loro_core::fuzz::{test_multi_sites, Action};
|
||||
|
||||
fuzz_target!(|actions: Vec<Action>| { test_multi_sites(8, actions) });
|
|
@ -21,7 +21,9 @@ fuzz-yata-long:
|
|||
cargo fuzz run yata -- -max_total_time=300 -max_len=4000 -jobs=2
|
||||
|
||||
quick-fuzz:
|
||||
cargo fuzz run single_client_text -- -max_total_time=10 -max_len=1000 & cargo fuzz run yata -- -max_total_time=10 -max_len=1000
|
||||
cargo fuzz run single_client_text -- -max_total_time=10 -max_len=1000 &
|
||||
cargo fuzz run yata -- -max_total_time=10 -max_len=1000 &
|
||||
cargo fuzz run two_client_text -- -max_total_time=10 -max_len=1000
|
||||
|
||||
flame:
|
||||
cargo flamegraph --example test --features=fuzzing --root
|
||||
|
|
Loading…
Reference in a new issue