Commit graph

233 commits

Author SHA1 Message Date
Gabriel Schlozer
eca039304b Used size_t for CHECK macros 2016-08-29 22:36:31 +02: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
Patrick Johnmeyer
6ce4bbe8d9 Use build_script instead of build for appveyor
Using build_script to run cmake --build fixes issues with msbuild
not always finding the correct file formats, etc.
2016-02-23 23:59:31 -06:00
Patrick Johnmeyer
8080a0c798 Fix CMAKE_GENERATOR values 2016-02-23 23:54:50 -06:00
Patrick Johnmeyer
5908e00efb Add forgotten quotes around CMAKE_GENERATOR 2016-02-23 23:49:15 -06:00
Patrick Johnmeyer
6c78c6ea2b Add more compilers to appveyor config 2016-02-23 23:45:52 -06:00
Patrick Johnmeyer
5ad8cd86c9 Add new tests to Makefile.am 2016-02-23 23:12:40 -06:00
Patrick Johnmeyer
240bf00f49 Merge branch 'paxos1977-paxos1977-pjohnmeyer-RequiredMacro' 2016-02-23 23:10:35 -06:00
Patrick Johnmeyer
898f18d799 Enable C++11 support in autoconf 2016-02-23 23:10:30 -06:00
Patrick Johnmeyer
962387ce5d Update autotools for new source files. 2016-02-23 23:10:29 -06:00
Austin Gilbert
0a99a9a5c9 Correcting RequiredCheckArrayCloseDoesNotHaveSideEffectsWhenPassing to exercise the passing case (per the UT name). 2016-02-23 23:10:29 -06:00
Patrick Johnmeyer
9fd7b2202e Merge pull request #98 from paxos1977/dev/FixingIncorrectUnitTest
Fixing a unit test that's exercising the wrong case
2016-02-23 22:45:42 -06:00
Patrick Johnmeyer
983a990484 Merge pull request #95 from pjohnmeyer/paxos1977-pjohnmeyer-RequiredMacro
Add REQUIRE macro for stopping tests early
2016-02-23 22:44:31 -06:00
Patrick Johnmeyer
073a1ea0e1 Enable C++11 support in autoconf 2016-02-23 21:44:25 -06:00
Patrick Johnmeyer
adebd8376a Update autotools for new source files. 2016-02-23 21:11:19 -06:00
Austin Gilbert
1c30bcd16b Correcting RequiredCheckArrayCloseDoesNotHaveSideEffectsWhenPassing to exercise the passing case (per the UT name). 2016-02-08 21:54:58 -06:00
Austin Gilbert
de385090d9 Merge branch 'dev/RequireMacroUsingLongjmp' into paxos1977-pjohnmeyer-RequiredMacro 2016-02-08 21:45:35 -06:00
Austin Gilbert
2e53a17d7e With code proposed in Pull Request #95, when UNITTEST_NO_EXCEPTIONS is defined, the definition for REQUIRE macro is empty.
This commit adds functionality for stopping unit tests early when UNITTEST_NO_EXCEPTIONS is defined via std::longjmp.
2016-02-08 21:38:56 -06:00