Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move test declaration in proper CMakeLists.txt.
[simgrid.git] / teshsuite / lua / CMakeLists.txt
diff --git a/teshsuite/lua/CMakeLists.txt b/teshsuite/lua/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a213e80
--- /dev/null
@@ -0,0 +1,6 @@
+IF(SIMGRID_HAVE_LUA)
+  # Tests testing simulation from C but using lua for platform files. Executed like this
+  # ~$ ./masterslave platform.lua deploy.lua
+  ADD_TESH(lua-platform-masterslave                --setenv srcdir=${CMAKE_HOME_DIRECTORY} --setenv bindir=${CMAKE_BINARY_DIR} --cd ${CMAKE_BINARY_DIR} ${CMAKE_HOME_DIRECTORY}/teshsuite/lua/lua_platforms.tesh)
+  SET_TESTS_PROPERTIES(lua-platform-masterslave    PROPERTIES ENVIRONMENT "LUA_CPATH=${CMAKE_BINARY_DIR}/lib/lib?.${LIB_EXE}")
+ENDIF()