diff options
author | Evan Martin <martine@danga.com> | 2012-06-12 21:54:34 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-06-12 21:54:34 (GMT) |
commit | a25309c029a5a8faae2d77420072d5ed9342a065 (patch) | |
tree | 7afec3164159dc13e9317bef1e87539ed3bd073d | |
parent | f95a2460583958a08cc53dd63cda0f502a53befb (diff) | |
download | Ninja-a25309c029a5a8faae2d77420072d5ed9342a065.zip Ninja-a25309c029a5a8faae2d77420072d5ed9342a065.tar.gz Ninja-a25309c029a5a8faae2d77420072d5ed9342a065.tar.bz2 |
add a note to HACKING about how to get gtest
-rw-r--r-- | HACKING | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -2,6 +2,14 @@ Adjusting build flags: CFLAGS=-O3 ./configure.py and rebuild. +Building tests requires gtest, to get it: + - On older Ubuntus you can apt-get install libgtest. + - On newer Ubuntus it's only distributed as source; + 1) apt-get install libgtest-dev + 2) ./configure --with-gtest=/usr/src/gtest + - Otherwise you need to download it, unpack it, and pass --with-gtest + as appropriate. + Test-driven development: Set your build command to ./ninja ninja_test && ./ninja_test --gtest_filter=MyTest.Name |