Branch: refs/heads/master
Home: https://github.com/xrootd/xrootd
Commit: 7c033c02f07428d4944762daf0cc8a10c2e52d0f
https://github.com/xrootd/xrootd/commit/7c033c02f07428d4944762daf0cc8a10c2e52d0f
Author: Guilherme Amadio <[log in to unmask]>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M tests/common/CMakeLists.txt
Log Message:
-----------
[Tests] Add CppUnit include directories to test targets
Commit: a55144c42384f428bed0d75ce00b5581704d1d2e
https://github.com/xrootd/xrootd/commit/a55144c42384f428bed0d75ce00b5581704d1d2e
Author: Guilherme Amadio <[log in to unmask]>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M CMakeLists.txt
R cmake/XRootDCommon.cmake
M src/XrdApps.cmake
M src/XrdCl/CMakeLists.txt
M src/XrdCrypto.cmake
M src/XrdDaemons.cmake
M src/XrdEc/CMakeLists.txt
M src/XrdFfs.cmake
M src/XrdFrm.cmake
M src/XrdHttp.cmake
M src/XrdMacaroons.cmake
M src/XrdPfc.cmake
M src/XrdPlugins.cmake
M src/XrdPosix.cmake
M src/XrdSciTokens.cmake
M src/XrdSec.cmake
M src/XrdSecgsi.cmake
M src/XrdSeckrb5.cmake
M src/XrdSecztn.cmake
M src/XrdServer.cmake
M src/XrdSsi.cmake
M src/XrdTpc.cmake
M src/XrdUtils.cmake
M src/XrdXml.cmake
M tests/XrdCephTests/CMakeLists.txt
M tests/XrdClTests/CMakeLists.txt
M tests/XrdClTests/tls/CMakeLists.txt
M tests/XrdEcTests/CMakeLists.txt
M tests/XrdSsiTests/CMakeLists.txt
M tests/common/CMakeLists.txt
Log Message:
-----------
[CMake] Remove XRootDCommon.cmake
This module is hacky, so remove it. In particular, the call to
include_directories(../ ./ ...) adds the top directory of the
project to the list of includes, and on macOS where there is no
case-sensitivity, "#include <version>" somewhere includes the newly
added VERSION file with git information and causes compilation to
fail with the error below:
/Users/runner/work/xrootd/xrootd/src/../version:1:1:
error: unknown type name '$Format'
$Format:%(describe)$
^
/Users/runner/work/xrootd/xrootd/src/../version:1:8:
error: expected unqualified-id
$Format:%(describe)$
^
Commit: 3df27a31f374e07a838a916492c1a520e8f2195d
https://github.com/xrootd/xrootd/commit/3df27a31f374e07a838a916492c1a520e8f2195d
Author: Guilherme Amadio <[log in to unmask]>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M cmake/FindDavix.cmake
M src/XrdClHttp/CMakeLists.txt
Log Message:
-----------
[CMake] Update FindDavix.cmake module
Commit: f2a058d510e3cfaaf462fac82c16cc9bc2c9799a
https://github.com/xrootd/xrootd/commit/f2a058d510e3cfaaf462fac82c16cc9bc2c9799a
Author: Guilherme Amadio <[log in to unmask]>
Date: 2023-05-26 (Fri, 26 May 2023)
Changed paths:
A .ci/config.cmake
A CTestConfig.cmake
A test.cmake
Log Message:
-----------
[CMake] Add scripts to build/test XRootD with CTest
The test.cmake script is meant to automate some of the standard
configure, build, test, install cycle during development, but also
for continuous integration. The script can be generically called as
ctest -VV -S test.cmake
from the top directory of the repository. There are several options
to customize the build, the main ones are:
-DCOVERAGE=1 Enables test coverage analysis with gcov
-DMEMCHECK=1 Enables memory checking with valgrind
-DSTATIC_ANALYSIS=1 Enables static analysis with clang-tidy
-DINSTALL=1 Enables an extra step to call make install
When enabling coverage, a report is generated by default in the html/
directory inside the build directory. The results can be viewed by
opening the file html/coverage_details.html. This step can be disabled
by passing -DGCOVR=0 to ctest. It is recommended to use a debug build
to generate the coverage analysis.
The configuration can also be specified directly on the command line
via the -C option. For example, to run a coverage build in debug mode,
with less verbose output, and showing test output when a test failure
happens, one can run:
ctest -V --output-on-failure -C Debug -DCOVERAGE=1 -S test.cmake
Some environment variables can also influence the behavior of the
script, like CC, CXX, CMAKE_GENERATOR, CTEST_CONFIGURATION_TYPE,
CMAKE_BUILD_PARALLEL_LEVEL, CTEST_PARALLEL_LEVEL, and CMAKE_ARGS.
These are mostly self-explanatory and can be used to override the
provided defaults. For example, to build with the clang compiler
and use Ninja as CMake generator, one can run:
env CC=clang CXX=clang++ CMAKE_GENERATOR=Ninja ctest -V -S test.cmake
Finally, the script tries to load configuration files from the .ci
subdirectory in the source directory. The default configuration is
used if no specific configuration is found for the detected OS. For
example, on Ubuntu, a file named ubuntu.cmake will be used if present
instead of config.cmake. The script also tries to detect a version,
so, for example, on Alma, one could use almalinux8.cmake which would
have higher precedence than almalinux.cmake. The default config.cmake
tries to enable as many options as possible without failing if the
dependencies are not installed.
Compare: https://github.com/xrootd/xrootd/compare/f41e83c2c39f...f2a058d510e3
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
|