Jan Dabros | b0800d3 | 2020-05-06 16:01:27 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jan Dabros | 2d0ee36 | 2020-04-20 15:19:45 +0200 | [diff] [blame] | 2 | |
Jan Dabros | 2d0ee36 | 2020-04-20 15:19:45 +0200 | [diff] [blame] | 3 | tests-y += string-test |
Anna Karas | 072a9b9 | 2020-06-08 15:16:19 +0200 | [diff] [blame] | 4 | tests-y += b64_decode-test |
Anna Karas | 5664bc8 | 2020-07-02 10:09:47 +0200 | [diff] [blame] | 5 | tests-y += hexstrtobin-test |
Jakub Czapiga | 466a378 | 2020-10-05 10:44:46 +0200 | [diff] [blame] | 6 | tests-y += imd-test |
Jakub Czapiga | e0c60f3 | 2020-10-09 10:07:47 +0200 | [diff] [blame] | 7 | tests-y += timestamp-test |
Jakub Czapiga | e0af9fc | 2020-10-09 16:02:46 +0200 | [diff] [blame] | 8 | tests-y += edid-test |
Jakub Czapiga | f9961ff | 2020-11-16 15:25:34 +0100 | [diff] [blame] | 9 | tests-y += cbmem_console-romstage-test |
| 10 | tests-y += cbmem_console-ramstage-test |
Jakub Czapiga | ea378cc | 2020-11-12 12:10:51 +0100 | [diff] [blame] | 11 | tests-y += list-test |
Jakub Czapiga | dd85c82 | 2020-12-10 11:16:47 +0100 | [diff] [blame] | 12 | tests-y += fmap-test |
Jakub Czapiga | a2b21c2 | 2020-10-08 12:37:40 +0200 | [diff] [blame] | 13 | tests-y += imd_cbmem-romstage-test |
| 14 | tests-y += imd_cbmem-ramstage-test |
Jakub Czapiga | eb6f80d | 2021-01-07 09:24:33 +0100 | [diff] [blame] | 15 | tests-y += region_file-test |
Jakub Czapiga | b3a7c84 | 2021-02-05 15:10:25 +0100 | [diff] [blame] | 16 | tests-y += stack-test |
Jakub Czapiga | 7a940df | 2021-02-15 12:07:10 +0100 | [diff] [blame] | 17 | tests-y += memset-test |
Jakub Czapiga | c4ca8c3 | 2021-02-16 11:13:32 +0100 | [diff] [blame] | 18 | tests-y += memcmp-test |
Jakub Czapiga | cc7acb8 | 2021-02-15 14:21:20 +0100 | [diff] [blame] | 19 | tests-y += memchr-test |
Jakub Czapiga | eb4bb6f | 2021-02-16 13:27:17 +0100 | [diff] [blame] | 20 | tests-y += memcpy-test |
Jakub Czapiga | 7a18721 | 2021-02-15 09:54:03 +0100 | [diff] [blame] | 21 | tests-y += malloc-test |
Jakub Czapiga | f5e636c | 2021-02-19 10:09:42 +0100 | [diff] [blame] | 22 | tests-y += memmove-test |
Jakub Czapiga | 0b6b968 | 2021-02-24 16:33:21 +0100 | [diff] [blame] | 23 | tests-y += crc_byte-test |
Jakub Czapiga | 9f13cb7 | 2021-02-25 13:13:20 +0100 | [diff] [blame] | 24 | tests-y += compute_ip_checksum-test |
Jan Dabros | 9e16ca9 | 2020-07-08 22:33:52 +0200 | [diff] [blame] | 25 | tests-y += memrange-test |
Jakub Czapiga | f5c0021 | 2021-03-31 12:41:29 +0200 | [diff] [blame] | 26 | tests-y += uuid-test |
Jan Dabros | 9357693 | 2020-07-16 12:05:47 +0200 | [diff] [blame] | 27 | tests-y += bootmem-test |
Jakub Czapiga | dadcae6 | 2021-04-08 16:29:03 +0200 | [diff] [blame] | 28 | tests-y += dimm_info_util-test |
Jakub Czapiga | 5d88483 | 2021-04-06 09:42:02 +0200 | [diff] [blame] | 29 | tests-y += coreboot_table-test |
Jakub Czapiga | a37c802 | 2021-04-15 11:39:13 +0200 | [diff] [blame] | 30 | tests-y += rtc-test |
Jakub Czapiga | 2b8d721 | 2021-04-22 20:14:02 +0200 | [diff] [blame^] | 31 | tests-y += spd_cache-ddr3-test |
| 32 | tests-y += spd_cache-ddr4-test |
Jan Dabros | 2d0ee36 | 2020-04-20 15:19:45 +0200 | [diff] [blame] | 33 | |
| 34 | string-test-srcs += tests/lib/string-test.c |
| 35 | string-test-srcs += src/lib/string.c |
Anna Karas | 072a9b9 | 2020-06-08 15:16:19 +0200 | [diff] [blame] | 36 | |
| 37 | b64_decode-test-srcs += tests/lib/b64_decode-test.c |
Anna Karas | f7cd0d5 | 2020-07-07 16:38:27 +0200 | [diff] [blame] | 38 | b64_decode-test-srcs += tests/stubs/console.c |
Anna Karas | 072a9b9 | 2020-06-08 15:16:19 +0200 | [diff] [blame] | 39 | b64_decode-test-srcs += src/lib/b64_decode.c |
Anna Karas | 5664bc8 | 2020-07-02 10:09:47 +0200 | [diff] [blame] | 40 | |
| 41 | hexstrtobin-test-srcs += tests/lib/hexstrtobin-test.c |
| 42 | hexstrtobin-test-srcs += src/lib/hexstrtobin.c |
Jakub Czapiga | 466a378 | 2020-10-05 10:44:46 +0200 | [diff] [blame] | 43 | |
| 44 | imd-test-srcs += tests/lib/imd-test.c |
| 45 | imd-test-srcs += tests/stubs/console.c |
Jakub Czapiga | e0c60f3 | 2020-10-09 10:07:47 +0200 | [diff] [blame] | 46 | imd-test-srcs += src/lib/imd.c |
| 47 | |
| 48 | timestamp-test-srcs += tests/lib/timestamp-test.c |
| 49 | timestamp-test-srcs += tests/stubs/timestamp.c |
| 50 | timestamp-test-srcs += tests/stubs/console.c |
| 51 | timestamp-test-stage := romstage |
Jakub Czapiga | e0af9fc | 2020-10-09 16:02:46 +0200 | [diff] [blame] | 52 | |
| 53 | edid-test-srcs += tests/lib/edid-test.c |
| 54 | edid-test-srcs += src/lib/edid.c |
| 55 | edid-test-srcs += tests/stubs/console.c |
| 56 | |
Jakub Czapiga | f9961ff | 2020-11-16 15:25:34 +0100 | [diff] [blame] | 57 | cbmem_console-romstage-test-stage := romstage |
| 58 | cbmem_console-romstage-test-srcs += tests/lib/cbmem_console-test.c |
| 59 | cbmem_console-romstage-test-srcs += tests/stubs/console.c |
| 60 | |
| 61 | cbmem_console-ramstage-test-stage := ramstage |
| 62 | cbmem_console-ramstage-test-srcs += tests/lib/cbmem_console-test.c |
Jakub Czapiga | ea378cc | 2020-11-12 12:10:51 +0100 | [diff] [blame] | 63 | cbmem_console-ramstage-test-srcs += tests/stubs/console.c |
| 64 | |
| 65 | list-test-srcs += tests/lib/list-test.c |
| 66 | list-test-srcs += src/lib/list.c |
| 67 | |
Jakub Czapiga | dd85c82 | 2020-12-10 11:16:47 +0100 | [diff] [blame] | 68 | fmap-test-srcs += tests/lib/fmap-test.c |
| 69 | fmap-test-srcs += src/lib/fmap.c |
| 70 | fmap-test-srcs += tests/stubs/console.c |
| 71 | fmap-test-srcs += src/lib/boot_device.c |
| 72 | fmap-test-srcs += src/commonlib/region.c |
| 73 | fmap-test-cflags += -I tests/include/tests/lib/fmap |
| 74 | fmap-test-cflags += -I 3rdparty/vboot/firmware/include |
Jakub Czapiga | a2b21c2 | 2020-10-08 12:37:40 +0200 | [diff] [blame] | 75 | |
| 76 | imd_cbmem-ramstage-test-stage := ramstage |
| 77 | imd_cbmem-ramstage-test-srcs += tests/lib/imd_cbmem-test.c |
| 78 | imd_cbmem-ramstage-test-srcs += tests/stubs/console.c |
| 79 | imd_cbmem-ramstage-test-srcs += src/lib/imd.c |
| 80 | imd_cbmem-ramstage-test-mocks += cbmem_top_chipset |
| 81 | |
| 82 | imd_cbmem-romstage-test-stage := romstage |
| 83 | imd_cbmem-romstage-test-srcs += tests/lib/imd_cbmem-test.c |
| 84 | imd_cbmem-romstage-test-srcs += tests/stubs/console.c |
| 85 | imd_cbmem-romstage-test-srcs += src/lib/imd.c |
| 86 | imd_cbmem-romstage-test-mocks += cbmem_top_chipset |
| 87 | |
Jakub Czapiga | eb6f80d | 2021-01-07 09:24:33 +0100 | [diff] [blame] | 88 | region_file-test-srcs += tests/lib/region_file-test.c |
| 89 | region_file-test-srcs += src/commonlib/region.c |
| 90 | region_file-test-srcs += tests/stubs/console.c |
Jakub Czapiga | b3a7c84 | 2021-02-05 15:10:25 +0100 | [diff] [blame] | 91 | |
| 92 | stack-test-srcs += tests/lib/stack-test.c |
| 93 | stack-test-srcs += src/lib/stack.c |
| 94 | stack-test-srcs += tests/stubs/console.c |
Jakub Czapiga | 7a940df | 2021-02-15 12:07:10 +0100 | [diff] [blame] | 95 | |
| 96 | memset-test-srcs += tests/lib/memset-test.c |
| 97 | memset-test-srcs += src/lib/memset.c |
Jakub Czapiga | c4ca8c3 | 2021-02-16 11:13:32 +0100 | [diff] [blame] | 98 | |
| 99 | memcmp-test-srcs += tests/lib/memcmp-test.c |
| 100 | |
Jakub Czapiga | cc7acb8 | 2021-02-15 14:21:20 +0100 | [diff] [blame] | 101 | memchr-test-srcs += tests/lib/memchr-test.c |
| 102 | memchr-test-srcs += src/lib/memchr.c |
| 103 | |
Jakub Czapiga | eb4bb6f | 2021-02-16 13:27:17 +0100 | [diff] [blame] | 104 | memcpy-test-srcs += tests/lib/memcpy-test.c |
| 105 | |
Jakub Czapiga | 7a18721 | 2021-02-15 09:54:03 +0100 | [diff] [blame] | 106 | malloc-test-srcs += tests/lib/malloc-test.c |
| 107 | malloc-test-srcs += tests/stubs/console.c |
| 108 | |
Jakub Czapiga | f5e636c | 2021-02-19 10:09:42 +0100 | [diff] [blame] | 109 | memmove-test-srcs += tests/lib/memmove-test.c |
| 110 | |
Jakub Czapiga | 0b6b968 | 2021-02-24 16:33:21 +0100 | [diff] [blame] | 111 | crc_byte-test-srcs += tests/lib/crc_byte-test.c |
| 112 | crc_byte-test-srcs += src/lib/crc_byte.c |
| 113 | |
Jakub Czapiga | 9f13cb7 | 2021-02-25 13:13:20 +0100 | [diff] [blame] | 114 | compute_ip_checksum-test-srcs += tests/lib/compute_ip_checksum-test.c |
| 115 | compute_ip_checksum-test-srcs += src/lib/compute_ip_checksum.c |
| 116 | |
Jan Dabros | 9e16ca9 | 2020-07-08 22:33:52 +0200 | [diff] [blame] | 117 | memrange-test-srcs += tests/lib/memrange-test.c |
| 118 | memrange-test-srcs += src/lib/memrange.c |
| 119 | memrange-test-srcs += tests/stubs/console.c |
| 120 | memrange-test-srcs += src/device/device_util.c |
| 121 | |
Jakub Czapiga | f5c0021 | 2021-03-31 12:41:29 +0200 | [diff] [blame] | 122 | uuid-test-srcs += tests/lib/uuid-test.c |
| 123 | uuid-test-srcs += src/lib/hexstrtobin.c |
| 124 | uuid-test-srcs += src/lib/uuid.c |
Jan Dabros | 9357693 | 2020-07-16 12:05:47 +0200 | [diff] [blame] | 125 | |
| 126 | bootmem-test-srcs += tests/lib/bootmem-test.c |
| 127 | bootmem-test-srcs += tests/stubs/console.c |
| 128 | bootmem-test-srcs += src/device/device_util.c |
| 129 | bootmem-test-srcs += src/lib/bootmem.c |
| 130 | bootmem-test-srcs += src/lib/memrange.c |
| 131 | |
Jakub Czapiga | dadcae6 | 2021-04-08 16:29:03 +0200 | [diff] [blame] | 132 | dimm_info_util-test-srcs += tests/lib/dimm_info_util-test.c |
| 133 | dimm_info_util-test-srcs += src/lib/dimm_info_util.c |
| 134 | dimm_info_util-test-srcs += tests/stubs/console.c |
| 135 | |
Jakub Czapiga | 5d88483 | 2021-04-06 09:42:02 +0200 | [diff] [blame] | 136 | coreboot_table-test-srcs += tests/lib/coreboot_table-test.c |
| 137 | coreboot_table-test-srcs += tests/stubs/console.c |
| 138 | coreboot_table-test-srcs += src/lib/compute_ip_checksum.c |
| 139 | coreboot_table-test-srcs += src/lib/coreboot_table.c |
| 140 | coreboot_table-test-srcs += src/lib/imd_cbmem.c |
| 141 | coreboot_table-test-srcs += src/lib/imd.c |
| 142 | coreboot_table-test-cflags += -I src -I 3rdparty/vboot/firmware/include |
| 143 | coreboot_table-test-cflags += -I tests/include/tests/lib/fmap |
| 144 | coreboot_table-test-mocks += cbmem_top_chipset |
Jakub Czapiga | a37c802 | 2021-04-15 11:39:13 +0200 | [diff] [blame] | 145 | |
| 146 | rtc-test-srcs += tests/lib/rtc-test.c |
| 147 | rtc-test-srcs += src/lib/rtc.c |
| 148 | |
Jakub Czapiga | 2b8d721 | 2021-04-22 20:14:02 +0200 | [diff] [blame^] | 149 | spd_cache-ddr3-test-srcs += tests/lib/spd_cache-test.c |
| 150 | spd_cache-ddr3-test-srcs += tests/stubs/console.c |
| 151 | spd_cache-ddr3-test-srcs += src/lib/spd_cache.c |
| 152 | spd_cache-ddr3-test-srcs += src/lib/crc_byte.c |
| 153 | spd_cache-ddr3-test-srcs += src/commonlib/region.c |
| 154 | spd_cache-ddr3-test-mocks += fmap_locate_area_as_rdev |
| 155 | spd_cache-ddr3-test-config += CONFIG_SPD_CACHE_FMAP_NAME=\"RW_SPD_CACHE\" \ |
| 156 | CONFIG_DIMM_MAX=4 CONFIG_DIMM_SPD_SIZE=256 \ |
| 157 | CONFIG_BOOT_DEVICE_MEMORY_MAPPED=1 |
| 158 | spd_cache-ddr3-test-cflags += -D__TEST_SPD_CACHE_DDR=3 |
| 159 | |
| 160 | spd_cache-ddr4-test-srcs += tests/lib/spd_cache-test.c |
| 161 | spd_cache-ddr4-test-srcs += tests/stubs/console.c |
| 162 | spd_cache-ddr4-test-srcs += src/lib/spd_cache.c |
| 163 | spd_cache-ddr4-test-srcs += src/lib/crc_byte.c |
| 164 | spd_cache-ddr4-test-srcs += src/commonlib/region.c |
| 165 | spd_cache-ddr4-test-mocks += fmap_locate_area_as_rdev |
| 166 | spd_cache-ddr4-test-config += CONFIG_SPD_CACHE_FMAP_NAME=\"RW_SPD_CACHE\" \ |
| 167 | CONFIG_DIMM_MAX=4 CONFIG_DIMM_SPD_SIZE=512 \ |
| 168 | CONFIG_BOOT_DEVICE_MEMORY_MAPPED=1 |
| 169 | spd_cache-ddr4-test-cflags += -D__TEST_SPD_CACHE_DDR=4 |