From c7ec1f26fd6e6e644121d221df8d55288776bbc0 Mon Sep 17 00:00:00 2001 From: Lukasz Krakowiak Date: Wed, 3 Apr 2019 12:32:54 +0200 Subject: [PATCH] test/power: remove prefix ACPI This patch removes prefix _acpi from power UT function/test names, and renames file test_power_acpi_cpufreq.c -> app/test/test_power_cpufreq.c. Signed-off-by: Lukasz Krakowiak --- app/test/Makefile | 2 +- app/test/autotest_data.py | 4 ++-- app/test/meson.build | 4 ++-- ...est_power_acpi_cpufreq.c => test_power_cpufreq.c} | 12 ++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) rename app/test/{test_power_acpi_cpufreq.c => test_power_cpufreq.c} (98%) diff --git a/app/test/Makefile b/app/test/Makefile index be0f392279..495b2fd118 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -164,7 +164,7 @@ 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 test_power_acpi_cpufreq.c +SRCS-$(CONFIG_RTE_LIBRTE_POWER) += test_power.c test_power_cpufreq.c SRCS-$(CONFIG_RTE_LIBRTE_POWER) += test_power_kvm_vm.c SRCS-y += test_common.c diff --git a/app/test/autotest_data.py b/app/test/autotest_data.py index 6cf7ecab3a..7e67e987cf 100644 --- a/app/test/autotest_data.py +++ b/app/test/autotest_data.py @@ -622,8 +622,8 @@ non_parallel_test_list = [ "Report": None, }, { - "Name": "Power ACPI cpufreq autotest", - "Command": "power_acpi_cpufreq_autotest", + "Name": "Power cpufreq autotest", + "Command": "power_cpufreq_autotest", "Func": default_autotest, "Report": None, }, diff --git a/app/test/meson.build b/app/test/meson.build index 466fd56da7..6dffae832b 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -87,7 +87,7 @@ test_sources = files('commands.c', 'test_pmd_ring.c', 'test_pmd_ring_perf.c', 'test_power.c', - 'test_power_acpi_cpufreq.c', + 'test_power_cpufreq.c', 'test_power_kvm_vm.c', 'test_prefetch.c', 'test_rand_perf.c', @@ -226,7 +226,7 @@ fast_test_names = [ 'member_autotest', 'metrics_autotest', 'pdump_autotest', - 'power_acpi_cpufreq_autotest', + 'power_cpufreq_autotest', 'power_autotest', 'power_kvm_vm_autotest', 'reorder_autotest', diff --git a/app/test/test_power_acpi_cpufreq.c b/app/test/test_power_cpufreq.c similarity index 98% rename from app/test/test_power_acpi_cpufreq.c rename to app/test/test_power_cpufreq.c index 61b1da05ae..d099f2f471 100644 --- a/app/test/test_power_acpi_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -14,14 +14,14 @@ #ifndef RTE_LIBRTE_POWER static int -test_power_acpi_cpufreq(void) +test_power_cpufreq(void) { printf("Power management library not supported, skipping test\n"); return TEST_SKIPPED; } static int -test_power_acpi_caps(void) +test_power_caps(void) { printf("Power management library not supported, skipping test\n"); return TEST_SKIPPED; @@ -367,7 +367,7 @@ check_power_freq_min(void) } static int -test_power_acpi_cpufreq(void) +test_power_cpufreq(void) { int ret = -1; enum power_management_env env; @@ -539,7 +539,7 @@ fail_all: } static int -test_power_acpi_caps(void) +test_power_caps(void) { struct rte_power_core_capabilities caps; int ret; @@ -568,5 +568,5 @@ test_power_acpi_caps(void) #endif -REGISTER_TEST_COMMAND(power_acpi_cpufreq_autotest, test_power_acpi_cpufreq); -REGISTER_TEST_COMMAND(power_acpi_caps_autotest, test_power_acpi_caps); +REGISTER_TEST_COMMAND(power_cpufreq_autotest, test_power_cpufreq); +REGISTER_TEST_COMMAND(power_caps_autotest, test_power_caps); -- 2.20.1