Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix distcheck (populate tesh_files, even when !HAVE_MC).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 15 Jul 2022 21:16:57 +0000 (23:16 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 15 Jul 2022 21:19:23 +0000 (23:19 +0200)
MANIFEST.in
examples/cpp/CMakeLists.txt

index 09a068e..5be3136 100644 (file)
@@ -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
index c16f574..bc8952b 100644 (file)
@@ -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})