Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename a test to clearly show that it should properly detect bogus input files
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 28 Feb 2014 10:41:14 +0000 (11:41 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 28 Feb 2014 10:56:51 +0000 (11:56 +0100)
buildtools/Cmake/AddTests.cmake
teshsuite/simdag/platforms/bogus_two_hosts_asymetric-2.xml [moved from teshsuite/simdag/platforms/two_hosts_asymetric_BOGUS2.xml with 100% similarity]
teshsuite/simdag/platforms/bogus_two_hosts_asymetric.tesh [new file with mode: 0644]
teshsuite/simdag/platforms/bogus_two_hosts_asymetric.xml [moved from teshsuite/simdag/platforms/two_hosts_asymetric_BOGUS.xml with 100% similarity]
teshsuite/simdag/platforms/two_hosts_asymetric.tesh [deleted file]

index 9d5814c..7d7336b 100644 (file)
@@ -113,7 +113,7 @@ 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-simdag-parser-bogus-symmetric ${TESH_COMMAND} ${TESH_OPTION} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/platforms --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms 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)
   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_two_hosts_asymetric.tesh b/teshsuite/simdag/platforms/bogus_two_hosts_asymetric.tesh
new file mode 100644 (file)
index 0000000..a18c417
--- /dev/null
@@ -0,0 +1,9 @@
+! expect signal SIGABRT
+$ ${bindir:=.}/flatifier bogus_two_hosts_asymetric.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 at bogus_two_hosts_asymetric.xml:24: A route between "alice" and "bob" already exists with a different content. If you are trying to define a reverse route, you must set the symmetrical=no attribute to your routes tags.
+
+! expect signal SIGABRT
+$ ${bindir:=.}/flatifier bogus_two_hosts_asymetric-2.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 at bogus_two_hosts_asymetric-2.xml:26: A route between "alice" and "bob" already exists with a different content. If you are trying to define a reverse route, you must set the symmetrical=no attribute to your routes tags.
diff --git a/teshsuite/simdag/platforms/two_hosts_asymetric.tesh b/teshsuite/simdag/platforms/two_hosts_asymetric.tesh
deleted file mode 100644 (file)
index 84cc390..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-! expect signal SIGABRT
-$ ${bindir:=.}/flatifier two_hosts_asymetric_BOGUS.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 at two_hosts_asymetric_BOGUS.xml:24: A route between "alice" and "bob" already exists with a different content. If you are trying to define a reverse route, you must set the symmetrical=no attribute to your routes tags.
-
-! expect signal SIGABRT
-$ ${bindir:=.}/flatifier two_hosts_asymetric_BOGUS2.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 at two_hosts_asymetric_BOGUS2.xml:26: A route between "alice" and "bob" already exists with a different content. If you are trying to define a reverse route, you must set the symmetrical=no attribute to your routes tags.