X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/48eccb2c1532e35819830ca56fad7cf89887359f..7c1edfc449204ae66e24a8a733e48d84e205242f:/examples/msg/platform-properties/platform-properties.tesh diff --git a/examples/msg/platform-properties/platform-properties.tesh b/examples/msg/platform-properties/platform-properties.tesh index ab319fed3e..726b5521ad 100644 --- a/examples/msg/platform-properties/platform-properties.tesh +++ b/examples/msg/platform-properties/platform-properties.tesh @@ -3,15 +3,22 @@ p Testing a MSG application with properties in the XML for Hosts, Links and Processes ! output sort 19 -$ $SG_TEST_EXENV ${bindir:=.}/platform-properties$EXEEXT ${srcdir:=.}/prop.xml ${srcdir:=.}/../msg/platform-properties/platform-properties_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" +$ $SG_TEST_EXENV ${bindir:=.}/platform-properties$EXEEXT ${platfdir}/prop.xml ${srcdir}/platform-properties_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" > [ 0.000000] (0:maestro@) There are 7 hosts in the environment -> [ 0.000000] (0:maestro@) Host 'node-3.acme.org' runs at 1000000000 flops/s +> [ 0.000000] (0:maestro@) Host 'host1' runs at 1000000000 flops/s +> [ 0.000000] (0:maestro@) Host 'host2' runs at 1000000000 flops/s > [ 0.000000] (0:maestro@) Host 'node-0.acme.org' runs at 1000000000 flops/s -> [ 0.000000] (0:maestro@) Host 'node-4.acme.org' runs at 1000000000 flops/s > [ 0.000000] (0:maestro@) Host 'node-1.acme.org' runs at 1000000000 flops/s > [ 0.000000] (0:maestro@) Host 'node-2.acme.org' runs at 1000000000 flops/s -> [ 0.000000] (0:maestro@) Host 'host1' runs at 1000000000 flops/s -> [ 0.000000] (0:maestro@) Host 'host2' runs at 1000000000 flops/s +> [ 0.000000] (0:maestro@) Host 'node-3.acme.org' runs at 1000000000 flops/s +> [ 0.000000] (0:maestro@) Host 'node-4.acme.org' runs at 1000000000 flops/s +> [ 0.000000] (2:bob@host1) == Print the properties of the AS +> [ 0.000000] (2:bob@host1) Process property: filename -> prop.xml +> [ 0.000000] (2:bob@host1) Process property: date -> 31-08-12 +> [ 0.000000] (2:bob@host1) Process property: author -> pnavarro +> [ 0.000000] (2:bob@host1) == Print the properties of the process +> [ 0.000000] (2:bob@host1) Process property: SomeProp -> SomeValue +> [ 0.000000] (2:bob@host1) == Try to get a process property that does not exist > [ 0.000000] (1:alice@host1) == Print the properties of the host 'host1' > [ 0.000000] (1:alice@host1) Host property: 'mem' -> '4' > [ 0.000000] (1:alice@host1) Host property: 'Hdd' -> '180' @@ -20,9 +27,6 @@ $ $SG_TEST_EXENV ${bindir:=.}/platform-properties$EXEEXT ${srcdir:=.}/prop.xml $ > [ 0.000000] (1:alice@host1) Property: Hdd old value: 180 > [ 0.000000] (1:alice@host1) == Trying to modify a host property > [ 0.000000] (1:alice@host1) Property: Hdd old value: 250 -> [ 0.000000] (2:bob@host1) == Print the properties of the process -> [ 0.000000] (2:bob@host1) Process property: SomeProp -> SomeValue -> [ 0.000000] (2:bob@host1) == Try to get a process property that does not exist > [ 1.000000] (3:carole@host2) == Print the properties of the host 'host1' > [ 1.000000] (3:carole@host2) Host property: 'mem' -> '4' > [ 1.000000] (3:carole@host2) Host property: 'Hdd' -> '180' @@ -34,7 +38,6 @@ $ $SG_TEST_EXENV ${bindir:=.}/platform-properties$EXEEXT ${srcdir:=.}/prop.xml $ > [ 2.000000] (4:david@host2) == Print the properties of the host 'node-0.acme.org' > [ 2.000000] (4:david@host2) Host property: 'mem' -> '42' > [ 2.000000] (4:david@host2) Host property: 'bla' -> 'acme cluster' -> [ 2.000000] (4:david@host2) Host property: 'name' -> 'AS2' > [ 2.000000] (4:david@host2) Host property: 'Hdd' -> '180' > [ 2.000000] (4:david@host2) == Try to get a host property that does not exist > [ 2.000000] (4:david@host2) == Try to get a host property that does exist