File: s4u-platform-properties.tesh

package info (click to toggle)
simgrid 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,980 kB
  • sloc: cpp: 123,583; ansic: 66,779; python: 8,358; java: 6,406; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,337; perl: 1,436; makefile: 105; lisp: 49; javascript: 7; sed: 6
file content (51 lines) | stat: -rw-r--r-- 3,488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env tesh

p Testing a S4U application with properties in the XML for Hosts, Links and Actors

! output sort 19
$ ${bindir:=.}/s4u-platform-properties ${platfdir}/prop.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
> [  0.000000] (0:maestro@) There are 7 hosts in the environment
> [  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.simgrid.org' runs at 1000000000 flops/s
> [  0.000000] (0:maestro@) Host 'node-1.simgrid.org' runs at 1000000000 flops/s
> [  0.000000] (0:maestro@) Host 'node-2.simgrid.org' runs at 1000000000 flops/s
> [  0.000000] (0:maestro@) Host 'node-3.simgrid.org' runs at 1000000000 flops/s
> [  0.000000] (0:maestro@) Host 'node-4.simgrid.org' runs at 1000000000 flops/s
> [  0.000000] (2:bob@host1) == Print the properties of the root zone
> [  0.000000] (2:bob@host1)    Zone property: filename -> prop.xml
> [  0.000000] (2:bob@host1)    Zone property: date -> 31-08-12
> [  0.000000] (2:bob@host1)    Zone property: author -> pnavarro
> [  0.000000] (2:bob@host1) == Print the properties of the actor
> [  0.000000] (2:bob@host1)    Actor property: SomeProp -> SomeValue
> [  0.000000] (2:bob@host1) == Try to get an actor property that does not exist
> [  0.000000] (1:alice@host1) == Print the properties of the host 'host1'
> [  0.000000] (1:alice@host1)   Host property: 'Hdd' -> '180'
> [  0.000000] (1:alice@host1)   Host property: 'mem' -> '4'
> [  0.000000] (1:alice@host1) == Try to get a host property that does not exist
> [  0.000000] (1:alice@host1) == Try to get a host property that does exist
> [  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] (1:alice@host1) == Print the properties of the zone 'AS4' that contains 'host1'
> [  0.000000] (1:alice@host1)   Zone property: 'bla' -> 'bli'
> [  1.000000] (3:carole@host2) == Print the properties of the host 'host1'
> [  1.000000] (3:carole@host2)   Host property: 'Hdd' -> '180'
> [  1.000000] (3:carole@host2)   Host property: 'mem' -> '4'
> [  1.000000] (3:carole@host2) == Try to get a host property that does not exist
> [  1.000000] (3:carole@host2) == Try to get a host property that does exist
> [  1.000000] (3:carole@host2)    Property: Hdd old value: 180
> [  1.000000] (3:carole@host2) == Trying to modify a host property
> [  1.000000] (3:carole@host2)    Property: Hdd old value: 250
> [  1.000000] (3:carole@host2) == Print the properties of the zone 'AS4' that contains 'host1'
> [  1.000000] (3:carole@host2)   Zone property: 'bla' -> 'bli'
> [  2.000000] (4:david@host2) == Print the properties of the host 'node-0.simgrid.org'
> [  2.000000] (4:david@host2)   Host property: 'Hdd' -> '180'
> [  2.000000] (4:david@host2)   Host property: 'bla' -> 'acme cluster'
> [  2.000000] (4:david@host2)   Host property: 'mem' -> '42'
> [  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
> [  2.000000] (4:david@host2)    Property: Hdd old value: 180
> [  2.000000] (4:david@host2) == Trying to modify a host property
> [  2.000000] (4:david@host2)    Property: Hdd old value: 250
> [  2.000000] (4:david@host2) == Print the properties of the zone 'acme' that contains 'node-0.simgrid.org'