Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Lua: add a test to check that global values are correctly duplicated
[simgrid.git] / buildtools / Cmake / AddTests.cmake
index c9e69de..1d1033e 100644 (file)
@@ -363,6 +363,12 @@ endif(HAVE_RAWCTX)
   endif(HAVE_TRACING)
 endif(HAVE_GTNETS)
 
+if(HAVE_NS3)
+ADD_TEST(msg-ns3-thread            ${CMAKE_BINARY_DIR}/bin/tesh        --cfg contexts/factory:thread           --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg    --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh)
+ADD_TEST(msg-ns3-ucontext      ${CMAKE_BINARY_DIR}/bin/tesh    --cfg contexts/factory:ucontext         --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg    --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh)
+ADD_TEST(msg-ns3-raw        ${CMAKE_BINARY_DIR}/bin/tesh       --cfg contexts/factory:raw              --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg    --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh)
+endif(HAVE_NS3)
+
 IF(HAVE_TRACING)
   ADD_TEST(tracing-ms                          ${CMAKE_BINARY_DIR}/bin/tesh    --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg        --cd ${CMAKE_HOME_DIRECTORY}/examples/msg tracing/ms.tesh)
   ADD_TEST(tracing-categories          ${CMAKE_BINARY_DIR}/bin/tesh    --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg        --cd ${CMAKE_HOME_DIRECTORY}/examples/msg tracing/categories.tesh)
@@ -373,10 +379,12 @@ ENDIF(HAVE_TRACING)
 
 # Lua examples
 if(HAVE_LUA)
+ADD_TEST(lua-duplicated-globals                                ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_HOME_DIRECTORY}/examples/lua/state_cloner duplicated_globals.tesh)
 ADD_TEST(lua-masterslave                               ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_HOME_DIRECTORY}/examples/lua/masterslave master_slave.tesh)
 ADD_TEST(lua-mult-matrix                               ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_HOME_DIRECTORY}/examples/lua/multi_matrix mult_matrix.tesh)
 ADD_TEST(lua-masterslave-bypass                ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_HOME_DIRECTORY}/examples/lua/console master_slave_bypass.tesh)
 ADD_TEST(lua-msg-masterslave-console   ${CMAKE_BINARY_DIR}/bin/tesh --cd ${CMAKE_BINARY_DIR}/examples/msg/masterslave --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave ${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave/masterslave_console.tesh)
+set_tests_properties(lua-duplicated-globals                            PROPERTIES ENVIRONMENT "LUA_CPATH=${CMAKE_BINARY_DIR}/examples/lua/?.so")
 set_tests_properties(lua-masterslave                           PROPERTIES ENVIRONMENT "LUA_CPATH=${CMAKE_BINARY_DIR}/examples/lua/?.so")
 set_tests_properties(lua-mult-matrix                           PROPERTIES ENVIRONMENT "LUA_CPATH=${CMAKE_BINARY_DIR}/examples/lua/?.so")
 set_tests_properties(lua-masterslave-bypass            PROPERTIES ENVIRONMENT "LUA_CPATH=${CMAKE_BINARY_DIR}/examples/lua/?.so")
@@ -448,35 +456,6 @@ endif(${ARCH_32_BITS})
 
 # Those tests are broken : set to "fail" for release v3.6
 if(release)
-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)
-       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)
-       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)