Duncan Sands
d4dd4dcf15
Get the unittests compiling when building with cmake and the setting
...
-DLLVM_ENABLE_THREADS=false.
llvm-svn: 181788
2013-05-14 13:29:16 +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
Matt Beaumont-Gay
c6ce965ace
'Hexadecimal' has two 'a's and only one 'i'.
...
llvm-svn: 176031
2013-02-25 18:11:18 +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
NAKAMURA Takumi
10b6852107
unittest/googletest/Makefile: Unbreak out-of-tree build.
...
- Use SOURCES instead of Source. See Makefile.rules and MakefileGuide.html.
- Don't assume the current directory. $(wildcard *.cc) doesn't match anything on corresponding build directory.
llvm-svn: 169568
2012-12-07 01:25:45 +00:00
Alexey Samsonov
8388a78977
Try to unbreak makefile build by excluding gtest-all.cc source
...
llvm-svn: 169564
2012-12-06 23:59:54 +00:00
Alexey Samsonov
f9bf4312f3
Modify the LLVM checkout of googletest:
...
1) don't delete gtest-all.cc (which is used to gather all gtest source
files in a single file)
2) make including LLVMSupport headers optional (on by default).
Sanitizer tools may want to use their own versions of googletest
compiled with specific flags, instead of the common googletest
library used for all other LLVM/Clang unittests.
llvm-svn: 169559
2012-12-06 23:04:41 +00:00
Richard Smith
2eb09a43e4
Remove unused internal linkage variable.
...
llvm-svn: 168729
2012-11-27 21:51:36 +00:00
Sylvestre Ledru
b77340e506
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767
...
llvm-svn: 164768
2012-09-27 10:14:43 +00:00
Sylvestre Ledru
1c5e7904de
Fix a typo 'iff' => 'if'
...
llvm-svn: 164767
2012-09-27 09:59:43 +00:00
Evgeniy Stepanov
24b5faa541
GTest on Android needs a custom tmpdir path.
...
llvm-svn: 163501
2012-09-10 10:32:29 +00:00
Evgeniy Stepanov
d74d632931
Fix Android build of gtest and lib/Support.
...
llvm-svn: 163131
2012-09-04 09:14:45 +00:00
Sylvestre Ledru
bf8acb65ac
Fix a typo (the the => the)
...
llvm-svn: 160621
2012-07-23 08:51:15 +00:00
Benjamin Kramer
28652fdd76
Remove dead private member variables from gtest.
...
llvm-svn: 158101
2012-06-06 20:23:00 +00:00
Justin Holewinski
10ecba6fa8
Fix gtest build issue on Visual Studio 2012 RC
...
llvm-svn: 158046
2012-06-06 03:11:20 +00:00
Daniel Dunbar
64c706d674
llvm-build: Add support for non-installed libraries (e.g., gtest).
...
- These libraries are only reported by llvm-config when run from a development
tree.
llvm-svn: 156838
2012-05-15 18:44:17 +00:00
David Blaikie
05fe2f515d
Help GCC along with code that's actually unreachable.
...
Unfortunately I don't think there's a fix for this that will work upstream and
also satisfy Clang's -Wunreachable-code, which is a pity. But I'll give it some
more thought -perhaps there's some way out.
llvm-svn: 148645
2012-01-22 01:17:04 +00:00
David Blaikie
93fafabfea
Remove unreachable defaults from gtest.
...
This will ensure LLVM and Clang build -Wswitch-enum-redundant-default (an on-by-default warning I'm about to add to Clang).
llvm-svn: 148639
2012-01-21 18:02:01 +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
Daniel Dunbar
4e00f5f8fd
build/CMake: Finish removal of add_llvm_library_dependencies.
...
llvm-svn: 145420
2011-11-29 19:25:30 +00:00
Daniel Dunbar
9763106c94
LLVMBuild: Add info for gtest.
...
llvm-svn: 144445
2011-11-12 02:11:04 +00:00
Joe Abbey
1a12882b26
Adding dependencies to allow -DBUILD_SHARED_LIBS=true to complete.
...
llvm-svn: 142464
2011-10-19 00:13:13 +00:00
Frits van Bommel
862121733c
Update CMake build for new gtest file.
...
llvm-svn: 136215
2011-07-27 10:19:32 +00:00
Jay Foad
b02d795b0c
Merge gtest-1.6.0.
...
llvm-svn: 136212
2011-07-27 09:25:14 +00:00
Chris Lattner
0304b82f80
Fix a ton of comment typos found by codespell. Patch by
...
Luis Felipe Strano Moraes!
llvm-svn: 129558
2011-04-15 05:18:47 +00:00
Oscar Fuentes
15a668f50b
Fixes warnings emitted by Visual Studio 2010 compiler.
...
Patch by Erik Olofsson!
llvm-svn: 126796
2011-03-01 23:11:57 +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
Michael J. Spencer
da05a8149b
Fix VC2010 build.
...
llvm-svn: 116833
2010-10-19 18:04:06 +00:00
Oscar Fuentes
a6ffccab95
Build with RTTI and exceptions disabled. Only in GCC for now.
...
llvm-svn: 116682
2010-10-17 02:26:16 +00:00
Michael J. Spencer
41a41945d3
gtest: Fix warnings on MinGW.
...
llvm-svn: 115945
2010-10-07 18:29:44 +00:00
Michael J. Spencer
303f42d7e6
CMake: Fix warning in gtest.
...
llvm-svn: 115935
2010-10-07 18:12:54 +00:00
Francois Pichet
fae8819a7a
Fix MSVC release mode compilation error.
...
llvm-svn: 115407
2010-10-02 03:26:54 +00:00
Oscar Fuentes
40caeda472
Reverting "CMake: Don't include tools, unittets, or examples as
...
available targets unless LLVM_INCLUDE_X is ON. LLVM_BUILD_X implies
LLVM_INCLUDE_X"
It breaks the configuration phase when cmake is invoked without
parameters, it is too complex for the purpose and introduces an
incovenience for the user (as both LLVM_BUILD_X and LLVM_INCLUDE_X
must set to OFF for not including X on the build)
llvm-svn: 114795
2010-09-25 20:25:25 +00:00
Michael J. Spencer
3302cf4ac1
CMake: Don't include tools, unittets, or examples as available targets
...
unless LLVM_INCLUDE_X is ON. LLVM_BUILD_X implies LLVM_INCLUDE_X
llvm-svn: 114747
2010-09-24 19:10:51 +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
Michael J. Spencer
090c16fb92
CMake: Build unittests.
...
llvm-svn: 114725
2010-09-24 09:01:13 +00:00
Chris Lattner
c3d0385834
delete dead code.
...
llvm-svn: 113075
2010-09-04 18:17:16 +00:00
Argyrios Kyrtzidis
75b69c1de3
Revert r111082. No warnings for this common pattern.
...
llvm-svn: 111102
2010-08-15 10:27:23 +00:00
Argyrios Kyrtzidis
70b248e3ac
Add ATTRIBUTE_UNUSED to methods that are not supposed to be used.
...
llvm-svn: 111082
2010-08-14 21:35:10 +00:00
Jakob Stoklund Olesen
d8190fe4cd
Silence a warning.
...
llvm-svn: 108169
2010-07-12 18:17:47 +00:00
Nick Lewycky
4d160cb75c
Don't link against libm and libpthread which don't exist in BeOS/Haiku. Also,
...
Haiku like Linux provides <regex.h>, so use it. Patch by Paul Davey!
llvm-svn: 106620
2010-06-23 06:48:34 +00:00
Benjamin Kramer
61be8071e1
Forgot to update the most important part of the gtest modifications readme.
...
llvm-svn: 105396
2010-06-03 17:11:49 +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
Benjamin Kramer
11251078ce
Merge gtest-1.5.0.
...
llvm-svn: 105354
2010-06-02 22:02:30 +00:00
Benjamin Kramer
fa12ea38cc
Merge gtest-1.4.0.
...
llvm-svn: 105353
2010-06-02 22:02:11 +00:00