Skip to content

Commit

Permalink
Update grpc-testtool README with specifics (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris authored Dec 13, 2023
1 parent b03a225 commit e107c6e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions grpc-testtool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,29 @@ There are 3 RPC specs that must be implemented:
2. The sync proto, which supports retrieving range and change proofs
3. The process-server proto, which currently only retrieves metrics

# Running

To run a single test and make sure things are working, first check out and build the go and rust code.
These have to be in the same directory. See the corresponding README for specific build requirements.

```sh
BASE=$HOME
cd $BASE && git clone git@github.com:ava-labs/merkledb-tester.git
cd $BASE && git clone git@github.com:ava-labs/firewood.git
```

Then, build the rust process server and symlink it to where the testtool expects it:

```sh
cd $BASE/firewood
cargo build --release
ln -sf $BASE/firewood/target/release/process-server $BASE/merkledb-tester/process/process-server
```

Then, run the test you want:

```sh
cd $BASE/merkledb-tester
go test -timeout 2m -run TestConsistency github.com/ava-labs/merkledb-tester/tests/consistency -v
go test -timeout 2m -run TestPutPerformance github.com/ava-labs/merkledb-tester/tests/performance -v
```

0 comments on commit e107c6e

Please sign in to comment.