Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add missing test before set properties.
[simgrid.git] / buildtools / Cmake / AddTests.cmake
index 3ef3eec..0804955 100644 (file)
@@ -461,29 +461,41 @@ if(${ARCH_32_BITS})
        set_tests_properties(gras-rpc-sg-32-thread PROPERTIES WILL_FAIL true)
        set_tests_properties(gras-all2all-sg-32-thread PROPERTIES WILL_FAIL true)
        set_tests_properties(gras-synchro-sg-32-thread PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-rpc-sg-32-ucontext PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-all2all-sg-32-ucontext PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-synchro-sg-32-ucontext PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-rpc-sg-32-raw PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-all2all-sg-32-raw PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-synchro-sg-32-raw PROPERTIES WILL_FAIL true)
+       if(HAVE_UCONTEXT_H)
+       set_tests_properties(gras-rpc-sg-32-ucontext PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-all2all-sg-32-ucontext PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-synchro-sg-32-ucontext PROPERTIES WILL_FAIL true)
+       endif(HAVE_UCONTEXT_H)
+       if(HAVE_RAWCTX)
+       set_tests_properties(gras-rpc-sg-32-raw PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-all2all-sg-32-raw PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-synchro-sg-32-raw PROPERTIES WILL_FAIL true)
+       endif(HAVE_RAWCTX)
 else(${ARCH_32_BITS})
        set_tests_properties(gras-rpc-sg-64-thread PROPERTIES WILL_FAIL true)
        set_tests_properties(gras-all2all-sg-64-thread PROPERTIES WILL_FAIL true)
        set_tests_properties(gras-synchro-sg-64-thread PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-rpc-sg-64-ucontext PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-all2all-sg-64-ucontext PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-synchro-sg-64-ucontext PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-rpc-sg-64-raw PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-all2all-sg-64-raw PROPERTIES WILL_FAIL true)
-       set_tests_properties(gras-synchro-sg-64-raw PROPERTIES WILL_FAIL true)
+       if(HAVE_UCONTEXT_H)
+       set_tests_properties(gras-rpc-sg-64-ucontext PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-all2all-sg-64-ucontext PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-synchro-sg-64-ucontext PROPERTIES WILL_FAIL true)
+       endif(HAVE_UCONTEXT_H)
+       if(HAVE_RAWCTX)
+       set_tests_properties(gras-rpc-sg-64-raw PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-all2all-sg-64-raw PROPERTIES WILL_FAIL true)
+       set_tests_properties(gras-synchro-sg-64-raw PROPERTIES WILL_FAIL true)
+       endif(HAVE_RAWCTX)
 endif(${ARCH_32_BITS})
 if(HAVE_MC)
        set_tests_properties(mc-bugged1-thread PROPERTIES WILL_FAIL true)
        set_tests_properties(mc-bugged2-thread PROPERTIES WILL_FAIL true)
        set_tests_properties(mc-centralized-thread PROPERTIES WILL_FAIL true)
-       set_tests_properties(mc-centralized-ucontext PROPERTIES WILL_FAIL true)
-       set_tests_properties(mc-centralized-raw PROPERTIES WILL_FAIL true)
+       if(HAVE_UCONTEXT_H)
+           set_tests_properties(mc-centralized-ucontext PROPERTIES WILL_FAIL true)
+    endif(HAVE_UCONTEXT_H)
+       if(HAVE_RAWCTX)
+           set_tests_properties(mc-centralized-raw PROPERTIES WILL_FAIL true)
+       endif(HAVE_RAWCTX)
 endif(HAVE_MC)
 endif(release)