File tree Expand file tree Collapse file tree 4 files changed +418
-0
lines changed Expand file tree Collapse file tree 4 files changed +418
-0
lines changed Original file line number Diff line number Diff line change
1
+ CONFIG_KUNIT=y
2
+ CONFIG_BLK_DEV_INITRD=y
3
+ CONFIG_INITRAMFS_TEST=y
Original file line number Diff line number Diff line change @@ -1454,6 +1454,13 @@ config INITRAMFS_PRESERVE_MTIME
1454
1454
1455
1455
If unsure, say Y.
1456
1456
1457
+ config INITRAMFS_TEST
1458
+ bool "Test initramfs cpio archive extraction" if !KUNIT_ALL_TESTS
1459
+ depends on BLK_DEV_INITRD && KUNIT=y
1460
+ default KUNIT_ALL_TESTS
1461
+ help
1462
+ Build KUnit tests for initramfs. See Documentation/dev-tools/kunit
1463
+
1457
1464
choice
1458
1465
prompt "Compiler optimization level"
1459
1466
default CC_OPTIMIZE_FOR_PERFORMANCE
Original file line number Diff line number Diff line change 12
12
obj-$(CONFIG_BLK_DEV_INITRD) += initramfs.o
13
13
endif
14
14
obj-$(CONFIG_GENERIC_CALIBRATE_DELAY) += calibrate.o
15
+ obj-$(CONFIG_INITRAMFS_TEST) += initramfs_test.o
15
16
16
17
obj-y += init_task.o
17
18
You can’t perform that action at this time.
0 commit comments