diff --git a/FairMQTest.cmake b/FairMQTest.cmake index cf83e39c..edf96449 100644 --- a/FairMQTest.cmake +++ b/FairMQTest.cmake @@ -40,14 +40,20 @@ endif() ctest_start(Continuous) -list(APPEND options - "-DDISABLE_COLOR=ON" - "-DBUILD_SDK_COMMANDS=ON" - "-DBUILD_SDK=ON" - "-DBUILD_DDS_PLUGIN=ON") +list(APPEND options "-DDISABLE_COLOR=ON") +if(HAS_ASIO AND HAS_DDS) + list(APPEND options "-DBUILD_SDK_COMMANDS=ON" "-DBUILD_SDK=ON" "-DBUILD_DDS_PLUGIN=ON") +endif() +if(HAS_PMIX) + list(APPEND options "-DBUILD_SDK_COMMANDS=ON" "-DBUILD_PMIX_PLUGIN=ON") +endif() +if(HAS_ASIO AND HAS_ASIOFI) + list(APPEND options "-DBUILD_OFI_TRANSPORT=ON") +endif() if(RUN_STATIC_ANALYSIS) list(APPEND options "-DRUN_STATIC_ANALYSIS=ON") endif() +list(REMOVE_DUPLICATES options) list(JOIN options ";" optionsstr) ctest_configure(OPTIONS "${optionsstr}") diff --git a/Jenkinsfile b/Jenkinsfile index 664a0684..e665db35 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,7 @@ def jobMatrix(String type, List specs) { def os = spec.os def ver = spec.ver def check = spec.check + def extra = spec.extra nodes[label] = { node(selector) { @@ -18,7 +19,7 @@ def jobMatrix(String type, List specs) { checkout scm def jobscript = 'job.sh' - def ctestcmd = "ctest -S FairMQTest.cmake -V --output-on-failure" + def ctestcmd = "ctest ${extra} -S FairMQTest.cmake -V --output-on-failure" sh "echo \"set -e\" >> ${jobscript}" sh "echo \"export LABEL=\\\"\${JOB_BASE_NAME} ${label}\\\"\" >> ${jobscript}" if (selector =~ /^macos/) { @@ -81,10 +82,14 @@ pipeline{ steps{ script { def builds = jobMatrix('build', [ - [os: 'ubuntu', ver: '20.04', arch: 'x86_64', compiler: 'gcc-9'], - [os: 'fedora', ver: '32', arch: 'x86_64', compiler: 'gcc-10'], - [os: 'fedora', ver: '34', arch: 'x86_64', compiler: 'gcc-11'], - [os: 'macos', ver: '11', arch: 'x86_64', compiler: 'apple-clang-12'], + [os: 'ubuntu', ver: '20.04', arch: 'x86_64', compiler: 'gcc-9', + extra: '-DHAS_DDS=ON -DHAS_ASIO=ON -DHAS_PMIX=ON'], + [os: 'fedora', ver: '32', arch: 'x86_64', compiler: 'gcc-10', + extra: '-DHAS_PMIX=ON -DHAS_DDS=ON -DHAS_ASIOFI=ON -DHAS_ASIO=ON'], + [os: 'fedora', ver: '34', arch: 'x86_64', compiler: 'gcc-11', + extra: '-DHAS_PMIX=ON -DHAS_DDS=ON -DHAS_ASIOFI=ON -DHAS_ASIO=ON'], + [os: 'macos', ver: '11', arch: 'x86_64', compiler: 'apple-clang-12', + extra: '-DHAS_DDS=ON -DHAS_ASIO=ON'], ]) parallel(builds)