xref: /OK3568_Linux_fs/buildroot/package/gtest/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_PACKAGE_GTEST
2*4882a593Smuzhiyun	bool "gtest"
3*4882a593Smuzhiyun	depends on BR2_USE_WCHAR
4*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_HAS_THREADS
5*4882a593Smuzhiyun	depends on BR2_INSTALL_LIBSTDCPP
6*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
7*4882a593Smuzhiyun	depends on BR2_USE_MMU # fork()
8*4882a593Smuzhiyun	help
9*4882a593Smuzhiyun	  Google's framework for writing C++ tests on a variety of
10*4882a593Smuzhiyun	  platforms (Linux, Mac OS X, Windows, Cygwin, Windows CE, and
11*4882a593Smuzhiyun	  Symbian). Based on the xUnit architecture. Supports
12*4882a593Smuzhiyun	  automatic test discovery, a rich set of assertions,
13*4882a593Smuzhiyun	  user-defined assertions, death tests, fatal and non-fatal
14*4882a593Smuzhiyun	  failures, value- and type-parameterized tests, various
15*4882a593Smuzhiyun	  options for running the tests, and XML test report
16*4882a593Smuzhiyun	  generation.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun	  Gtest also allows to easily build testsuites for C programs.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun	  This package allows running testsuites on the target which
21*4882a593Smuzhiyun	  might be advantageous in certain cases.
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	  https://github.com/google/googletest
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunif BR2_PACKAGE_GTEST
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunconfig BR2_PACKAGE_GTEST_GMOCK
28*4882a593Smuzhiyun	bool "gmock"
29*4882a593Smuzhiyun	help
30*4882a593Smuzhiyun	  Inspired by jMock, EasyMock, and Hamcrest, and designed with
31*4882a593Smuzhiyun	  C++'s specifics in mind, Google C++ Mocking Framework (or
32*4882a593Smuzhiyun	  Google Mock for short) is a library for writing and using C++
33*4882a593Smuzhiyun	  mock classes.
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun	  Google Mock:
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun	    * lets you create mock classes trivially using simple
38*4882a593Smuzhiyun	      macros, supports a rich set of matchers and actions,
39*4882a593Smuzhiyun	    * handles unordered, partially ordered, or completely
40*4882a593Smuzhiyun	      ordered expectations,
41*4882a593Smuzhiyun	    * is extensible by users, and
42*4882a593Smuzhiyun	    * works on Linux, Mac OS X, Windows, Windows Mobile, minGW,
43*4882a593Smuzhiyun	      and Symbian.
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun	  There are both host and target packages. The target one has
46*4882a593Smuzhiyun	  include files required to compile the tests and the static
47*4882a593Smuzhiyun	  libraries required to link/run them. The host package installs
48*4882a593Smuzhiyun	  gmock_gen, a Python script used to generate code mocks.
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunendif # BR2_PACKAGE_GTEST
51*4882a593Smuzhiyun
52*4882a593Smuzhiyuncomment "gtest needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"
53*4882a593Smuzhiyun	depends on BR2_USE_MMU
54*4882a593Smuzhiyun	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
55*4882a593Smuzhiyun		!BR2_INSTALL_LIBSTDCPP || \
56*4882a593Smuzhiyun		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
57