From 789f366b88e1070506c09daf2ee394dd6b150b02 Mon Sep 17 00:00:00 2001 From: Chris Bielow Date: Wed, 27 Nov 2024 18:10:32 +0100 Subject: [PATCH] test TOPPAS pipelines regularly to ensure they are not out of date --- src/tests/toppas/CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/tests/toppas/CMakeLists.txt b/src/tests/toppas/CMakeLists.txt index bcf4f596df2..62e8fed1fa2 100644 --- a/src/tests/toppas/CMakeLists.txt +++ b/src/tests/toppas/CMakeLists.txt @@ -66,6 +66,24 @@ if(WITH_GUI) # ExecutePipeline requires Qt/GUI internally # do not test the output -- we just want the pipeline to run -- the tools # itself are tested separately + ## Run the examples in /share/OpenMS/examples, to make sure they are up to date + file(GLOB TOPPAS_EXAMPLE_PIPELINES ${CF_OPENMS_DATA_PATH}/examples/TOPPAS/*.toppas) + foreach(I_PIPELINE_PATH ${TOPPAS_EXAMPLE_PIPELINES}) + get_filename_component(I_FILE "${I_PIPELINE_PATH}" NAME) + if(I_FILE MATCHES "GenericWrapper_") + message(STATUS "Skipping ${I_FILE}") + continue() + endif() + if (I_FILE MATCHES "Ecoli_Identification" AND NOT COMET_BINARY) + message(STATUS "Skipping ${I_FILE} (Comet.exe is required but missing)") + continue() + endif() + message(STATUS "Adding TOPPAS example pipeline for testing: ${I_FILE} [WITH_GUI + ENABLE_PIPELINE_TESTING]") + add_test("TOPP_ExecutePipeline_${I_FILE}" ${TOPP_BIN_PATH}/ExecutePipeline -test -in "${I_PIPELINE_PATH}" -out_dir . -num_jobs 4) + endforeach() + + + ################### Labelfree quantification with IDMapping #################### ## Example usage (no actual test or data currently available)