summaryrefslogtreecommitdiff
path: root/tools/testing/memblock/Makefile
diff options
context:
space:
mode:
authorRebecca Mckeever <remckee0@gmail.com>2022-11-07 09:28:05 +0300
committerMike Rapoport <rppt@linux.ibm.com>2022-11-08 10:50:24 +0300
commit61da03328a603d2d4a5b2e80cbe29bbf0122e6f8 (patch)
tree30be1172889ab3f1b7623ba49de32e588ed937ed /tools/testing/memblock/Makefile
parent62a56c540797681a5b50a4c06bf638f79b6013bc (diff)
downloadlinux-61da03328a603d2d4a5b2e80cbe29bbf0122e6f8.tar.xz
memblock tests: introduce range tests for memblock_alloc_exact_nid_raw
Add TEST_F_EXACT flag, which specifies that tests should run memblock_alloc_exact_nid_raw(). Introduce range tests for memblock_alloc_exact_nid_raw() by using the TEST_F_EXACT flag to run the range tests in alloc_nid_api.c, since memblock_alloc_exact_nid_raw() and memblock_alloc_try_nid_raw() behave the same way when nid = NUMA_NO_NODE. Rename tests and other functions in alloc_nid_api.c by removing "_try". Since the test names will be displayed in verbose output, they need to be general enough to refer to any of the memblock functions that the tests may run. Acked-by: David Hildenbrand <david@redhat.com> Signed-off-by: Rebecca Mckeever <remckee0@gmail.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/5a4b6d1b6130ab7375314e1c45a6d5813dfdabbd.1667802195.git.remckee0@gmail.com
Diffstat (limited to 'tools/testing/memblock/Makefile')
-rw-r--r--tools/testing/memblock/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/memblock/Makefile b/tools/testing/memblock/Makefile
index 246f7ac8489b..2310ac4d080e 100644
--- a/tools/testing/memblock/Makefile
+++ b/tools/testing/memblock/Makefile
@@ -7,7 +7,7 @@ CFLAGS += -I. -I../../include -Wall -O2 -fsanitize=address \
LDFLAGS += -fsanitize=address -fsanitize=undefined
TARGETS = main
TEST_OFILES = tests/alloc_nid_api.o tests/alloc_helpers_api.o tests/alloc_api.o \
- tests/basic_api.o tests/common.o
+ tests/basic_api.o tests/common.o tests/alloc_exact_nid_api.o
DEP_OFILES = memblock.o lib/slab.o mmzone.o slab.o
OFILES = main.o $(DEP_OFILES) $(TEST_OFILES)
EXTR_SRC = ../../../mm/memblock.c