test/hash: move lock-free tests to perf tests

Move reader writer lock free tests to performance tests.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
This commit is contained in:
Honnappa Nagarahalli 2020-02-03 13:49:11 -06:00 committed by David Marchand
parent 03a0ed1a59
commit 2cc1d7b40f
4 changed files with 9 additions and 8 deletions

View File

@ -122,7 +122,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_perf.c
SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_functions.c
SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_multiwriter.c
SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_readwrite.c
SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_readwrite_lf.c
SRCS-$(CONFIG_RTE_LIBRTE_HASH) += test_hash_readwrite_lf_perf.c
SRCS-$(CONFIG_RTE_LIBRTE_RIB) += test_rib.c
SRCS-$(CONFIG_RTE_LIBRTE_RIB) += test_rib6.c

View File

@ -676,8 +676,8 @@ non_parallel_test_list = [
"Report": None,
},
{
"Name": "Hash read-write lock-free concurrency autotest",
"Command": "hash_readwrite_lf_autotest",
"Name": "Hash read-write lock-free concurrency perf autotest",
"Command": "hash_readwrite_lf_perf_autotest",
"Func": default_autotest,
"Report": None,
},

View File

@ -59,7 +59,7 @@ test_sources = files('commands.c',
'test_hash_multiwriter.c',
'test_hash_readwrite.c',
'test_hash_perf.c',
'test_hash_readwrite_lf.c',
'test_hash_readwrite_lf_perf.c',
'test_interrupts.c',
'test_ipsec.c',
'test_ipsec_sad.c',
@ -234,7 +234,6 @@ fast_test_names = [
'eventdev_common_autotest',
'fbarray_autotest',
'hash_readwrite_func_autotest',
'hash_readwrite_lf_autotest',
'ipsec_autotest',
'kni_autotest',
'kvargs_autotest',
@ -283,6 +282,7 @@ perf_test_names = [
'stack_lf_perf_autotest',
'rand_perf_autotest',
'hash_readwrite_perf_autotest',
'hash_readwrite_lf_perf_autotest',
]
driver_test_names = [

View File

@ -1241,7 +1241,7 @@ err:
}
static int
test_hash_readwrite_lf_main(void)
test_hash_readwrite_lf_perf_main(void)
{
/*
* Variables used to choose different tests.
@ -1254,7 +1254,7 @@ test_hash_readwrite_lf_main(void)
int ext_bkt = 0;
if (rte_lcore_count() < 2) {
printf("Not enough cores for hash_readwrite_lf_autotest, expecting at least 2\n");
printf("Not enough cores for hash_readwrite_lf_perf_autotest, expecting at least 2\n");
return TEST_SKIPPED;
}
@ -1431,4 +1431,5 @@ results:
return 0;
}
REGISTER_TEST_COMMAND(hash_readwrite_lf_autotest, test_hash_readwrite_lf_main);
REGISTER_TEST_COMMAND(hash_readwrite_lf_perf_autotest,
test_hash_readwrite_lf_perf_main);