Skip to content

Commit

Permalink
Cdash: Adding logic in CMakeLists and auxillary file for posting to C…
Browse files Browse the repository at this point in the history
…Dash
  • Loading branch information
agsalin committed Jul 21, 2015
1 parent 5acbdab commit c7e5dec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Expand Up @@ -171,6 +171,11 @@ if (SET_COMPILERS_AUTOMATICALLY)
PROJECT(Albany)
endif()

# AGS: Adding these lines so Ctest can be run to submit to cdash dashboard
# Uses CTestConfig.cmake file for Cdash info.
ENABLE_TESTING()
INCLUDE(CTest)

set(ALBANY_ENABLE_FORTRAN ON CACHE BOOL "enable fortran" )

IF (CMAKE_Fortran_COMPILER AND ALBANY_ENABLE_FORTRAN) # Enable Fortran if it is enabled in Trilinos.
Expand Down Expand Up @@ -1047,8 +1052,6 @@ endif(DOXYGEN_FOUND)

add_subdirectory(src)

enable_testing()

# Timeout real long running tests

IF(ALBANY_CTEST_TIMEOUT)
Expand Down
16 changes: 16 additions & 0 deletions CTestConfig.cmake
@@ -0,0 +1,16 @@
## 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 submit to the CDash dashboard:
## ENABLE_TESTING()
## INCLUDE(CTest)

set(CTEST_PROJECT_NAME "Albany")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "cdash.sandia.gov")
set(CTEST_DROP_LOCATION "/CDash-2-3-0/submit.php?project=Albany")
set(CTEST_DROP_SITE_CDASH TRUE)

0 comments on commit c7e5dec

Please sign in to comment.