Commit Graph

17 Commits

Author SHA1 Message Date
Tim
bc83262f9d .vs/ and CmakeSettings.json to gitignore (#522) 2018-02-03 22:04:36 -07:00
Eric
7db02be244
Add support for GTest based unit tests. (#485)
* Add support for GTest based unit tests.

As Dominic and I have previously discussed, there is some
need/desire to improve the testing situation in Google Benchmark.

One step to fixing this problem is to make it easier to write
unit tests by adding support for GTest, which is what this patch does.

By default it looks for an installed version of GTest. However the
user can specify -DBENCHMARK_BUILD_EXTERNAL_GTEST=ON to instead
download, build, and use copy of gtest from source. This is
quite useful when Benchmark is being built in non-standard configurations,
such as against libc++ or in 32 bit mode.
2017-12-13 16:26:47 -07:00
Matt Clarkson
36c1eb6975 Coverage support with LCOV and GCOV
This patch adds a `coverage` target that allows coverage statisitics to be
retrieved for the project. It requires that lcov and gcov is installed and
that the generator is unix makefiles but this can be improved upon in
future releases.

To make it work use the coverage build type:

```
cmake -DCMAKE_BUILD_TYPE=Coverage .
make coverage
```
2015-05-13 09:17:38 +01:00
Matt Clarkson
8b5016034f Ignore tests 2015-05-12 17:15:41 +01:00
Matt Clarkson
b35b581e76 Ignore windows shared libraries 2015-03-31 10:13:11 +01:00
Matt Clarkson
07de09c94c Ignore python compiled files 2015-03-31 10:13:10 +01:00
Matt Clarkson
6880244eea Added windows executables to the ignore list 2015-03-31 10:13:07 +01:00
Dominic Hamon
5fe797b6f9 Add top-level folders to gitignore to enable out-of-source builds 2015-02-21 15:00:06 -08:00
Matt Clarkson
92ddf09f1d Ignore the result of make test 2014-08-15 11:09:23 +01:00
Matt Clarkson
c927845d5a get_git_version CMake function 2014-08-01 15:02:32 +01:00
Matt Clarkson
57fdf38f74 Allow shared libraries with BUILD_SHARED_LIBS 2014-07-30 18:08:54 +01:00
Dominic Hamon
58e52ba386 Ignore stanza for ninja users 2014-07-23 19:32:37 -07:00
Pierre Phaneuf
338eb89671 Ignore backup files. 2014-07-23 17:18:23 +01:00
Pierre Phaneuf
c96fb246b9 Add a few output files to .gitignore. 2014-06-04 15:34:58 +01:00
Dominic Hamon
d098d4c12e For those using YCM 2014-01-15 16:11:09 -08:00
Dominic Hamon
dd27ca30e6 ignore tags file 2014-01-07 17:02:54 -08:00
Dominic Hamon
403f354423 Initial commit
Benchmark library builds and runs but only single-threaded. Multithreaded
support needs a bit more love.

Currently requires some C++11 support (g++ 4.6.3 seems to work).
2013-12-18 16:58:23 -08:00