Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
SuperElastix
Commits
240e9a32
Commit
240e9a32
authored
Jan 19, 2018
by
Niels Dekker
Browse files
WIP: Adjusted CTest.cmake according to more likely SuperElastix settings
parent
19cd89ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
CTest.cmake
View file @
240e9a32
set
(
CTEST_SOURCE_DIRECTORY
"$ENV{HOME}/workspace/tmp/dashboards/libssh/source"
)
set
(
CTEST_BINARY_DIRECTORY
"$ENV{HOME}/workspace/tmp/dashboards/libssh/build"
)
#=========================================================================
#
# Copyright Leiden University Medical Center, Erasmus University Medical
# Center and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#=========================================================================
set
(
CTEST_SOURCE_DIRECTORY
"$ENV{HOME}/src"
)
set
(
CTEST_BINARY_DIRECTORY
"$ENV{HOME}/build"
)
set
(
CTEST_SITE
"lkeb-selx01"
)
set
(
CTEST_SITE
"host.libssh.org"
)
set
(
CTEST_BUILD_NAME
"linux-gcc-default"
)
find_program
(
CTEST_GIT_COMMAND NAMES git
)
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_BUILD_CONFIGURATION
"Profiling"
)
set
(
CTEST_BUILD_OPTIONS
"-DWITH_SSH1=ON -WITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON -DWITH_GCRYPT=OFF"
)
execute_process
(
COMMAND
${
CTEST_GIT_COMMAND
}
rev-parse --short HEAD
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
OUTPUT_VARIABLE SELX_GIT_COMMIT_SHA
)
execute_process
(
COMMAND
${
CTEST_GIT_COMMAND
}
name-rev --name-only HEAD
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
OUTPUT_VARIABLE SELX_GIT_BRANCH_NAME
)
set
(
WITH_MEMCHECK TRUE
)
set
(
WITH_COVERAGE TRUE
)
set
(
CTEST_BUILD_NAME
"
${
SELX_GIT_BRANCH_NAME
}
;commit=SHA\:
${
SELX_GIT_COMMIT_SHA
}
"
)
#######################################################################
set
(
CTEST_CMAKE_GENERATOR
"Unix Makefiles"
)
set
(
CTEST_BUILD_CONFIGURATION Release
)
set
(
CTEST_BUILD_OPTIONS
"-j4"
)
ctest_empty_binary_directory
(
${
CTEST_BINARY_DIRECTORY
}
)
find_program
(
CTEST_GIT_COMMAND NAMES git
)
find_program
(
CTEST_COVERAGE_COMMAND NAMES gcov
)
find_program
(
CTEST_MEMORYCHECK_COMMAND NAMES valgrind
)
set
(
CTEST_MEMORYCHECK_SUPPRESSIONS_FILE
${
CTEST_SOURCE_DIRECTORY
}
/tests/valgrind.supp
)
if
(
NOT EXISTS
"
${
CTEST_SOURCE_DIRECTORY
}
"
)
set
(
CTEST_CHECKOUT_COMMAND
"
${
CTEST_GIT_COMMAND
}
clone
git
://git
.libssh.org/projects/libssh/libssh
.git
${
CTEST_SOURCE_DIRECTORY
}
"
)
set
(
CTEST_CHECKOUT_COMMAND
"
${
CTEST_GIT_COMMAND
}
clone
https
://git
hub.com/SuperElastix/SuperElastix
.git
${
CTEST_SOURCE_DIRECTORY
}
"
)
endif
()
set
(
CTEST_UPDATE_COMMAND
"
${
CTEST_GIT_COMMAND
}
"
)
...
...
@@ -37,10 +60,4 @@ ctest_update()
ctest_configure
()
ctest_build
()
ctest_test
()
if
(
WITH_COVERAGE AND CTEST_COVERAGE_COMMAND
)
ctest_coverage
()
endif
(
WITH_COVERAGE AND CTEST_COVERAGE_COMMAND
)
if
(
WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND
)
ctest_memcheck
()
endif
(
WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND
)
ctest_submit
()
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment