Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Side by Side Diff: testing/gmock/Makefile.am

Issue 521012: Update gmock and gtest. (Closed)
Patch Set: update readme Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/gmock/CONTRIBUTORS ('k') | testing/gmock/include/gmock/gmock-actions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Nonstandard package files for distribution. 1 # Nonstandard package files for distribution.
2 EXTRA_DIST = 2 EXTRA_DIST =
3 3
4 # We may need to build our internally packaged gtest. If so, it will be 4 # We may need to build our internally packaged gtest. If so, it will be
5 # included in the 'subdirs' variable. 5 # included in the 'subdirs' variable.
6 SUBDIRS = $(subdirs) 6 SUBDIRS = $(subdirs)
7 7
8 # Scripts and utilities to be installed by 'make install'. 8 # Scripts and utilities to be installed by 'make install'.
9 dist_bin_SCRIPTS = scripts/gmock_doctor.py 9 dist_bin_SCRIPTS = scripts/gmock_doctor.py
10 bin_SCRIPTS = scripts/gmock-config 10 bin_SCRIPTS = scripts/gmock-config
11 11
12 # This is generated by the configure script, so clean it for distribution. 12 # This is generated by the configure script, so clean it for distribution.
13 DISTCLEANFILES = scripts/gmock-config 13 DISTCLEANFILES = scripts/gmock-config
14 14
15 # We define the global AM_CPPFLAGS as everything we compile includes from these 15 # We define the global AM_CPPFLAGS as everything we compile includes from these
16 # directories. 16 # directories.
17 AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I$(srcdir)/include 17 AM_CPPFLAGS = $(GTEST_CPPFLAGS) -I$(srcdir)/include
18 18
19 # Build rules for libraries. 19 # Build rules for libraries.
20 lib_LTLIBRARIES = lib/libgmock.la lib/libgmock_main.la 20 lib_LTLIBRARIES = lib/libgmock.la lib/libgmock_main.la
21 21
22 lib_libgmock_la_SOURCES = src/gmock.cc \ 22 lib_libgmock_la_SOURCES = src/gmock-all.cc
23 src/gmock-cardinalities.cc \
24 src/gmock-internal-utils.cc \
25 src/gmock-matchers.cc \
26 src/gmock-printers.cc \
27 src/gmock-spec-builders.cc
28 23
29 pkginclude_HEADERS = include/gmock/gmock.h \ 24 pkginclude_HEADERS = include/gmock/gmock.h \
30 include/gmock/gmock-actions.h \ 25 include/gmock/gmock-actions.h \
31 include/gmock/gmock-cardinalities.h \ 26 include/gmock/gmock-cardinalities.h \
32 include/gmock/gmock-generated-actions.h \ 27 include/gmock/gmock-generated-actions.h \
33 include/gmock/gmock-generated-function-mockers.h \ 28 include/gmock/gmock-generated-function-mockers.h \
34 include/gmock/gmock-generated-matchers.h \ 29 include/gmock/gmock-generated-matchers.h \
35 include/gmock/gmock-generated-nice-strict.h \ 30 include/gmock/gmock-generated-nice-strict.h \
36 include/gmock/gmock-matchers.h \ 31 include/gmock/gmock-matchers.h \
37 include/gmock/gmock-more-actions.h \ 32 include/gmock/gmock-more-actions.h \
38 include/gmock/gmock-printers.h \ 33 include/gmock/gmock-printers.h \
39 include/gmock/gmock-spec-builders.h 34 include/gmock/gmock-spec-builders.h
40 35
41 pkginclude_internaldir = $(pkgincludedir)/internal 36 pkginclude_internaldir = $(pkgincludedir)/internal
42 pkginclude_internal_HEADERS = \ 37 pkginclude_internal_HEADERS = \
43 include/gmock/internal/gmock-generated-internal-utils.h \ 38 include/gmock/internal/gmock-generated-internal-utils.h \
44 include/gmock/internal/gmock-internal-utils.h \ 39 include/gmock/internal/gmock-internal-utils.h \
45 include/gmock/internal/gmock-port.h 40 include/gmock/internal/gmock-port.h
46 41
47 lib_libgmock_main_la_SOURCES = src/gmock_main.cc 42 lib_libgmock_main_la_SOURCES = src/gmock_main.cc
48 lib_libgmock_main_la_LIBADD = lib/libgmock.la 43 lib_libgmock_main_la_LIBADD = lib/libgmock.la
49 44
50 # Build rules for tests. Automake's naming for some of these variables isn't 45 # Build rules for tests. Automake's naming for some of these variables isn't
51 # terribly obvious, so this is a brief reference: 46 # terribly obvious, so this is a brief reference:
52 # 47 #
53 # TESTS -- Programs run automatically by "make check" 48 # TESTS -- Programs run automatically by "make check"
54 # check_PROGRAMS -- Programs built by "make check" but not necessarily run 49 # check_PROGRAMS -- Programs built by "make check" but not necessarily run
55 50
56 TESTS= 51 TESTS=
57 TESTS_ENVIRONMENT = GMOCK_SOURCE_DIR="$(srcdir)/test" \
58 GMOCK_BUILD_DIR="$(top_builddir)/test"
59 check_PROGRAMS= 52 check_PROGRAMS=
60 AM_LDFLAGS = $(GTEST_LDFLAGS) 53 AM_LDFLAGS = $(GTEST_LDFLAGS)
61 54
62 TESTS += test/gmock-actions_test 55 # This exercises all major components of Google Mock. It also
63 check_PROGRAMS += test/gmock-actions_test 56 # verifies that libgmock works.
64 test_gmock_actions_test_SOURCES = test/gmock-actions_test.cc 57 TESTS += test/gmock-spec-builders_test
65 test_gmock_actions_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la 58 check_PROGRAMS += test/gmock-spec-builders_test
59 test_gmock_spec_builders_test_SOURCES = test/gmock-spec-builders_test.cc
60 test_gmock_spec_builders_test_LDADD = $(GTEST_LIBS) lib/libgmock.la
66 61
67 TESTS += test/gmock-cardinalities_test 62 # This tests using Google Mock in multiple translation units. It also
68 check_PROGRAMS += test/gmock-cardinalities_test 63 # verifies that libgmock_main works.
69 test_gmock_cardinalities_test_SOURCES = test/gmock-cardinalities_test.cc
70 test_gmock_cardinalities_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
71
72 TESTS += test/gmock-generated-actions_test
73 check_PROGRAMS += test/gmock-generated-actions_test
74 test_gmock_generated_actions_test_SOURCES = test/gmock-generated-actions_test.cc
75 test_gmock_generated_actions_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
76
77 TESTS += test/gmock-generated-function-mockers_test
78 check_PROGRAMS += test/gmock-generated-function-mockers_test
79 test_gmock_generated_function_mockers_test_SOURCES = \
80 test/gmock-generated-function-mockers_test.cc
81 test_gmock_generated_function_mockers_test_LDADD = $(GTEST_LIBS) \
82 lib/libgmock_main.la
83
84 TESTS += test/gmock-generated-internal-utils_test
85 check_PROGRAMS += test/gmock-generated-internal-utils_test
86 test_gmock_generated_internal_utils_test_SOURCES = \
87 test/gmock-generated-internal-utils_test.cc
88 test_gmock_generated_internal_utils_test_LDADD = $(GTEST_LIBS) \
89 lib/libgmock_main.la
90
91 TESTS += test/gmock-generated-matchers_test
92 check_PROGRAMS += test/gmock-generated-matchers_test
93 test_gmock_generated_matchers_test_SOURCES = \
94 test/gmock-generated-matchers_test.cc
95 test_gmock_generated_matchers_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
96
97 TESTS += test/gmock-internal-utils_test
98 check_PROGRAMS += test/gmock-internal-utils_test
99 test_gmock_internal_utils_test_SOURCES = test/gmock-internal-utils_test.cc
100 test_gmock_internal_utils_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
101
102 TESTS += test/gmock_link_test 64 TESTS += test/gmock_link_test
103 check_PROGRAMS += test/gmock_link_test 65 check_PROGRAMS += test/gmock_link_test
104 test_gmock_link_test_SOURCES = test/gmock_link_test.cc \ 66 test_gmock_link_test_SOURCES = test/gmock_link_test.cc \
105 test/gmock_link2_test.cc \ 67 test/gmock_link2_test.cc \
106 test/gmock_link_test.h 68 test/gmock_link_test.h
107 test_gmock_link_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la 69 test_gmock_link_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
108 70
109 TESTS += test/gmock-matchers_test 71 # Google Mock source files that we don't compile directly.
110 check_PROGRAMS += test/gmock-matchers_test 72 EXTRA_DIST += \
111 test_gmock_matchers_test_SOURCES = test/gmock-matchers_test.cc 73 src/gmock.cc \
112 test_gmock_matchers_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la 74 src/gmock-cardinalities.cc \
75 src/gmock-internal-utils.cc \
76 src/gmock-matchers.cc \
77 src/gmock-printers.cc \
78 src/gmock-spec-builders.cc
113 79
114 TESTS += test/gmock-more-actions_test 80 # C++ tests that we don't compile using autotools.
115 check_PROGRAMS += test/gmock-more-actions_test 81 EXTRA_DIST += \
116 test_gmock_more_actions_test_SOURCES = test/gmock-more-actions_test.cc 82 test/gmock_all_test.cc \
117 test_gmock_more_actions_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la 83 test/gmock-actions_test.cc \
84 test/gmock-cardinalities_test.cc \
85 test/gmock-generated-actions_test.cc \
86 test/gmock-generated-function-mockers_test.cc \
87 test/gmock-generated-internal-utils_test.cc \
88 test/gmock-generated-matchers_test.cc \
89 test/gmock-internal-utils_test.cc \
90 test/gmock-matchers_test.cc \
91 test/gmock-more-actions_test.cc \
92 test/gmock-nice-strict_test.cc \
93 test/gmock-port_test.cc \
94 test/gmock-printers_test.cc \
95 test/gmock_test.cc
118 96
119 TESTS += test/gmock-nice-strict_test 97 # Python tests, which we don't run using autotools.
120 check_PROGRAMS += test/gmock-nice-strict_test 98 EXTRA_DIST += \
121 test_gmock_nice_strict_test_SOURCES = test/gmock-nice-strict_test.cc 99 test/gmock_test_utils.py \
122 test_gmock_nice_strict_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la 100 test/gmock_leak_test_.cc \
123 101 test/gmock_leak_test.py \
124 TESTS += test/gmock-port_test 102 test/gmock_output_test_.cc \
125 check_PROGRAMS += test/gmock-port_test 103 test/gmock_output_test.py \
126 test_gmock_port_test_SOURCES = test/gmock-port_test.cc 104 test/gmock_output_test_golden.txt
127 test_gmock_port_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
128
129 TESTS += test/gmock-printers_test
130 check_PROGRAMS += test/gmock-printers_test
131 test_gmock_printers_test_SOURCES = test/gmock-printers_test.cc
132 test_gmock_printers_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
133
134 TESTS += test/gmock-spec-builders_test
135 check_PROGRAMS += test/gmock-spec-builders_test
136 test_gmock_spec_builders_test_SOURCES = test/gmock-spec-builders_test.cc
137 test_gmock_spec_builders_test_LDADD = $(GTEST_LIBS) lib/libgmock.la
138
139 TESTS += test/gmock_test
140 check_PROGRAMS += test/gmock_test
141 test_gmock_test_SOURCES = test/gmock_test.cc
142 test_gmock_test_LDADD = $(GTEST_LIBS) lib/libgmock_main.la
143
144 # A sanity test for verifying that Google Mock works when RTTI is
145 # disabled. We pick gmock-spec-builders_test.cc as it exercises all
146 # components of Google Mock.
147 TESTS += test/gmock_no_rtti_test
148 check_PROGRAMS += test/gmock_no_rtti_test
149 test_gmock_no_rtti_test_SOURCES = test/gmock-spec-builders_test.cc \
150 src/gmock-all.cc
151 test_gmock_no_rtti_test_CXXFLAGS = $(AM_CXXFLAGS) -fno-rtti -DGTEST_HAS_RTTI=0
152 test_gmock_no_rtti_test_LDADD = $(GTEST_LIBS)
153
154 # A sanity test for verifying that Google Mock works with Google
155 # Test's TR1 tuple implementation. We pick
156 # gmock-spec-builders_test.cc as it exercises all components of Google
157 # Mock.
158 TESTS += test/gmock_use_own_tuple_test
159 check_PROGRAMS += test/gmock_use_own_tuple_test
160 test_gmock_use_own_tuple_test_SOURCES = test/gmock-spec-builders_test.cc \
161 src/gmock-all.cc
162 test_gmock_use_own_tuple_test_CXXFLAGS = \
163 $(AM_CXXFLAGS) -DGTEST_USE_OWN_TR1_TUPLE=1
164 test_gmock_use_own_tuple_test_LDADD = $(GTEST_LIBS)
165
166 # The following tests depend on the presence of a Python installation and are
167 # keyed off of it. We only add them to the TESTS variable when a Python
168 # interpreter is available. TODO(chandlerc@google.com): While we currently only
169 # attempt to build and execute these tests if Autoconf has found Python v2.3 on
170 # the system, we don't use the PYTHON variable it specified as the valid
171 # interpreter. The problem is that TESTS_ENVIRONMENT is a global variable, and
172 # thus we cannot distinguish between C++ unit tests and Python unit tests.
173 dist_check_SCRIPTS =
174
175 # Python modules used by multiple Python tests below.
176 dist_check_SCRIPTS += test/gmock_test_utils.py
177
178 check_PROGRAMS += test/gmock_leak_test_
179 test_gmock_leak_test__SOURCES = test/gmock_leak_test_.cc
180 test_gmock_leak_test__LDADD = $(GTEST_LIBS) lib/libgmock_main.la
181 dist_check_SCRIPTS += test/gmock_leak_test.py
182
183 check_PROGRAMS += test/gmock_output_test_
184 test_gmock_output_test__SOURCES = test/gmock_output_test_.cc
185 test_gmock_output_test__LDADD = $(GTEST_LIBS) lib/libgmock_main.la
186 dist_check_SCRIPTS += test/gmock_output_test.py
187 EXTRA_DIST += test/gmock_output_test_golden.txt
188
189 # Enable all the python driven tests when we can run them.
190 if HAVE_PYTHON
191 TESTS += \
192 test/gmock_leak_test.py \
193 test/gmock_output_test.py
194 endif
195 105
196 # Nonstandard package files for distribution. 106 # Nonstandard package files for distribution.
197 EXTRA_DIST += \ 107 EXTRA_DIST += \
198 CHANGES \ 108 CHANGES \
199 CONTRIBUTORS \ 109 CONTRIBUTORS \
200 make/Makefile \ 110 make/Makefile
201 src/gmock-all.cc
202 111
203 # Pump scripts for generating Google Mock headers. 112 # Pump scripts for generating Google Mock headers.
204 # TODO(chandlerc@google.com): automate the generation of *.h from *.h.pump. 113 # TODO(chandlerc@google.com): automate the generation of *.h from *.h.pump.
205 EXTRA_DIST += include/gmock/gmock-generated-actions.h.pump \ 114 EXTRA_DIST += include/gmock/gmock-generated-actions.h.pump \
206 include/gmock/gmock-generated-function-mockers.h.pump \ 115 include/gmock/gmock-generated-function-mockers.h.pump \
207 include/gmock/gmock-generated-matchers.h.pump \ 116 include/gmock/gmock-generated-matchers.h.pump \
208 include/gmock/gmock-generated-nice-strict.h.pump \ 117 include/gmock/gmock-generated-nice-strict.h.pump \
209 include/gmock/internal/gmock-generated-internal-utils.h.pump 118 include/gmock/internal/gmock-generated-internal-utils.h.pump
210 119
211 # Script for fusing Google Mock and Google Test source files. 120 # Script for fusing Google Mock and Google Test source files.
(...skipping 14 matching lines...) Expand all
226 scripts/generator/cpp/utils.py \ 135 scripts/generator/cpp/utils.py \
227 scripts/generator/gmock_gen.py 136 scripts/generator/gmock_gen.py
228 137
229 # Microsoft Visual Studio 2005 projects. 138 # Microsoft Visual Studio 2005 projects.
230 EXTRA_DIST += \ 139 EXTRA_DIST += \
231 msvc/gmock.sln \ 140 msvc/gmock.sln \
232 msvc/gmock.vcproj \ 141 msvc/gmock.vcproj \
233 msvc/gmock_config.vsprops \ 142 msvc/gmock_config.vsprops \
234 msvc/gmock_link_test.vcproj \ 143 msvc/gmock_link_test.vcproj \
235 msvc/gmock_main.vcproj \ 144 msvc/gmock_main.vcproj \
236 msvc/gmock_output_test_.vcproj \
237 msvc/gmock-spec-builders_test.vcproj \ 145 msvc/gmock-spec-builders_test.vcproj \
238 msvc/gmock_test.vcproj 146 msvc/gmock_test.vcproj
OLDNEW
« no previous file with comments | « testing/gmock/CONTRIBUTORS ('k') | testing/gmock/include/gmock/gmock-actions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698