Add build instructions for tests and benchmarks

Signed-off-by: Contrary <liang.jingchao@zte.com.cn>
This commit is contained in:
Contrary 2025-03-20 22:09:36 +08:00
parent db5df83eb9
commit 5165d0b70a

View File

@ -99,6 +99,12 @@ Build 3FS in `build` folder:
cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang-14 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build -j 32
### Build tests && benchmarks
Build `tests` requires you to add the `-DWITH_TESTS` option to the cmake in the first step above.
For `benchmarks`, it's -DWITH_BENCHMARKS.
## Run a test cluster
Follow instructions in [setup guide](deploy/README.md) to run a test cluster.