1# SPDX-License-Identifier: GPL-2.0-only 2 3tests-y += cbfs-lookup-no-fallback-test 4tests-y += cbfs-lookup-has-fallback-test 5tests-y += cbfs-verification-no-sha512-test 6tests-y += cbfs-verification-has-sha512-test 7tests-y += cbfs-no-verification-no-sha512-test 8tests-y += cbfs-no-verification-has-sha512-test 9 10 11cbfs-lookup-no-fallback-test-srcs += tests/libcbfs/cbfs-lookup-test.c 12cbfs-lookup-no-fallback-test-srcs += tests/mocks/cbfs_file_mock.c 13cbfs-lookup-no-fallback-test-config += CONFIG_LP_ENABLE_CBFS_FALLBACK=0 14cbfs-lookup-no-fallback-test-config += CONFIG_LP_LZ4=1 15cbfs-lookup-no-fallback-test-config += CONFIG_LP_LZMA=1 16 17$(call copy-test,cbfs-lookup-no-fallback-test,cbfs-lookup-has-fallback-test) 18cbfs-lookup-has-fallback-test-config += CONFIG_LP_ENABLE_CBFS_FALLBACK=1 19 20cbfs-verification-no-sha512-test-srcs += tests/libcbfs/cbfs-verification-test.c 21cbfs-verification-no-sha512-test-srcs += tests/mocks/cbfs_file_mock.c 22cbfs-verification-no-sha512-test-config += CONFIG_LP_CBFS_VERIFICATION=1 23cbfs-verification-no-sha512-test-config += VB2_SUPPORT_SHA512=0 24 25$(call copy-test,cbfs-verification-no-sha512-test,cbfs-verification-has-sha512-test) 26cbfs-verification-has-sha512-test-config += VB2_SUPPORT_SHA512=1 27 28$(call copy-test,cbfs-verification-no-sha512-test,cbfs-no-verification-no-sha512-test) 29cbfs-verification-has-sha512-test-config += CONFIG_LP_CBFS_VERIFICATION=0 30 31$(call copy-test,cbfs-verification-no-sha512-test,cbfs-no-verification-has-sha512-test) 32cbfs-verification-has-sha512-test-config += CONFIG_LP_CBFS_VERIFICATION=0 33cbfs-verification-has-sha512-test-config += VB2_SUPPORT_SHA512=1 34