Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
extend test to see if SD_workstation_dump displays properties correctly
authorsuter <frederic.suter@cc.in2p3.fr>
Sun, 24 Jun 2012 17:01:50 +0000 (19:01 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Sun, 24 Jun 2012 17:01:50 +0000 (19:01 +0200)
examples/simdag/properties/sd_prop.c
examples/simdag/properties/test_prop.tesh

index 3aa9f41..06f4e75 100644 (file)
@@ -98,6 +98,9 @@ int main(int argc, char **argv)
   else
     XBT_INFO("\tProperty: %s new value: %s", exist, value);
 
+  /* Test if properties are displayed by SD_workstation_dump */
+  SD_workstation_dump(w2);
+
   SD_exit();
   return 0;
 }
index 2e94323..abdb83a 100755 (executable)
@@ -14,6 +14,13 @@ $ $SG_TEST_EXENV properties/sd_prop ${srcdir:=.}/../platforms/prop.xml
 > [0.000000] [test/INFO] Modify an existing property
 > [0.000000] [test/INFO]       Property: SG_TEST_Hdd old value: 120
 > [0.000000] [test/INFO]       Property: SG_TEST_Hdd new value: 250
+> [0.000000] [sd_workstation/INFO] Displaying workstation host2
+> [0.000000] [sd_workstation/INFO]   - power: 1000000000
+> [0.000000] [sd_workstation/INFO]   - available power: 1.00
+> [0.000000] [sd_workstation/INFO]   - access mode: Exclusive
+> [0.000000] [sd_workstation/INFO]     no task running
+> [0.000000] [sd_workstation/INFO]   - properties:
+> [0.000000] [sd_workstation/INFO]     SG_TEST_Hdd->250