Skip to content

Commit

Permalink
app/test: vm power management
Browse files Browse the repository at this point in the history
Updated the unit tests to cover both librte_power implementations as well as
the external API.

Signed-off-by: Alan Carew <alan.carew@intel.com>
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
  • Loading branch information
ajcarew authored and Thomas Monjalon committed Nov 26, 2014
1 parent 75bf9c8 commit ed7c51a
Show file tree
Hide file tree
Showing 5 changed files with 917 additions and 409 deletions.
3 changes: 2 additions & 1 deletion app/test/Makefile
Expand Up @@ -120,7 +120,8 @@ endif

SRCS-$(CONFIG_RTE_LIBRTE_METER) += test_meter.c
SRCS-$(CONFIG_RTE_LIBRTE_KNI) += test_kni.c
SRCS-$(CONFIG_RTE_LIBRTE_POWER) += test_power.c
SRCS-$(CONFIG_RTE_LIBRTE_POWER) += test_power.c test_power_acpi_cpufreq.c
SRCS-$(CONFIG_RTE_LIBRTE_POWER) += test_power_kvm_vm.c
SRCS-y += test_common.c
SRCS-$(CONFIG_RTE_LIBRTE_IVSHMEM) += test_ivshmem.c

Expand Down
26 changes: 26 additions & 0 deletions app/test/autotest_data.py
Expand Up @@ -424,6 +424,32 @@ def all_sockets(num):
},
]
},
{
"Prefix" : "power_acpi_cpufreq",
"Memory" : all_sockets(512),
"Tests" :
[
{
"Name" : "Power ACPI cpufreq autotest",
"Command" : "power_acpi_cpufreq_autotest",
"Func" : default_autotest,
"Report" : None,
},
]
},
{
"Prefix" : "power_kvm_vm",
"Memory" : "512",
"Tests" :
[
{
"Name" : "Power KVM VM autotest",
"Command" : "power_kvm_vm_autotest",
"Func" : default_autotest,
"Report" : None,
},
]
},
{
"Prefix" : "lpm6",
"Memory" : "512",
Expand Down

0 comments on commit ed7c51a

Please sign in to comment.