From: Martin Quinson Date: Fri, 28 Feb 2014 11:03:50 +0000 (+0100) Subject: add a test reproducing the issue experienced by Luke Bertot X-Git-Tag: v3_11~245 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/40bf3513c842637016c4da23a4dce6de78582cba?hp=67c5bbaeea1063bb13bab47095e6f6c62f772dd4 add a test reproducing the issue experienced by Luke Bertot --- diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index 7d7336b00f..1831abca4f 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -113,7 +113,8 @@ if(NOT enable_memcheck) # these tests need the assertion mechanism # exclude them from memcheck, as they normally die, leaving lots of unfree'd objects IF(enable_debug AND NOT enable_memcheck) - ADD_TEST(tesh-parser-bogus-symmetric ${TESH_COMMAND} ${TESH_OPTION} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms bogus_two_hosts_asymetric.tesh) + ADD_TEST(tesh-parser-bogus-symmetric ${TESH_COMMAND} ${TESH_OPTION} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms bogus_two_hosts_asymetric.tesh) + ADD_TEST(tesh-parser-bogus-missing-srcgw ${TESH_COMMAND} ${TESH_OPTION} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms bogus_missing_src_gateway.tesh) ENDIF() ADD_TEST(tesh-simdag-bypass ${TESH_COMMAND} ${TESH_OPTION} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms basic_parsing_test_bypass.tesh) diff --git a/teshsuite/simdag/platforms/bogus_missing_src_gateway.tesh b/teshsuite/simdag/platforms/bogus_missing_src_gateway.tesh new file mode 100644 index 0000000000..b95629c085 --- /dev/null +++ b/teshsuite/simdag/platforms/bogus_missing_src_gateway.tesh @@ -0,0 +1,4 @@ +$ ${bindir:=.}/flatifier bogus_missing_src_gateway.xml "--log=root.fmt:[%10.6r]%e[%i:%P@%h]%e%m%n" +> [ 0.000000] [0:@] surf_workstation_model_init_ptask_L07 +> [ 0.000000] [0:@] Parse error + diff --git a/teshsuite/simdag/platforms/bogus_missing_src_gateway.xml b/teshsuite/simdag/platforms/bogus_missing_src_gateway.xml new file mode 100644 index 0000000000..a97b589b55 --- /dev/null +++ b/teshsuite/simdag/platforms/bogus_missing_src_gateway.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + +