set(teshsuite_src ${teshsuite_src} PARENT_SCOPE)
set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/flatifier/bogus_two_hosts_asymetric.tesh
${CMAKE_CURRENT_SOURCE_DIR}/flatifier/bogus_missing_gateway.tesh
- ${CMAKE_CURRENT_SOURCE_DIR}/flatifier/bogus_disk_attachment.tesh
${CMAKE_CURRENT_SOURCE_DIR}/basic-parsing-test/basic-parsing-test-sym-full.tesh
${CMAKE_CURRENT_SOURCE_DIR}/basic-parsing-test/basic-parsing-test-bypass.tesh
PARENT_SCOPE)
# these tests need assertions
ADD_TESH(tesh-parser-bogus-symmetric --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/flatifier --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier/bogus_two_hosts_asymetric.tesh)
ADD_TESH(tesh-parser-bogus-missing-gw --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/flatifier --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier/bogus_missing_gateway.tesh)
- ADD_TESH(tesh-parser-bogus-disk-attachment --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/simdag/flatifier --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier ${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/flatifier/bogus_disk_attachment.tesh)
#These tests fail on Windows as the signal returned is not the same as Unix would send.
if(WIN32)
set_property(TEST tesh-parser-bogus-symmetric PROPERTY WILL_FAIL TRUE)
set_property(TEST tesh-parser-bogus-missing-gw PROPERTY WILL_FAIL TRUE)
- set_property(TEST tesh-parser-bogus-disk-attachment PROPERTY WILL_FAIL TRUE)
endif()
endif()
+++ /dev/null
-! expect signal SIGABRT
-$ $VALGRIND_NO_LEAK_CHECK ${bindir:=.}/flatifier ../platforms/bogus_disk_attachment.xml "--log=root.fmt:[%10.6r]%e[%i:%a@%h]%e%m%n"
-> [ 0.000000] [0:maestro@] Switching to the L07 model to handle parallel tasks.
-> [ 0.000000] [0:maestro@] Parse error at ../platforms/bogus_disk_attachment.xml:19: Unable to attach storage cdisk: host plouf does not exist.
-> [ 0.000000] [0:maestro@] Exiting now.
+++ /dev/null
-<?xml version='1.0'?>
-<!DOCTYPE platform SYSTEM "https://simgrid.org/simgrid.dtd">
-<platform version="4.1">
- <!-- THIS FILE IS INVALID.
- It declares a storage attached to a nonexistent host (plouf). See bogus_disk_attachment.tesh -->
- <zone id="AS0" routing="Full">
- <storage_type id="single_HDD" model="SSD" size="4kB">
- <model_prop id="Bwrite" value="30MBps" />
- <model_prop id="Bread" value="100MBps" />
- <model_prop id="Bconnection" value="150MBps" />
- </storage_type>
-
- <storage id="cdisk" typeId="single_HDD" attach="plouf" />
-
- <host id="client" speed="1Gf">
- <mount storageId="cdisk" name="/sd1" />
- </host>
- </zone>
-</platform>