From: Martin Quinson Date: Tue, 6 Oct 2015 19:43:34 +0000 (+0200) Subject: add the ISP/UMPIRE tests to the dist in any case X-Git-Tag: v3_12~24 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0fbb2ce49d807800629638bb182ef8cc159a77bf add the ISP/UMPIRE tests to the dist in any case --- diff --git a/teshsuite/smpi/isp/umpire/CMakeLists.txt b/teshsuite/smpi/isp/umpire/CMakeLists.txt index 6cb426be04..947aa9e197 100644 --- a/teshsuite/smpi/isp/umpire/CMakeLists.txt +++ b/teshsuite/smpi/isp/umpire/CMakeLists.txt @@ -169,27 +169,12 @@ set(umpire_src_other type-no-free-exhaustive.c ) -# Add every file to the archive -############################### - -set(sources "") -foreach(s ${umpire_src_other}) - set(sources ${sources} ${CMAKE_CURRENT_SOURCE_DIR}/${s}) -endforeach() - -foreach(file ${umpire_tests_passing} ${umpire_tests_failing} ${umpire_tests_problematic} ) - set(sources ${sources} ${CMAKE_CURRENT_SOURCE_DIR}/${file}) -endforeach() - # Build the tests ################# set(umpire_tesh "") -# set(examples_src ${examples_src} ${sources} PARENT_SCOPE) set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/README PARENT_SCOPE) -# set(EXTRA_DIST ${EXTRA_DIST} ${CMAKE_CURRENT_SOURCE_DIR}/no-error-wait2.c PARENT_SCOPE) -# set(tesh_files ${tesh_files} ${umpire_tesh} PARENT_SCOPE) if(enable_smpi AND enable_smpi_ISP_testsuite) set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc") @@ -219,6 +204,21 @@ if(enable_smpi AND enable_smpi_ISP_testsuite) write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "! output display" APPEND) write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "\$ \${bindir:=.}/../../../../bin/smpirun -wrapper \"\${bindir:=.}/../../../../bin/simgrid-mc\" -hostfile ../../hostfile -platform ../../../../examples/platforms/small_platform.xml --log=xbt_cfg.thresh:warning -np 3 --cfg=smpi/running_power:1e9 --cfg=smpi/coll_selector:mpich \${bindir:=.}/${test} --log=smpi_coll.thresh:error" APPEND) endforeach() +else() + + # If the tests are disabled, still add their files in the archive + ################################################################# + + set(sources "") + foreach(file ${umpire_src_other}) + set(sources ${sources} ${CMAKE_CURRENT_SOURCE_DIR}/${file}) + endforeach() + + foreach(file ${umpire_tests_passing} ${umpire_tests_failing} ${umpire_tests_problematic} ) + set(sources ${sources} ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c) + endforeach() + + set(txt_files ${txt_files} ${sources} PARENT_SCOPE) endif() # Erase all tesh files on cleanup: they are generated anyway