NAKAMURA Takumi
cb83f1c37e
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
8aef527f4f
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
03fcc44664
[CMake] Use LINK_LIBS instead of target_link_libraries().
...
llvm-svn: 202238
2014-02-26 06:41:29 +00:00
NAKAMURA Takumi
465a2c73b8
[CMake] Add dependencies to gtest.
...
llvm-svn: 201079
2014-02-10 11:27:41 +00:00
NAKAMURA Takumi
dbf5da4276
Sink add_llvm_library(gtest_main) to UnitTestMain/CMakeLists.txt.
...
llvm-svn: 198933
2014-01-10 11:02:26 +00:00
Reid Kleckner
1d971b9998
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
7802b396a3
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
d2627d2855
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
9c6821e474
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
872c15ce42
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
d5ec932c3a
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
Francois Pichet
fae8819a7a
Fix MSVC release mode compilation error.
...
llvm-svn: 115407
2010-10-02 03:26:54 +00:00
Michael J. Spencer
0cda9d5e39
Fix line endings from my last commit.
...
llvm-svn: 114728
2010-09-24 09:10:21 +00:00
Michael J. Spencer
a128b7ab53
unittests: Support Windows.
...
llvm-svn: 114727
2010-09-24 09:01:34 +00:00
Benjamin Kramer
b53dcc7a02
Disable pthread support in googletest if llvm was configured without threads.
...
llvm-svn: 105390
2010-06-03 15:17:04 +00:00
Benjamin Kramer
1a3ca06c22
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
842c86a458
Update Readme and Makefiles for the new gtest.
...
llvm-svn: 105355
2010-06-02 22:02:57 +00:00
Chandler Carruth
97de5f241b
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
5a57121631
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
d2861eb219
Remove / use flags that are now set in the Makefile.config.
...
llvm-svn: 85149
2009-10-26 20:01:35 +00:00
Daniel Dunbar
b8eed72232
Follow googletest logic for suppressing warnings in unittests/UnitTestMain.
...
llvm-svn: 82373
2009-09-20 06:17:12 +00:00
Daniel Dunbar
b57fad2300
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