Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
726b5521adcc1f1710b7872d6ceba5c93a8c8811
[simgrid.git] / examples / msg / platform-properties / platform-properties.tesh
1 #! ./tesh
2
3 p Testing a MSG application with properties in the XML for Hosts, Links and Processes
4
5 ! output sort 19
6 $ $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"
7 > [  0.000000] (0:maestro@) There are 7 hosts in the environment
8 > [  0.000000] (0:maestro@) Host 'host1' runs at 1000000000 flops/s
9 > [  0.000000] (0:maestro@) Host 'host2' runs at 1000000000 flops/s
10 > [  0.000000] (0:maestro@) Host 'node-0.acme.org' runs at 1000000000 flops/s
11 > [  0.000000] (0:maestro@) Host 'node-1.acme.org' runs at 1000000000 flops/s
12 > [  0.000000] (0:maestro@) Host 'node-2.acme.org' runs at 1000000000 flops/s
13 > [  0.000000] (0:maestro@) Host 'node-3.acme.org' runs at 1000000000 flops/s
14 > [  0.000000] (0:maestro@) Host 'node-4.acme.org' runs at 1000000000 flops/s
15 > [  0.000000] (2:bob@host1) == Print the properties of the AS
16 > [  0.000000] (2:bob@host1)    Process property: filename -> prop.xml
17 > [  0.000000] (2:bob@host1)    Process property: date -> 31-08-12
18 > [  0.000000] (2:bob@host1)    Process property: author -> pnavarro
19 > [  0.000000] (2:bob@host1) == Print the properties of the process
20 > [  0.000000] (2:bob@host1)    Process property: SomeProp -> SomeValue
21 > [  0.000000] (2:bob@host1) == Try to get a process property that does not exist
22 > [  0.000000] (1:alice@host1) == Print the properties of the host 'host1'
23 > [  0.000000] (1:alice@host1)   Host property: 'mem' -> '4'
24 > [  0.000000] (1:alice@host1)   Host property: 'Hdd' -> '180'
25 > [  0.000000] (1:alice@host1) == Try to get a host property that does not exist
26 > [  0.000000] (1:alice@host1) == Try to get a host property that does exist
27 > [  0.000000] (1:alice@host1)    Property: Hdd old value: 180
28 > [  0.000000] (1:alice@host1) == Trying to modify a host property
29 > [  0.000000] (1:alice@host1)    Property: Hdd old value: 250
30 > [  1.000000] (3:carole@host2) == Print the properties of the host 'host1'
31 > [  1.000000] (3:carole@host2)   Host property: 'mem' -> '4'
32 > [  1.000000] (3:carole@host2)   Host property: 'Hdd' -> '180'
33 > [  1.000000] (3:carole@host2) == Try to get a host property that does not exist
34 > [  1.000000] (3:carole@host2) == Try to get a host property that does exist
35 > [  1.000000] (3:carole@host2)    Property: Hdd old value: 180
36 > [  1.000000] (3:carole@host2) == Trying to modify a host property
37 > [  1.000000] (3:carole@host2)    Property: Hdd old value: 250
38 > [  2.000000] (4:david@host2) == Print the properties of the host 'node-0.acme.org'
39 > [  2.000000] (4:david@host2)   Host property: 'mem' -> '42'
40 > [  2.000000] (4:david@host2)   Host property: 'bla' -> 'acme cluster'
41 > [  2.000000] (4:david@host2)   Host property: 'Hdd' -> '180'
42 > [  2.000000] (4:david@host2) == Try to get a host property that does not exist
43 > [  2.000000] (4:david@host2) == Try to get a host property that does exist
44 > [  2.000000] (4:david@host2)    Property: Hdd old value: 180
45 > [  2.000000] (4:david@host2) == Trying to modify a host property
46 > [  2.000000] (4:david@host2)    Property: Hdd old value: 250