Skip to content

Commit

Permalink
tests: also set BUILDNAME and SITE in core/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Dec 6, 2019
1 parent 4592c89 commit 5c2b7dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
13 changes: 8 additions & 5 deletions core/CMakeLists.txt
Expand Up @@ -121,18 +121,21 @@ SET(host ${CMAKE_SYSTEM})

SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# enable "make test"
enable_testing()
set(CMAKE_CTEST_COMMAND ctest -V)
include(CTest)

# run git-info to collect sourcecode info
file(MAKE_DIRECTORY build)
execute_process(
COMMAND ${PROJECT_SOURCE_DIR}/scripts/git-info.sh
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/build
)

set(BUILDNAME "${BAREOS_FULL_VERSION}" CACHE STRING "site name variable for CDash")
set(SITE "${CMAKE_SYSTEM}" CACHE STRING "build name variable for CDash")
# enable "make test"
enable_testing()
set(CMAKE_CTEST_COMMAND ctest -V)
include(CTest)


INCLUDE(BareosExtractVersionInfo)

IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down
28 changes: 0 additions & 28 deletions core/CTestConfig.cmake

This file was deleted.

0 comments on commit 5c2b7dc

Please sign in to comment.