test: add 8 client fuzz text test

This commit is contained in:
Zixuan Chen 2022-10-22 23:33:25 +08:00
parent 7284301ce8
commit 0cd16d6e4b
3 changed files with 14 additions and 1 deletions

View file

@ -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

View 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) });

View file

@ -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