Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move MSG and SimDag examples out of the sight of users
[simgrid.git] / examples / deprecated / simdag / properties / sd_properties.tesh
diff --git a/examples/deprecated/simdag/properties/sd_properties.tesh b/examples/deprecated/simdag/properties/sd_properties.tesh
new file mode 100644 (file)
index 0000000..80abf86
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/env tesh
+
+p Simple test of simdag with properties
+
+$ $SG_TEST_EXENV properties/sd_properties ${srcdir:=.}/../../platforms/prop.xml
+> [0.000000] [xbt_cfg/INFO] Switching to the L07 model to handle parallel tasks.
+> [0.000000] [test/INFO] Property list for host host1
+> [0.000000] [test/INFO]       Property: mem has value: 4
+> [0.000000] [test/INFO]       Property: NewProp has value: newValue
+> [0.000000] [test/INFO]       Property: Hdd has value: 180
+> [0.000000] [test/INFO]       Property: NoProp has value: Undefined (NULL)
+> [0.000000] [test/INFO] Property list for host host2
+> [0.000000] [test/INFO]       Property: Hdd on host: 120
+> [0.000000] [test/INFO] Modify an existing property
+> [0.000000] [test/INFO]       Property: Hdd old value: 120
+> [0.000000] [test/INFO]       Property: Hdd new value: 250
+> [0.000000] [s4u_host/INFO] Displaying host host2
+> [0.000000] [s4u_host/INFO]   - speed: 1000000000
+> [0.000000] [s4u_host/INFO]   - available speed: 1.00
+> [0.000000] [s4u_host/INFO]   - properties:
+> [0.000000] [s4u_host/INFO]     Hdd->250