aboutsummaryrefslogtreecommitdiff
path: root/lib/googletest/gtest/tests/Makefile
blob: 3c176b3ea42a1165be6df543a82395aba8ad2086 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $FreeBSD$

.include <bsd.init.mk>

.PATH:	${GOOGLETEST_SRCROOT}/src ${GOOGLETEST_SRCROOT}/test

PLAIN_TESTS_CXX+=	gtest_environment_test
PLAIN_TESTS_CXX+=	gtest_no_test_unittest
PLAIN_TESTS_CXX+=	googletest-param-test-test
PLAIN_TESTS_CXX+=	gtest_premature_exit_test
PLAIN_TESTS_CXX+=	gtest_repeat_test
PLAIN_TESTS_CXX+=	gtest_stress_test
PLAIN_TESTS_CXX+=	gtest_throw_on_failure_ex_test
PLAIN_TESTS_CXX+=	gtest-unittest-api_test

SRCS.googletest-param-test-test+= googletest-param-test-test.cc
SRCS.googletest-param-test-test+= googletest-param-test2-test.cc
SRCS.gtest_premature_exit_test+= gtest_premature_exit_test.cc

.for test in ${PLAIN_TESTS_CXX}
# XXX: linker error; no main(..)
#SRCS.${test}=		gtest-all.cc
SRCS.${test}?=		gtest_main.cc
.endfor

CXXFLAGS+=		-I${GOOGLETEST_SRCROOT}/include
CXXFLAGS+=		-I${GOOGLETEST_SRCROOT}

LIBADD=		gtest

.include <bsd.test.mk>