X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e0a3bd4de8a3104771a0e138694f6748c92d1c00..37f59772746532da25dbcbfae445039828dfd178:/examples/cpp/CMakeLists.txt diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index c16f57408e..1e4132106e 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}) @@ -211,6 +213,31 @@ foreach(example app-bittorrent app-masterworkers ${CMAKE_HOME_DIRECTORY}/examples/cpp/${example}/s4u-${example}.tesh) endforeach() +# Test non-DPOR reductions on a given MC test +foreach(example mc-failing-assert) + if(SIMGRID_HAVE_MC) +# State equality is not tested because it would take about 15 hours to run that test on my machine. +# We should first optimize mmalloc_heap_differ() which takes ~4sec for each pair to compare (maybe {175 x 174/ 2} pairs here) +# See the comment on mmalloc_heap_differ() in compare.cpp for more info on why it's hard to optimize. +# +# ADD_TESH(s4u-${example}-statequality --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/${example} +# --setenv libdir=${CMAKE_BINARY_DIR}/lib +# --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms +# --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example} +# --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example} +# ${CMAKE_HOME_DIRECTORY}/examples/cpp/${example}/s4u-${example}-statequality.tesh) + + ADD_TESH(s4u-${example}-nodpor --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/${example} + --setenv libdir=${CMAKE_BINARY_DIR}/lib + --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms + --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example} + --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example} + ${CMAKE_HOME_DIRECTORY}/examples/cpp/${example}/s4u-${example}-nodpor.tesh) + endif() + set(tesh_files ${tesh_files} ${CMAKE_HOME_DIRECTORY}/examples/cpp/${example}/s4u-${example}-statequality.tesh) + set(tesh_files ${tesh_files} ${CMAKE_HOME_DIRECTORY}/examples/cpp/${example}/s4u-${example}-nodpor.tesh) +endforeach() + # Examples not accepting factories ##################################