Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
py: fix out of tree build testing
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 31 Dec 2018 01:48:41 +0000 (02:48 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 31 Dec 2018 01:48:41 +0000 (02:48 +0100)
examples/python/CMakeLists.txt
examples/python/actor-create/actor-create.py

index 8c014b0..bbf4386 100644 (file)
@@ -7,6 +7,7 @@ foreach(example actor-create actor-yield exec-basic)
                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
                               --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
                               --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
                               --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
                               --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
+                              --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
                                ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh)
   endif()
 endforeach()
                                ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh)
   endif()
 endforeach()
index 2bc05b0..52d4650 100644 (file)
@@ -67,7 +67,7 @@ if __name__ == '__main__':
   e = simgrid.Engine(sys.argv)
 
   # Then you should load a platform file, describing your simulated platform
   e = simgrid.Engine(sys.argv)
 
   # Then you should load a platform file, describing your simulated platform
-  e.load_platform("../platforms/small_platform.xml");
+  e.load_platform("../../platforms/small_platform.xml");
 
   # And now you have to ask SimGrid to actually start your actors.
   #
 
   # And now you have to ask SimGrid to actually start your actors.
   #
@@ -92,7 +92,7 @@ if __name__ == '__main__':
   e.register_actor("sender", Sender)
   e.register_actor("forwarder", forwarder)
   # Once actors and functions are registered, just load the deployment file 
   e.register_actor("sender", Sender)
   e.register_actor("forwarder", forwarder)
   # Once actors and functions are registered, just load the deployment file 
-  e.load_deployment("actor-create/actor-create_d.xml")
+  e.load_deployment("actor-create_d.xml")
 
   # Once every actors are started in the engine, the simulation can start
   e.run();
 
   # Once every actors are started in the engine, the simulation can start
   e.run();