Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # Makefile for vm selftests |
| 3 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 4 | CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS) |
| 5 | LDLIBS = -lrt |
| 6 | TEST_GEN_FILES = compaction_test |
| 7 | TEST_GEN_FILES += gup_benchmark |
| 8 | TEST_GEN_FILES += hugepage-mmap |
| 9 | TEST_GEN_FILES += hugepage-shm |
| 10 | TEST_GEN_FILES += map_hugetlb |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 11 | TEST_GEN_FILES += map_fixed_noreplace |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 12 | TEST_GEN_FILES += map_populate |
| 13 | TEST_GEN_FILES += mlock-random-test |
| 14 | TEST_GEN_FILES += mlock2-tests |
| 15 | TEST_GEN_FILES += on-fault-limit |
| 16 | TEST_GEN_FILES += thuge-gen |
| 17 | TEST_GEN_FILES += transhuge-stress |
| 18 | TEST_GEN_FILES += userfaultfd |
| 19 | TEST_GEN_FILES += va_128TBswitch |
| 20 | TEST_GEN_FILES += virtual_address_range |
| 21 | |
| 22 | TEST_PROGS := run_vmtests |
| 23 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 24 | TEST_FILES := test_vmalloc.sh |
| 25 | |
| 26 | KSFT_KHDR_INSTALL := 1 |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 27 | include ../lib.mk |
| 28 | |
| 29 | $(OUTPUT)/userfaultfd: LDLIBS += -lpthread |
| 30 | |
| 31 | $(OUTPUT)/mlock-random-test: LDLIBS += -lcap |