Update TESTING.md
authorrsheeter <rsheeter@google.com>
Fri, 10 May 2019 23:52:43 +0000 (16:52 -0700)
committerGitHub <noreply@github.com>
Fri, 10 May 2019 23:52:43 +0000 (16:52 -0700)
TESTING.md

index a690afe..ba9e32f 100644 (file)
@@ -6,7 +6,7 @@ Values defined in `hb-debug.hh`.
 ```shell
 # quick sanity check
 time (make -j4 CPPFLAGS='-DHB_DEBUG_SUBSET=100' \
-  && {make -j4 -C test/api check || cat test/api/test-suite.log})
+  && (make -j4 -C test/api check || cat test/api/test-suite.log))
 
 # slower sanity check
 time (make -j4 CPPFLAGS='-DHB_DEBUG_SUBSET=100' \
@@ -22,6 +22,13 @@ time (make -j4 CPPFLAGS='-DHB_DEBUG_SUBSET=100' \
 make distcheck
 ```
 
+### Run tests with asan
+
+```shell
+./configure CC=clang CXX=clang++ CPPFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address
+# make/run tests as usual
+```
+
 ### Debug with GDB
 
 ```