From e107c6e40e1814c31e364dba418fef6a8811db80 Mon Sep 17 00:00:00 2001 From: Ron Kuris Date: Wed, 13 Dec 2023 14:59:51 -0800 Subject: [PATCH] Update grpc-testtool README with specifics (#428) --- grpc-testtool/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/grpc-testtool/README.md b/grpc-testtool/README.md index 4733395b5..003f72d1b 100644 --- a/grpc-testtool/README.md +++ b/grpc-testtool/README.md @@ -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 +```