summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-04-28 15:06:12 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-05-11 17:22:32 +0200
commitf492283b4369ed0711f5f538b6d5fe61a8a75a0f (patch)
tree8b3ee21589569666231e658af5a0208cef28a7b2
parent146f7715a9f36d246b461255b3c683b479296915 (diff)
do not require installed libapt-pkg-dev for gtest
Git-Dch: Ignore
-rw-r--r--test/libapt/makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libapt/makefile b/test/libapt/makefile
index 0f8df291f..61a8aaf31 100644
--- a/test/libapt/makefile
+++ b/test/libapt/makefile
@@ -8,7 +8,7 @@ APT_DOMAIN=none
include ../../buildlib/defaults.mak
.PHONY: test
-ifeq (file-okay,$(shell $(CC) -M gtest_runner.cc >/dev/null 2>&1 && echo 'file-okay'))
+ifeq (file-okay,$(shell $(CC) -I $(BASE)/build/include -M gtest_runner.cc >/dev/null 2>&1 && echo 'file-okay'))
test: $(BIN)/gtest$(BASENAME)
MALLOC_PERTURB_=21 MALLOC_CHECK_=2 LD_LIBRARY_PATH=$(LIB) $(BIN)/gtest$(BASENAME)
@@ -78,5 +78,6 @@ test:
@echo "APT uses Googles C++ testing framework for its unit tests"
@echo "On Debian systems this is available in the 'libgtest-dev' package."
@echo "Please install it before attempting to run the unit tests."
+ $(CC) -I $(BASE)/build/include -M gtest_runner.cc
exit 100
endif