Adding submission to cdash

This commit is contained in:
Charlton, Scott R 2023-01-12 19:48:33 -07:00
parent 4eef971052
commit df7a58898e
4 changed files with 52 additions and 2 deletions

3
.gitignore vendored
View File

@ -209,3 +209,6 @@ doc/RELEASE
/unit/unit.opt
/unit/unit.plg
/unit/x64
# builds (folders beginning with _ (underscore)
/_*

View File

@ -1,5 +1,5 @@
# CMAKE_MSVC_RUNTIME_LIBRARY requires 3.15
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.20)
project (
IPhreeqc

View File

@ -1 +1,16 @@
set (CTEST_PROJECT_NAME "IPhreeqc")
## 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 "iphreeqc")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
set(CTEST_DROP_METHOD "https")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=iphreeqc")
set(CTEST_DROP_SITE_CDASH TRUE)

32
ctest.cmake Normal file
View File

@ -0,0 +1,32 @@
include(CTestConfig.cmake)
site_name(CTEST_SITE)
set(CTEST_BUILD_NAME ${CMAKE_HOST_SYSTEM_NAME})
set(CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}")
set(CTEST_BINARY_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}/_ctest")
##set(ENV{CXXFLAGS} "--coverage")
set(CTEST_CMAKE_GENERATOR Ninja)
set(CTEST_CONFIGURATION_TYPE Debug)
set(CTEST_BUILD_CONFIGURATION Debug)
set(CTEST_USE_LAUNCHERS 1)
set(CTEST_UPDATE_TYPE git)
set(CTEST_UPDATE_COMMAND git)
set(CTEST_UPDATE_VERSION_ONLY TRUE)
##set(CTEST_COVERAGE_COMMAND "gcov")
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
ctest_start("Continuous")
ctest_update()
ctest_configure()
ctest_build()
ctest_test()
#ctest_coverage()
if (CTEST_MEMORYCHECK_COMMAND)
ctest_memcheck()
endif()
ctest_submit()