aboutsummaryrefslogtreecommitdiffstats
path: root/ctest
diff options
context:
space:
mode:
authorKevin Rocard <kevin.rocard@intel.com>2015-04-11 23:27:43 +0200
committerEric Laurent <elaurent@google.com>2015-04-24 13:39:14 -0700
commit4c18b3a9a3bc1a8fc4317f0076716ebdc81af917 (patch)
tree015dfaa3d43cb38ba97a2081130c0d77e7e822ca /ctest
parentef9cc769da415e23ce00f9af07783997929f5f8b (diff)
downloadexternal_parameter-framework-4c18b3a9a3bc1a8fc4317f0076716ebdc81af917.zip
external_parameter-framework-4c18b3a9a3bc1a8fc4317f0076716ebdc81af917.tar.gz
external_parameter-framework-4c18b3a9a3bc1a8fc4317f0076716ebdc81af917.tar.bz2
Add comments in ctest list file
Mainly add a some documentation about the custom cmake set_test_env function.
Diffstat (limited to 'ctest')
-rw-r--r--ctest/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctest/CMakeLists.txt b/ctest/CMakeLists.txt
index e9d6bb4..6ee2e10 100644
--- a/ctest/CMakeLists.txt
+++ b/ctest/CMakeLists.txt
@@ -26,11 +26,15 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Enable tests, coverage, memcheck, ...
+# See http://www.cmake.org/Wiki/CMake/Testing_With_CTest#Dashboard_Preparation
include(CTest)
# Ctest requires its configuration to be placed at the build root
configure_file(${CMAKE_CURRENT_LIST_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR} COPYONLY)
+# Set environement variables so that executables and libraries can be find by tests.
+# (avoids a make install before make test)
function(set_test_env TestName)
set_property(TEST ${TestName} PROPERTY ENVIRONMENT
PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}:$ENV{PATH}