[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Sep 14 13:36:14 CDT 2010


branch "master" has been updated
       via  2359fc71589a0d868be966de0011f2fe242d504d (commit)
      from  22dfc54c50affccc06f25b6391b0bbd71f7da568 (commit)

Summary of changes:
 Hydra_v4.cmake |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 2359fc71589a0d868be966de0011f2fe242d504d
Author: David M. Lee <dlee at digium.com>
Date:   Tue Sep 14 13:34:39 2010 -0500

    Adding function to consistently register unit test suites.

diff --git a/Hydra_v4.cmake b/Hydra_v4.cmake
index fd1df87..ef17cf8 100755
--- a/Hydra_v4.cmake
+++ b/Hydra_v4.cmake
@@ -799,3 +799,12 @@ endfunction()
 function(hydra_component_package COMPONENTNAME DESC GROUPNAME)
       cpack_add_component(${COMPONENTNAME} DESCRIPTION ${DESC} GROUP ${GROUP})
 endfunction()
+
+# Adds a boost test executable to CTest.  These executable will be run
+# with 'make test' @param EXE - boost test executable.  Probably built
+# using hydra_component_build_standalone.
+function(boost_add_test EXE)
+   add_test(NAME ${EXE} COMMAND ${EXE}
+      --report_sink=${CMAKE_BINARY_DIR}/${EXE}-result.xml
+      --report_format=XML --report_level=detailed)
+endfunction()

-----------------------------------------------------------------------


-- 
asterisk-scf/release/cmake.git



More information about the asterisk-scf-commits mailing list