Gabriel Hare
a2fe23887a
Use “MATCHES” instead of “STREQUAL” to avoid ambiguous comparison.
...
NOTE: Unlike STREQUAL this comparison is supported pre and post CMake v3.1.0
2016-12-15 02:50:09 -08:00
Gabriel Hare
bb49539107
Revert "Increase CMake version to resolve developer warnings regarding implicit quoted dereference in STREQUAL comparison"
...
This reverts commit 8f7a263446 .
2016-12-15 02:46:13 -08:00
Gabriel Hare
c4ab9d31ed
Identify Clang compiler when used as an MSVC extension
2016-12-15 00:40:03 -08:00
Gabriel Hare
8f7a263446
Increase CMake version to resolve developer warnings regarding implicit quoted dereference in STREQUAL comparison
2016-12-15 00:31:56 -08:00
Gabriel Hare
9eba823269
Demonstrate that compiler is identified as MSVC when VS2014 Clang extension is used
2016-12-14 23:11:20 -08:00
Patrick Johnmeyer
478b6545b2
Merge pull request #135 from jumonatr/master
...
Update Docs Hash
2016-12-03 22:57:09 -06:00
Julien Monat Rodier
0d77b1ae10
Update docs reference to avoid bad path names on windows
2016-10-11 13:00:40 -07:00
Patrick Johnmeyer
d8e27e1825
Merge pull request #127 from pjohnmeyer/up_gcc_clang_warning_levels
...
Up non-MSVC warning levels
2016-08-30 20:45:40 -05:00
Patrick Johnmeyer
1d0e157c5a
Merge pull request #126 from pjohnmeyer/up_msvc_warning_levels
...
Up MSVC warning levels
2016-08-30 20:45:20 -05:00
Patrick Johnmeyer
c431be9f94
Merge pull request #128 from killoctal/useSize_t
...
Use size_t for array or vector index
2016-08-30 20:44:49 -05:00
Gabriel Schlozer
eca039304b
Used size_t for CHECK macros
2016-08-29 22:36:31 +02:00
Patrick Johnmeyer
7d7ba0aba4
Re-enable ignored-qualifiers warning and fix
2016-08-27 20:41:41 -05:00
Patrick Johnmeyer
e161d44077
Use CMake SET instead of string CONCAT
...
string(CONCAT...) was not available in older versions of CMake
targeted by this project.
2016-08-27 10:04:54 -05:00
Patrick Johnmeyer
2e2475fa54
Fix unused variable warnings
2016-08-27 09:55:37 -05:00
Patrick Johnmeyer
f0044e919d
Up warning level to -Wall/extra/error for non-MSVC
...
UTPP_AMPLIFY_WARNINGS can be turned OFF to disable the new behavior.
2016-08-27 09:54:32 -05:00
Patrick Johnmeyer
7e4fff3bb4
Fix "assignment operator could not be generated" warning
...
This shows up with /W4 on MSVC. Fixes #107 .
2016-08-27 08:27:15 -05:00
Patrick Johnmeyer
7c15942751
Up warning level to /W4 /WX for MSVC-like compilers
...
Also adds a CMake option, UTPP_AMPLIFY_WARNINGS, that can be turned
OFF to disable the new behavior.
2016-08-27 08:26:05 -05:00
Patrick Johnmeyer
83dbcc076d
Merge pull request #115 from unittest-cpp/add_cmake_option_to_disable_running_tests_as_build_step
...
Add UTPP_INCLUDE_TESTS_IN_BUILD CMake option
2016-08-16 22:45:34 -05:00
Patrick Johnmeyer
097c71e6b8
Merge pull request #114 from unittest-cpp/long_and_short_macros
...
Long and short macros
2016-08-16 22:41:13 -05:00
Patrick Johnmeyer
77ae15ab8a
Merge pull request #120 from pjohnmeyer/check_by_reference
...
Take UnitTest::Check parameter by const reference
2016-08-16 22:22:58 -05:00
Patrick Johnmeyer
6b69ed78ba
Skip test build with same option as run
...
As part of this, changed the option name to
`UTPP_INCLUDE_TESTS_IN_BUILD`. The test target is still added to the
build and can be built/run separately using the CMake --target option.
2016-07-18 21:13:03 -05:00
Patrick Johnmeyer
14f317c40c
Eliminate double-negative in option name / value
...
UTPP_SKIP_TESTS_AS_BUILD_STEP with a default value of OFF was an
unfortunate choice, so this changes it to UTPP_RUN_TESTS_AS_BUILD_STEP
with a default value of ON.
2016-07-18 20:49:18 -05:00
Patrick Johnmeyer
fa97152619
Add UTPP_SKIP_TESTS_AS_BUILD_STEP CMake option
...
Helps address #104 .
2016-07-18 20:49:18 -05:00
Patrick Johnmeyer
de915185f6
Remove unused variable from test copy constructor
2016-07-15 23:58:48 -05:00
Patrick Johnmeyer
bec6ba56ec
Attempted fix for Travis build.
2016-07-15 23:54:59 -05:00
Patrick Johnmeyer
21589e5612
Take UnitTest::Check parameter by const reference
...
Fixes #119 and #7
2016-07-15 23:23:45 -05:00
Patrick Johnmeyer
510903c880
Merge pull request #117 from korli/master
...
Add support for Haiku.
2016-07-15 22:58:31 -05:00
Patrick Johnmeyer
c7a9e7fd9e
Merge pull request #116 from JonChesterfield/master
...
Prefix local variable message in CHECK macros with UnitTest_
2016-07-15 22:54:17 -05:00
Jerome Duval
053bcfc9c7
Add support for Haiku.
2016-06-03 13:13:33 +02:00
JonChesterfield
27317ec077
Prefix local variable message in CHECK macros with UnitTest_ to reduce the risk of name collisions with application code
2016-05-16 11:13:51 +01:00
Patrick Johnmeyer
910381fadc
Change UNITTEST_ENABLE_SHORT_MACROS to DISABLE
...
Also add a test file.
2016-05-07 01:02:20 -05:00
Patrick Johnmeyer
df386f189f
Add UNITTEST_ prefixes to remaining macros
...
TEST, SUITE, and REQUIRE macros now have UNITTEST_ and UNITTEST_IMPL_
prefixes like the others, completing the set.
2016-05-07 00:12:09 -05:00
Patrick Johnmeyer
c96bf52613
Replace UT_ macro prefix with UNITTEST_IMPL_
...
The UT_ prefix was primarily for "internal" macros. This commit seeks
to more consistently "namespace" UnitTest++ macros with the UNITTEST_
prefix, while also marking these particular macros as "private"
implementation details with the IMPL_ wart.
2016-05-06 23:57:59 -05:00
Patrick Johnmeyer
185b3d5086
Add UNITTEST_ versions of all CHECK macros
...
UNITTEST_ now prefixes the implementation of all CHECK macros.
Additionally, the build option UNITTEST_ENABLE_SHORT_MACROS can be
shut off, disabling the creation of the existing short forms. This is
helpful for users who may have conflicts with their projects or other
libs.
2016-05-06 23:44:02 -05:00
Patrick Johnmeyer
d220612eba
Merge pull request #111 from unittest-cpp/v1.6.1-prep
...
v1.6.1 prep
2016-05-04 22:48:32 -05:00
Patrick Johnmeyer
782e620fbb
Update versions to 1.6.1
2016-05-04 21:36:40 -05:00
Patrick Johnmeyer
1a62540b79
Determine autoconf package version from git tags
2016-05-04 21:30:44 -05:00
Patrick Johnmeyer
b7e0d70a63
Fix failures in make distcheck
2016-04-25 13:37:31 -05:00
Patrick Johnmeyer
90357e2138
Merge pull request #109 from bittwiddler1/master
...
autoconf & automake improvements
2016-04-19 22:13:28 -05:00
Patrick Johnmeyer
8973952bbe
Merge pull request #106 from jasonhorsburgh/master
...
Add support for CMake find_package()
Fixes #99
2016-04-19 22:09:19 -05:00
Patrick Johnmeyer
032e495bba
Merge branch 'master' of https://github.com/jasonhorsburgh/unittest-cpp into jasonhorsburgh-master
...
Conflicts:
CMakeLists.txt
2016-04-19 22:08:24 -05:00
Patrick Johnmeyer
843d17398f
Merge pull request #110 from stubb/patch-1
...
Fix spelling of UTPP_USE_PLUS_SIGN option comment.
2016-04-19 21:51:48 -05:00
bittwiddler1
791c37a9f1
Enabling silent build rules for automake
2016-04-16 19:12:21 -04:00
Kilian Köppchen
451ba1e2bc
Fix spelling of UTPP_USE_PLUS_SIGN option comment.
2016-04-14 15:23:10 +02:00
bittwiddler1
2a806451b1
Comment changes
...
Making the comments more explicative and less opinionated. :)
2016-04-07 15:03:34 -04:00
Saul Beniquez
80d6bf7568
Better native OS detection using AC_CANONICAL_HOST. More information here: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Canonicalizing.html
2016-04-07 14:56:31 -04:00
Saul Beniquez
8544b5b6be
Fix for #105 - Automake improvements: fixing pkgincludedir.
2016-04-07 14:55:53 -04:00
Jason Horsburgh
e88121f69e
Add support for CMake find_package()
...
Added export configuration for UnitTest++ target and installed the export and config file in libs/cmake/UnitTest++.
Added basic UnitTest++Config.cmake file which includes exported targets file and sets UTPP_INCLUDE_DIRS to the install location of the includes directory, this allows UnitTest++ to be used as a normal target in your own CMakeLists.txt file.
e.g.:
find_package(UnitTest++ REQUIRED NO_MODULE)
add_executable(foo ...)
include_directories(${UTPP_INCLUDE_DIRS})
target_link_libraries(foo UnitTest++)
which will ensure the library and installed headers paths are set up correctly for your own target.
2016-03-15 12:14:19 +00:00
Patrick Johnmeyer
b69b63ac2b
Update docs, versions for 1.6.0.
2016-02-29 22:32:58 -06:00
Patrick Johnmeyer
13687226ed
Merge pull request #101 from pjohnmeyer/add_more_vs_appveyor_configs
...
Fixes #86
2016-02-24 00:20:38 -06:00