Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
am I stupid?!
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 11 Jan 2019 20:04:00 +0000 (21:04 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Fri, 11 Jan 2019 20:04:04 +0000 (21:04 +0100)
You only had one job: only activate the existing tests.

tools/cmake/Tests.cmake

index 66c1086..d0200dd 100644 (file)
@@ -73,7 +73,12 @@ MACRO(SET_TESH_PROPERTIES NAME FACTORIES)
     LIST(REMOVE_AT ARGR 0)
   ENDFOREACH()
   FOREACH(FACTORY ${FACTORIES})
-    set_tests_properties("${NAME}-${FACTORY}" PROPERTIES ${ARGR})
+    if ((${FACTORY} STREQUAL "thread" ) OR #¬†Always available, thanks to C++11 threads
+        (${FACTORY} STREQUAL "boost" AND HAVE_BOOST_CONTEXTS) OR
+        (${FACTORY} STREQUAL "raw" AND HAVE_RAW_CONTEXTS) OR
+        (${FACTORY} STREQUAL "ucontext" AND HAVE_UCONTEXT_CONTEXTS))
+      set_tests_properties("${NAME}-${FACTORY}" PROPERTIES ${ARGR})
+    endif()
   ENDFOREACH()
 ENDMACRO()