NAKAMURA Takumi
00409fbe19
Make UnitTestMain/TestMain.cpp free from llvm/Config/config.h.
...
llvm/Config/config.h is unavailable outside of build tree.
llvm-svn: 241523
2015-07-06 23:51:40 +00:00
Pete Cooper
6bea2f4f88
Add boolean to PrintStackTraceOnErrorSignal to disable crash reporting.
...
The current crash reporting on Mac OS is only disabled via an environment variable.
This adds a boolean (default false) which can also disable crash reporting.
The only client right now is the unittests which don't ever want crash reporting, but do want to detect killed programs.
Reduces the time to run the APFloat unittests on my machine from
[----------] 47 tests from APFloatTest (51250 ms total)
to
[----------] 47 tests from APFloatTest (765 ms total)
Reviewed by Reid Kleckner and Justin Bogner
llvm-svn: 234353
2015-04-07 20:43:23 +00:00
NAKAMURA Takumi
9698686505
[CMake] Use LINK_LIBS instead of target_link_libraries().
...
llvm-svn: 202238
2014-02-26 06:41:29 +00:00
NAKAMURA Takumi
0dc73dfdf4
[CMake] Add dependencies to gtest.
...
llvm-svn: 201079
2014-02-10 11:27:41 +00:00
NAKAMURA Takumi
1f5cf85fd4
Sink add_llvm_library(gtest_main) to UnitTestMain/CMakeLists.txt.
...
llvm-svn: 198933
2014-01-10 11:02:26 +00:00
Reid Kleckner
95012aaa93
Try to fix ProgramTest on FreeBSD
...
This seemed like the cleanest way to find the test executable. Also fix
the file mode.
llvm-svn: 180770
2013-04-30 04:30:41 +00:00
Manuel Klimek
946d219c47
Add basic command line parsing to TestMain.
...
Summary:
This allows unit tests for components that use Support/Debug.h to print
debug information from test runs by specifying -debug when running the
test.
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D301
llvm-svn: 172801
2013-01-18 10:18:50 +00:00
Daniel Dunbar
06bb798803
build/unittests: Fix llvm-config names for gtest libraries, and bring Makefile
...
library names in line with those used by CMake.
- Patch by Johannes Obermayr, with tweaks by me.
llvm-svn: 146706
2011-12-15 23:35:08 +00:00
NAKAMURA Takumi
a14ff2d439
Don't install libUnitTestMain.a. It might be useless without gtest headers.
...
llvm-svn: 126632
2011-02-28 05:18:07 +00:00
NAKAMURA Takumi
5a3ff5b5a0
Make Win32's header file name lower for cross build on case-sensitive filesystem.
...
llvm-svn: 124864
2011-02-04 12:53:04 +00:00
Michael J. Spencer
447762da85
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
Francois Pichet
8cbc86e912
Fix MSVC release mode compilation error.
...
llvm-svn: 115407
2010-10-02 03:26:54 +00:00
Michael J. Spencer
55581b3336
Fix line endings from my last commit.
...
llvm-svn: 114728
2010-09-24 09:10:21 +00:00
Michael J. Spencer
d8010d6456
unittests: Support Windows.
...
llvm-svn: 114727
2010-09-24 09:01:34 +00:00
Benjamin Kramer
7cd082a7a3
Disable pthread support in googletest if llvm was configured without threads.
...
llvm-svn: 105390
2010-06-03 15:17:04 +00:00
Benjamin Kramer
1add5f378d
Turns out gtest still prefers the system <tr1/tuple> over it's own
...
implementation. Force the internal one to unbreak clang selfhost on linux.
llvm-svn: 105386
2010-06-03 07:51:58 +00:00
Benjamin Kramer
9cb0274182
Update Readme and Makefiles for the new gtest.
...
llvm-svn: 105355
2010-06-02 22:02:57 +00:00
Chandler Carruth
25fcb61172
Continue propagating the GoogleTest flags until we can update our version to
...
eliminate this problem. This will hopefully let us make progress on Linux
bootstrapping.
llvm-svn: 98095
2010-03-09 22:45:10 +00:00
Chris Lattner
823aed16f9
make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.
...
llvm-svn: 94378
2010-01-24 20:43:08 +00:00
Julien Lerouge
d0c160e36c
Remove / use flags that are now set in the Makefile.config.
...
llvm-svn: 85149
2009-10-26 20:01:35 +00:00
Daniel Dunbar
b18efec822
Follow googletest logic for suppressing warnings in unittests/UnitTestMain.
...
llvm-svn: 82373
2009-09-20 06:17:12 +00:00
Daniel Dunbar
6be903e185
Move unittest driver to utils/unittest/UnitTestMain.
...
- This eliminates a race between building the unittests and linking the
UnitTestMain library.
llvm-svn: 81719
2009-09-13 21:31:21 +00:00