1config BR2_PACKAGE_GTEST
2	bool "gtest"
3	depends on BR2_USE_WCHAR
4	depends on BR2_TOOLCHAIN_HAS_THREADS
5	depends on BR2_INSTALL_LIBSTDCPP
6	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # C++14
7	depends on BR2_USE_MMU # fork()
8	help
9	  Google's framework for writing C++ tests on a variety of
10	  platforms (Linux, Mac OS X, Windows, Cygwin, Windows CE, and
11	  Symbian). Based on the xUnit architecture. Supports
12	  automatic test discovery, a rich set of assertions,
13	  user-defined assertions, death tests, fatal and non-fatal
14	  failures, value- and type-parameterized tests, various
15	  options for running the tests, and XML test report
16	  generation.
17
18	  Gtest also allows to easily build testsuites for C programs.
19
20	  This package allows running testsuites on the target which
21	  might be advantageous in certain cases.
22
23	  https://github.com/google/googletest
24
25if BR2_PACKAGE_GTEST
26
27config BR2_PACKAGE_GTEST_GMOCK
28	bool "gmock"
29	help
30	  Inspired by jMock, EasyMock, and Hamcrest, and designed with
31	  C++'s specifics in mind, Google C++ Mocking Framework (or
32	  Google Mock for short) is a library for writing and using C++
33	  mock classes.
34
35	  Google Mock:
36
37	    * lets you create mock classes trivially using simple
38	      macros, supports a rich set of matchers and actions,
39	    * handles unordered, partially ordered, or completely
40	      ordered expectations,
41	    * is extensible by users, and
42	    * works on Linux, Mac OS X, Windows, Windows Mobile, minGW,
43	      and Symbian.
44
45endif # BR2_PACKAGE_GTEST
46
47comment "gtest needs a toolchain w/ C++, wchar, threads, gcc >= 5"
48	depends on BR2_USE_MMU
49	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
50		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_5
51