Add subsection how to do a full build with ctest+CITest
Merge request reports
Activity
- Resolved by Johannes Elmsheuser
- Resolved by Johannes Elmsheuser
416 417 ``` 418 ssh mypowerfullmachine.cern.ch 419 mkdir mybuild 420 setupATLAS -q 421 lsetup git 422 git clone https://gitlab.cern.ch/atlas/athena.git 423 asetup none,gcc14,opt,cmakesetup --cmakeversion=4.0.1 424 ./athena/Projects/AthSimulation/build_externals.sh -c -t Release > external.log 2>&1 & 425 ./athena/Projects/AthSimulation/build.sh -t Release -x -DATLAS_ENABLE_CI_TESTS=TRUE -cmi > build.log 2>&1 & 426 ``` 427 428 When the build finished execute the following to run all `ctest` and `CITest`: 429 ``` 430 cd build/build/AthSimulation 431 source $HOME/mybuild/athena/Projects/AthSimulation/build_env.sh The history of this choice is in https://its.cern.ch/jira/browse/ATEAM-1000 - so let's keep it.
We need to understand this. When you are setting up a nightly via
asetup
you are not sourcingbuild_env.sh
either. So I don't understand why it's needed when setting up a standalone build. Maybe @akraszna has some insights?After some delay...
Ahh...
The problem here is that all environment setup beyonf the basicasetup none...
stuff at the beginning, is happening inside of thebuild_externals.sh
andbuild.sh
scripts. And for the CI tests to be able to run, you have to be in an environment in which you built "the project".Sourcing the
build_env.sh
script is I believe the most straight forward way of getting into that environment. (Remember,build_env.sh
is mainly setting up the externals project, plus a few bits and bobs. It's not setting up the runtime environment of the top-most project.)What's the main goal of this section? (Sorry, didn't bother reading the whole thing...
) If this is mainly about being able to run the tests, and developing code "in a full build", then I would approach things differently. Since when I develop code like that myself, I follow a different set of steps. (But not worth going into it if running the tests here is more of a side-project.)Edited by Attila Krasznahorkay
408 408 make 409 409 source ./${LCG_PLATFORM}/setup.sh 410 410 ``` 411 412 ## Building a project with subsequent full testing 413 414 The following shows how to build a Project like e.g. `AthSimulation` locally by hand using a new compiler version. In addition this build enables the `CITest` in the configuration that can be executed along with the `ctest` subsequently. More about the `CITest` and how to run them also individually is at the [link](https://gitlab.cern.ch/atlas/athena/-/tree/main/AtlasTest/CITest?ref_type=head). 415 416 417 ``` 418 ssh mypowerfullmachine.cern.ch 419 mkdir mybuild 420 setupATLAS -q 421 lsetup git 422 git clone https://gitlab.cern.ch/atlas/athena.git 423 asetup none,gcc14,opt,cmakesetup --cmakeversion=4.0.1 Clicking through all 24.0 Jenkins configurations linked from https://atlas-jenkins.cern.ch shows
(a) all x86, 24.0 builds use:
asetup none,$comp,$mode --cmakesetup --cmakeversion 3.27.5
(b) all aarch64,24.0 builds use
asetup none,$comp,$mode --os=el9 lsetup git lsetup "cmake 3.27.5"
Thanks for the info @elmsheus. OK, so we would not need to update anything if we change the default.