memblock tests: add labels to verbose output for generic alloc tests
authorRebecca Mckeever <remckee0@gmail.com>
Sat, 27 Aug 2022 05:42:45 +0000 (00:42 -0500)
committerMike Rapoport <rppt@linux.ibm.com>
Tue, 30 Aug 2022 10:12:00 +0000 (13:12 +0300)
commitfb2e97fe853ff515df473d4acec6707816e05d87
tree17451b344b96040f93b0ec00ec787c8d1d83686c
parent25b9defb5bc4aee8beb51ded07838e12745426f9
memblock tests: add labels to verbose output for generic alloc tests

Generic tests for memblock_alloc*() functions do not use separate
functions for testing top-down and bottom-up allocation directions.
Therefore, the function name that is displayed in the verbose testing
output does not include the allocation direction.

Add an additional prefix when running generic tests for
memblock_alloc*() functions that indicates which allocation direction is
set. The prefix will be displayed when the tests are run in verbose mode.

Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Shaoqin Huang <shaoqin.huang@intel.com>
Signed-off-by: Rebecca Mckeever <remckee0@gmail.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/fb76a42253d2a196a7daea29dd8121a69904f58e.1661578349.git.remckee0@gmail.com
tools/testing/memblock/tests/alloc_api.c
tools/testing/memblock/tests/alloc_helpers_api.c
tools/testing/memblock/tests/alloc_nid_api.c
tools/testing/memblock/tests/common.h