Commit 6ac6b687 authored by gejun's avatar gejun

Update run-tests section

parent 9f61b4c8
......@@ -23,7 +23,7 @@ $ make
```
to change compiler to clang, add `--cxx=clang++ --cc=clang`.
### run example
### Run example
```
$ cd example/echo_c++
......@@ -33,12 +33,18 @@ $ ./echo_client
```
Examples link brpc statically, if you need to link the shared version, `make clean` and `LINK_SO=1 make`
To run examples with cpu/heap profilers, install `libgoogle-perftools-dev` and re-run `config_brpc.sh` before compiling
To run examples with cpu/heap profilers, install `libgoogle-perftools-dev` and re-run `config_brpc.sh` before compiling.
### compile tests
Install libgtest-dev
### Run tests
Install libgtest-dev (which is not compiled yet) and run:
Rerun config_brpc.sh and run make in test/
```shell
cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libgtest* /usr/lib/
```
The directory of gtest source code may be changed, try `/usr/src/googletest/googletest` if `/usr/src/gtest` is not there.
Rerun `config_brpc.sh`, `make` in test/, and `sh run_tests.sh`
## Fedora/CentOS
......@@ -58,7 +64,7 @@ $ make
```
to change compiler to clang, add `--cxx=clang++ --cc=clang`.
### run example
### Run example
```
$ cd example/echo_c++
......@@ -68,7 +74,13 @@ $ ./echo_client
```
Examples link brpc statically, if you need to link the shared version, `make clean` and `LINK_SO=1 make`
To run examples with cpu/heap profilers, install `gperftools-devel` and re-run `config_brpc.sh` before compiling
To run examples with cpu/heap profilers, install `gperftools-devel` and re-run `config_brpc.sh` before compiling.
### Run tests
Install gtest-devel.
Rerun `config_brpc.sh`, `make` in test/, and `sh run_tests.sh`
## Linux with self-built deps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment