From: Arnaud Giersch Date: Fri, 15 Jul 2022 21:16:57 +0000 (+0200) Subject: Fix distcheck (populate tesh_files, even when !HAVE_MC). X-Git-Tag: v3.32~137^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9345016971f87a03df1530f6a81ed1b5b29ac358 Fix distcheck (populate tesh_files, even when !HAVE_MC). --- diff --git a/MANIFEST.in b/MANIFEST.in index 09a068e084..5be3136f88 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -553,12 +553,12 @@ include examples/python/exec-async/exec-async.py include examples/python/exec-async/exec-async.tesh include examples/python/exec-basic/exec-basic.py include examples/python/exec-basic/exec-basic.tesh -include examples/python/exec-basic/exec-ptask.py -include examples/python/exec-basic/exec-ptask.tesh include examples/python/exec-cpu-nonlinear/exec-cpu-nonlinear.py include examples/python/exec-cpu-nonlinear/exec-cpu-nonlinear.tesh include examples/python/exec-dvfs/exec-dvfs.py include examples/python/exec-dvfs/exec-dvfs.tesh +include examples/python/exec-ptask/exec-ptask.py +include examples/python/exec-ptask/exec-ptask.tesh include examples/python/exec-remote/exec-remote.py include examples/python/exec-remote/exec-remote.tesh include examples/python/io-degradation/io-degradation.py @@ -713,6 +713,7 @@ include examples/smpi/trace_call_location/trace_call_location.tesh include examples/smpi/trace_simple/trace_simple.c include examples/smpi/trace_simple/trace_simple.tesh include examples/sthread/pthread-mutex-simple.c +include examples/sthread/pthread-mutex-simple.tesh include examples/sthread/sthread-mutex-simple.c include src/include/catch_simgrid.hpp include teshsuite/java/semaphoregc/SemaphoreGC.java diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index c16f57408e..bc8952b46a 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -78,11 +78,11 @@ else() endforeach() endif() -if (SIMGRID_HAVE_MC) - # Hijack some regular tests to run them on top of the MC - foreach (example synchro-barrier synchro-mutex synchro-semaphore) - set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/s4u-mc-${example}.tesh) +# Hijack some regular tests to run them on top of the MC +foreach (example synchro-barrier synchro-mutex synchro-semaphore) + set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/s4u-mc-${example}.tesh) + if (SIMGRID_HAVE_MC) ADD_TESH(s4u-mc-${example} --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/${example} --setenv libdir=${CMAKE_BINARY_DIR}/lib @@ -92,8 +92,10 @@ if (SIMGRID_HAVE_MC) ${CMAKE_HOME_DIRECTORY}/examples/cpp/${example}/s4u-mc-${example}.tesh) add_dependencies(tests-mc s4u-${example}) - endforeach() + endif() +endforeach() +if (SIMGRID_HAVE_MC) # Dependency on the regular tests foreach(example mc-centralized-mutex) add_dependencies(tests-mc s4u-${example})