Skip to content

Commit

Permalink
make test publishes to cdash by default.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.csail.mit.edu/locomotion/robotlib/trunk@7828 c9849af7-e679-4ec6-a44e-fc146a885bd3
  • Loading branch information
russt committed Nov 27, 2013
1 parent 9844f5e commit ee05dc3
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,6 @@ endif()

#set(CMAKE_CTEST_COMMAND "${CMAKE_CTEST_COMMAND} --output-on-failure") # not working
enable_testing()
include(CTest)

# Note: use cmake/add_matlab_unit_tests.pl to write ctest scripts (but i advise doing it at test time, not configure time). - Russ
13 changes: 13 additions & 0 deletions CTestConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "Drake")
set(CTEST_NIGHTLY_START_TIME "22:00:00 EDT")

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "kobol.csail.mit.edu")
set(CTEST_DROP_LOCATION "/cd/submit.php?project=Drake")
set(CTEST_DROP_SITE_CDASH TRUE)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mlint :

test : all
cmake/add_matlab_unit_tests.pl
@cd pod-build && ctest --output-on-failure --timeout 600
@cd pod-build && ctest -D ExperimentalTest --output-on-failure --timeout 600

.PHONY: check_prereqs install_prereqs_macports install_prereqs_homebrew install_prereqs_ubuntu
check_prereqs:
Expand Down
16 changes: 16 additions & 0 deletions cmake/new_lcmtypes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@

cmake_minimum_required(VERSION 2.8.3) # for the CMakeParseArguments macro

# Policy settings to prevent warnings on 2.6 but ensure proper operation on
# 2.4.
if(COMMAND cmake_policy)
# Logical target names must be globally unique.
cmake_policy(SET CMP0002 OLD)
# Libraries linked via full path no longer produce linker search paths.
cmake_policy(SET CMP0003 OLD)
# Preprocessor definition values are now escaped automatically.
cmake_policy(SET CMP0005 OLD)
if(POLICY CMP0011)
# Included scripts do automatic cmake_policy PUSH and POP.
cmake_policy(SET CMP0011 OLD)
endif(POLICY CMP0011)
endif()


find_package(PkgConfig REQUIRED)
pkg_check_modules(LCM REQUIRED lcm)

Expand Down

0 comments on commit ee05dc3

Please sign in to comment.