Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
All tesh files have the .tesh extension now
[simgrid.git] / examples / gras / properties / test_rl.tesh
diff --git a/examples/gras/properties/test_rl.tesh b/examples/gras/properties/test_rl.tesh
new file mode 100755 (executable)
index 0000000..ce27387
--- /dev/null
@@ -0,0 +1,19 @@
+
+! setenv SG_TEST_blah=blah
+$ $SG_TEST_ENV ./properties_alice --log=root.fmt=%P:%t%e%m%n $ARGS
+> alice:main == Dump all the properties of current host
+> alice:main == Dump all the properties of alice
+> alice:main   Process property: 'SG_TEST_blah' has value: 'blah'
+> alice:main == Try to get a process property that does not exist
+> alice:main == Trying to modify a process property
+> alice:main Exiting GRAS
+
+! setenv SG_TEST_blah=blah
+$ $SG_TEST_ENV ./properties_bob --log=root.fmt=%P:%t%e%m%n $ARGS
+> bob:main == Dump all the properties of host1
+> bob:main == Try to get a property that does not exist
+> bob:main == Set a host property that alice will try to retrieve in SG (from bob->hello)
+> bob:main == Dump all the properties of host1 again to check the addition
+> bob:main   Host property: 'from bob' has value: 'hello'
+> bob:main Exiting GRAS
+