From a25309c029a5a8faae2d77420072d5ed9342a065 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Tue, 12 Jun 2012 14:54:34 -0700 Subject: add a note to HACKING about how to get gtest --- HACKING | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v0.12