summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-06-12 21:54:34 (GMT)
committerEvan Martin <martine@danga.com>2012-06-12 21:54:34 (GMT)
commita25309c029a5a8faae2d77420072d5ed9342a065 (patch)
tree7afec3164159dc13e9317bef1e87539ed3bd073d /HACKING
parentf95a2460583958a08cc53dd63cda0f502a53befb (diff)
downloadNinja-a25309c029a5a8faae2d77420072d5ed9342a065.zip
Ninja-a25309c029a5a8faae2d77420072d5ed9342a065.tar.gz
Ninja-a25309c029a5a8faae2d77420072d5ed9342a065.tar.bz2
add a note to HACKING about how to get gtest
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING8
1 files changed, 8 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 786524f..4e01d49 100644
--- a/HACKING
+++ b/HACKING
@@ -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