Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Apr 24, 2024
1 parent 7986ead commit 38b8d08
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ GT_KAFKA_ENDPOINTS = localhost:9092

# Setting for fuzz tests
GT_MYSQL_ADDR = localhost:4002

# Setting for usntable fuzz tests
GT_FUZZ_BINARY_PATH=/home/weny/Projects/greptimedb/target/debug/greptime
19 changes: 19 additions & 0 deletions tests-fuzz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ cargo install cargo-fuzz
2. Start GreptimeDB
3. Copy the `.env.example`, which is at project root, to `.env` and change the values on need.

### For stable fuzz tests
Set the GreptimeDB MySQL address.
```
GT_MYSQL_ADDR = localhost:4002
```

### For unstable fuzz tests
Set the binary path of the GreptimeDB:
```
GT_FUZZ_BINARY_PATH = /path/to/
```

Change the instance root directory(the default value: `/tmp/unstable_greptime/`)
```
GT_FUZZ_BINARY_PATH = /path/to/
```



## Run
1. List all fuzz targets
```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async fn execute_unstable_create_table(

loop {
let sql = "DROP DATABASE IF EXISTS public";
match sqlx::query(&sql).execute(&ctx.greptime).await {
match sqlx::query(sql).execute(&ctx.greptime).await {
Ok(result) => {
info!("Drop table: {}, result: {result:?}", sql);
break;
Expand Down

0 comments on commit 38b8d08

Please sign in to comment.