app/test: fixes to python control script
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 11 Feb 2014 12:03:26 +0000 (12:03 +0000)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 09:22:33 +0000 (10:22 +0100)
* Change behaviour to spread the memory specified across all sockets
  rather than duplicating the memory for each one. This way the memory
  size specified is the total memory needed by the test.
* Minor reordering of test cases, to ensure that ring autotest is the
  final test run.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/autotest_data.py

index 1161a92..af6ed5a 100644 (file)
@@ -43,8 +43,8 @@ def num_sockets():
                return 1
        return result
 
-# multiply given number for all sockets
-# e.g. 32 becomes 32,32 or 32,32,32,32 etc.
+# spread given number for all sockets
+# e.g. 32 becomes 16,16 or 8,8,8,8 etc.
 def all_sockets(num):
        mem_per_socket = num / num_sockets()
        return ",".join([str(mem_per_socket)] * num_sockets())
@@ -165,7 +165,7 @@ parallel_test_group_list = [
 },
 {
        "Prefix":       "group_3",
-       "Memory" :      all_sockets(256),
+       "Memory" :      all_sockets(1024),
        "Tests" :       
        [
                {
@@ -444,26 +444,30 @@ non_parallel_test_group_list = [
        ]
 },
 {
-       "Prefix":       "ring_perf",
+       "Prefix":       "timer_perf",
        "Memory" :      all_sockets(512),
        "Tests" :       
        [
                {
-                "Name" :       "Ring performance autotest",
-                "Command" :    "ring_perf_autotest",
+                "Name" :       "Timer performance autotest",
+                "Command" :    "timer_perf_autotest",
                 "Func" :       default_autotest,
                 "Report" :     None,
                },
        ]
 },
+                                                       
+#
+# Please always make sure that ring_perf is the last test!
+#
 {
-       "Prefix":       "timer_perf",
+       "Prefix":       "ring_perf",
        "Memory" :      all_sockets(512),
        "Tests" :       
        [
                {
-                "Name" :       "Timer performance autotest",
-                "Command" :    "timer_perf_autotest",
+                "Name" :       "Ring performance autotest",
+                "Command" :    "ring_perf_autotest",
                 "Func" :       default_autotest,
                 "Report" :     None,
                },