1*db6fe4d6SKees Cook# SPDX-License-Identifier: GPL-2.0 2*db6fe4d6SKees Cook# 3*db6fe4d6SKees Cook# Makefile for tests of kernel library functions. 4*db6fe4d6SKees Cook 5*db6fe4d6SKees Cook# KUnit tests 6*db6fe4d6SKees CookCFLAGS_bitfield_kunit.o := $(DISABLE_STRUCTLEAK_PLUGIN) 7*db6fe4d6SKees Cookobj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o 8*db6fe4d6SKees Cookobj-$(CONFIG_BITS_TEST) += test_bits.o 9*db6fe4d6SKees Cookobj-$(CONFIG_CHECKSUM_KUNIT) += checksum_kunit.o 10*db6fe4d6SKees Cookobj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o 11*db6fe4d6SKees Cookobj-$(CONFIG_CPUMASK_KUNIT_TEST) += cpumask_kunit.o 12*db6fe4d6SKees Cookobj-$(CONFIG_CRC_KUNIT_TEST) += crc_kunit.o 13*db6fe4d6SKees CookCFLAGS_fortify_kunit.o += $(call cc-disable-warning, unsequenced) 14*db6fe4d6SKees CookCFLAGS_fortify_kunit.o += $(call cc-disable-warning, stringop-overread) 15*db6fe4d6SKees CookCFLAGS_fortify_kunit.o += $(call cc-disable-warning, stringop-truncation) 16*db6fe4d6SKees CookCFLAGS_fortify_kunit.o += $(DISABLE_STRUCTLEAK_PLUGIN) 17*db6fe4d6SKees Cookobj-$(CONFIG_FORTIFY_KUNIT_TEST) += fortify_kunit.o 18*db6fe4d6SKees CookCFLAGS_test_fprobe.o += $(CC_FLAGS_FTRACE) 19*db6fe4d6SKees Cookobj-$(CONFIG_FPROBE_SANITY_TEST) += test_fprobe.o 20*db6fe4d6SKees Cookobj-$(CONFIG_HASHTABLE_KUNIT_TEST) += hashtable_test.o 21*db6fe4d6SKees Cookobj-$(CONFIG_HASH_KUNIT_TEST) += test_hash.o 22*db6fe4d6SKees Cookobj-$(CONFIG_TEST_IOV_ITER) += kunit_iov_iter.o 23*db6fe4d6SKees Cookobj-$(CONFIG_IS_SIGNED_TYPE_KUNIT_TEST) += is_signed_type_kunit.o 24*db6fe4d6SKees Cookobj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o 25*db6fe4d6SKees Cookobj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o 26*db6fe4d6SKees Cookobj-$(CONFIG_TEST_LIST_SORT) += test_list_sort.o 27*db6fe4d6SKees Cookobj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o 28*db6fe4d6SKees Cookobj-$(CONFIG_MEMCPY_KUNIT_TEST) += memcpy_kunit.o 29*db6fe4d6SKees CookCFLAGS_overflow_kunit.o = $(call cc-disable-warning, tautological-constant-out-of-range-compare) 30*db6fe4d6SKees Cookobj-$(CONFIG_OVERFLOW_KUNIT_TEST) += overflow_kunit.o 31*db6fe4d6SKees Cookobj-$(CONFIG_SIPHASH_KUNIT_TEST) += siphash_kunit.o 32*db6fe4d6SKees Cookobj-$(CONFIG_SLUB_KUNIT_TEST) += slub_kunit.o 33*db6fe4d6SKees Cookobj-$(CONFIG_TEST_SORT) += test_sort.o 34*db6fe4d6SKees CookCFLAGS_stackinit_kunit.o += $(call cc-disable-warning, switch-unreachable) 35*db6fe4d6SKees Cookobj-$(CONFIG_STACKINIT_KUNIT_TEST) += stackinit_kunit.o 36*db6fe4d6SKees Cookobj-$(CONFIG_STRING_KUNIT_TEST) += string_kunit.o 37*db6fe4d6SKees Cookobj-$(CONFIG_STRING_HELPERS_KUNIT_TEST) += string_helpers_kunit.o 38*db6fe4d6SKees Cookobj-$(CONFIG_USERCOPY_KUNIT_TEST) += usercopy_kunit.o 39*db6fe4d6SKees Cookobj-$(CONFIG_UTIL_MACROS_KUNIT) += util_macros_kunit.o 40*db6fe4d6SKees Cook 4184b4a51fSLuis Chamberlainobj-$(CONFIG_TEST_RUNTIME_MODULE) += module/ 42