# BSD LICENSE
#
-# Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+# Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# quick and dirty function to find out number of sockets
def num_sockets():
- return len(glob("/sys/devices/system/node/node*"))
+ result = len(glob("/sys/devices/system/node/node*"))
+ if result == 0:
+ return 1
+ return result
# multiply given number for all sockets
# e.g. 32 becomes 32,32 or 32,32,32,32 etc.
"Command" : "debug_autotest",
"Func" : default_autotest,
"Report" : None,
- },
+ },
{
"Name" : "Errno autotest",
"Command" : "errno_autotest",
"Func" : default_autotest,
"Report" : None,
},
+ {
+ "Name" : "Meter autotest",
+ "Command" : "meter_autotest",
+ "Func" : default_autotest,
+ "Report" : None,
+ },
+ {
+ "Name" : "Common autotest",
+ "Command" : "common_autotest",
+ "Func" : default_autotest,
+ "Report" : None,
+ },
{
"Name" : "Dump log history",
"Command" : "dump_log_history",
},
{
"Prefix": "group_6",
- "Memory" : all_sockets(588),
+ "Memory" : all_sockets(600),
"Tests" :
[
{
"Command" : "prefetch_autotest",
"Func" : default_autotest,
"Report" : None,
+ },
+ {
+ "Name" :"Red autotest",
+ "Command" : "red_autotest",
+ "Func" :default_autotest,
+ "Report" :None,
+ },
+ ]
+},
+{
+ "Prefix" : "group_7",
+ "Memory" : "400",
+ "Tests" :
+ [
+ {
+ "Name" : "Access list control autotest",
+ "Command" : "acl_autotest",
+ "Func" : default_autotest,
+ "Report" : None,
+ },
+ {
+ "Name" : "Pattern match autotest",
+ "Command" : "pm_autotest",
+ "Func" : default_autotest,
+ "Report" : None,
},
+ {
+ "Name" :"Sched autotest",
+ "Command" : "sched_autotest",
+ "Func" :default_autotest,
+ "Report" :None,
+ },
]
},
]
# tests that should not be run when any other tests are running
non_parallel_test_group_list = [
+{
+ "Prefix" : "kni",
+ "Memory" : "512",
+ "Tests" :
+ [
+ {
+ "Name" : "KNI autotest",
+ "Command" : "kni_autotest",
+ "Func" : default_autotest,
+ "Report" : None,
+ },
+ ]
+},
{
"Prefix": "mempool_perf",
"Memory" : all_sockets(256),
},
]
},
+{
+ "Prefix" : "power",
+ "Memory" : all_sockets(512),
+ "Tests" :
+ [
+ {
+ "Name" : "Power autotest",
+ "Command" : "power_autotest",
+ "Func" : default_autotest,
+ "Report" : None,
+ },
+ ]
+},
+{
+ "Prefix" : "lpm6",
+ "Memory" : "512",
+ "Tests" :
+ [
+ {
+ "Name" : "LPM6 autotest",
+ "Command" : "lpm6_autotest",
+ "Func" : default_autotest,
+ "Report" : None,
+ },
+ ]
+},
{
"Prefix": "ring_perf",
"Memory" : all_sockets(512),