Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Using the Surf parser.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2004 21:05:18 +0000 (21:05 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2004 21:05:18 +0000 (21:05 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@537 48e7efb5-ca39-0410-a469-dd3cf9ba447f

testsuite/Makefile.am
testsuite/surf/platform.txt [new file with mode: 0644]
testsuite/surf/surf_usage.c
testsuite/surf/trace_A.txt
testsuite/surf/trace_A_failure.txt [new file with mode: 0644]
testsuite/surf/trace_B.txt

index f03368e..5ad009d 100644 (file)
@@ -8,7 +8,7 @@ EXTRA_DIST=run_tests.in \
   gras/datadesc.little32 gras/datadesc.little64 gras/datadesc.big32 gras/datadesc.big64 \
   gras/datadesc.aix \
   gras/mk_datadesc_structs.pl \
-  surf/trace_A.txt surf/trace_B.txt
+  surf/trace_A.txt surf/trace_B.txt surf/trace_A_failure.txt
 
 
 # Test stuff
diff --git a/testsuite/surf/platform.txt b/testsuite/surf/platform.txt
new file mode 100644 (file)
index 0000000..cd6f270
--- /dev/null
@@ -0,0 +1,6 @@
+<CPU>
+
+  "Cpu A" 100.00 1.0 trace_A.txt ON trace_A_failure.txt
+  "Cpu B" 100.00 1.0 trace_B.txt ON  ""
+       
+</CPU>
\ No newline at end of file
index 622c9bd..e07e775 100644 (file)
@@ -40,7 +40,7 @@ void test(void)
   xbt_maxmin_float_t now = -1.0;
 
   surf_init(); /* Initialize some common structures */
-  surf_cpu_resource_init(NULL); /* Now it is possible to use CPUs */
+  surf_cpu_resource_init("platform.txt"); /* Now it is possible to use CPUs */
 
   printf("%p \n", surf_cpu_resource);
   cpuA = surf_cpu_resource->common_public->name_service("Cpu A");
index 3fcb2ac..73f8eb8 100644 (file)
@@ -1,4 +1,4 @@
-PERIODICITY 100.01
-1.1 100.0
-15.2 20.0
-20.4 80.24
+PERIODICITY 1.0
+0.0 1.0
+11.0 0.5
+20.0 0.9
diff --git a/testsuite/surf/trace_A_failure.txt b/testsuite/surf/trace_A_failure.txt
new file mode 100644 (file)
index 0000000..0610bcf
--- /dev/null
@@ -0,0 +1,3 @@
+PERIODICITY 10.0
+1.0 -1.0
+2.0 1.0
index 3061526..8dc7470 100644 (file)
@@ -1,4 +1,4 @@
-PERIODICITY 10.00
-1.0 10.0
-15.0 2.0
-20.0 8.024
+PERIODICITY 7.00
+0.0 1.0
+11.0 1.0
+30.0 1.0