diff options
author | Karolina Drobnik <karolinadrobnik@gmail.com> | 2022-02-02 14:03:10 +0300 |
---|---|---|
committer | Mike Rapoport <rppt@linux.ibm.com> | 2022-02-20 09:44:37 +0300 |
commit | f3252a22d1f59d89cca769431efa1c95d6343929 (patch) | |
tree | 924a6a46092b6f7493f1f76029d8772c5eb981c0 /tools/testing/memblock/Makefile | |
parent | 16802e55dea9534c18a30bd8eeefea8a06337916 (diff) | |
download | linux-f3252a22d1f59d89cca769431efa1c95d6343929.tar.xz |
memblock tests: Add memblock reset function
Memblock simulator needs to be able to reset memblock data structures
between different test cases. Add a function that sets all fields to
their default values.
Add a test checking if memblock is being initialized to expected values.
Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Signed-off-by: Mike Rapoport <rppt@kernel.org>
Link: https://lore.kernel.org/r/8c185aa7e0dd68c2c7e937c9a06c90ae413e240f.1643796665.git.karolinadrobnik@gmail.com
Diffstat (limited to 'tools/testing/memblock/Makefile')
-rw-r--r-- | tools/testing/memblock/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/memblock/Makefile b/tools/testing/memblock/Makefile index e43ed9de9bcf..29715327a2d3 100644 --- a/tools/testing/memblock/Makefile +++ b/tools/testing/memblock/Makefile @@ -6,7 +6,9 @@ CFLAGS += -I. -I../../include -Wall -O2 -fsanitize=address \ -fsanitize=undefined -D CONFIG_PHYS_ADDR_T_64BIT LDFLAGS += -fsanitize=address -fsanitize=undefined TARGETS = main -OFILES = main.o memblock.o lib/slab.o mmzone.o slab.o +TEST_OFILES = tests/basic_api.o tests/common.o +DEP_OFILES = memblock.o lib/slab.o mmzone.o slab.o +OFILES = main.o $(DEP_OFILES) $(TEST_OFILES) EXTR_SRC = ../../../mm/memblock.c ifeq ($(BUILD), 32) |