Updated instructions

This commit is contained in:
Alexey Milovidov 2018-03-03 22:51:21 +03:00
parent c9b81fd917
commit c1a8659000

View File

@ -1,25 +1,27 @@
# How to use Address Sanitizer # How to use Address Sanitizer
# Note: We use Address Sanitizer to run functional tests for every commit automatically. Note: We use Address Sanitizer to run functional tests for every commit automatically.
```
mkdir build && cd build mkdir build && cd build
```
# Note: Note:
# ENABLE_TCMALLOC=0 is optional. ENABLE_TCMALLOC=0 is optional.
# CC=clang CXX=clang++ is strongly recommended. CC=clang CXX=clang++ is strongly recommended.
``` ```
CC=clang CXX=clang++ cmake -D CMAKE_BUILD_TYPE=ASan -D ENABLE_TCMALLOC=0 .. CC=clang CXX=clang++ cmake -D CMAKE_BUILD_TYPE=ASan -D ENABLE_TCMALLOC=0 ..
make -j24 make -j24
``` ```
# Copy binary to your server ## Copy binary to your server
``` ```
scp ./dbms/src/Server/clickhouse yourserver:~/clickhouse-asan scp ./dbms/src/Server/clickhouse yourserver:~/clickhouse-asan
``` ```
# Start ClickHouse and run tests ## Start ClickHouse and run tests
``` ```
sudo -u clickhouse ./clickhouse-asan server --config /etc/clickhouse-server/config.xml sudo -u clickhouse ./clickhouse-asan server --config /etc/clickhouse-server/config.xml
@ -32,20 +34,20 @@ sudo -u clickhouse ./clickhouse-asan server --config /etc/clickhouse-server/conf
mkdir build && cd build mkdir build && cd build
``` ```
# Note: All parameters are mandatory. ## Note: All parameters are mandatory.
``` ```
CC=clang CXX=clang++ cmake -D CMAKE_BUILD_TYPE=TSan -D ENABLE_TCMALLOC=0 .. CC=clang CXX=clang++ cmake -D CMAKE_BUILD_TYPE=TSan -D ENABLE_TCMALLOC=0 ..
make -j24 make -j24
``` ```
# Copy binary to your server ## Copy binary to your server
``` ```
scp ./dbms/src/Server/clickhouse yourserver:~/clickhouse-tsan scp ./dbms/src/Server/clickhouse yourserver:~/clickhouse-tsan
``` ```
# Start ClickHouse and run tests ## Start ClickHouse and run tests
``` ```
sudo -u clickhouse TSAN_OPTIONS='halt_on_error=1 suppressions=tsan_suppressions' ./clickhouse-tsan server --config /etc/clickhouse-server/config.xml sudo -u clickhouse TSAN_OPTIONS='halt_on_error=1 suppressions=tsan_suppressions' ./clickhouse-tsan server --config /etc/clickhouse-server/config.xml