From: Martin Quinson Date: Mon, 31 Dec 2018 01:48:41 +0000 (+0100) Subject: py: fix out of tree build testing X-Git-Tag: v3_22~735 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2abb6075dc0d61d792c5b78900b1afad36db715c?hp=ce65e3e0615f1b3f2a408f1fee003b5974d4f14b;ds=sidebyside py: fix out of tree build testing --- diff --git a/examples/python/CMakeLists.txt b/examples/python/CMakeLists.txt index 8c014b06ad..bbf438665c 100644 --- a/examples/python/CMakeLists.txt +++ b/examples/python/CMakeLists.txt @@ -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 + --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example} ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh) endif() endforeach() diff --git a/examples/python/actor-create/actor-create.py b/examples/python/actor-create/actor-create.py index 2bc05b0783..52d4650162 100644 --- a/examples/python/actor-create/actor-create.py +++ b/examples/python/actor-create/actor-create.py @@ -67,7 +67,7 @@ if __name__ == '__main__': 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. # @@ -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.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();