summaryrefslogtreecommitdiff
path: root/security/ipe/Kconfig
diff options
context:
space:
mode:
authorDeven Bowers <deven.desai@linux.microsoft.com>2024-08-02 23:08:32 -0700
committerPaul Moore <paul@paul-moore.com>2024-08-20 14:03:43 -0400
commit10ca05a7606519c7ec6a4b48be00ef90822c36a8 (patch)
tree37220d9fd3f04642c8022ee66c6aa3d883ce8315 /security/ipe/Kconfig
parentba199dc909a20fe62270ae4e93f263987bb9d119 (diff)
downloadlinux-10ca05a7606519c7ec6a4b48be00ef90822c36a8.tar.gz
linux-10ca05a7606519c7ec6a4b48be00ef90822c36a8.tar.bz2
linux-10ca05a7606519c7ec6a4b48be00ef90822c36a8.zip
ipe: kunit test for parser
Add various happy/unhappy unit tests for both IPE's policy parser. Besides, a test suite for IPE functionality is available at https://github.com/microsoft/ipe/tree/test-suite Signed-off-by: Deven Bowers <deven.desai@linux.microsoft.com> Signed-off-by: Fan Wu <wufan@linux.microsoft.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/ipe/Kconfig')
-rw-r--r--security/ipe/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/security/ipe/Kconfig b/security/ipe/Kconfig
index fccc69e66af1..3ab582606ed2 100644
--- a/security/ipe/Kconfig
+++ b/security/ipe/Kconfig
@@ -77,4 +77,21 @@ config IPE_PROP_FS_VERITY_BUILTIN_SIG
endmenu
+config SECURITY_IPE_KUNIT_TEST
+ bool "Build KUnit tests for IPE" if !KUNIT_ALL_TESTS
+ depends on KUNIT=y
+ default KUNIT_ALL_TESTS
+ help
+ This builds the IPE KUnit tests.
+
+ KUnit tests run during boot and output the results to the debug log
+ in TAP format (https://testanything.org/). Only useful for kernel devs
+ running KUnit test harness and are not for inclusion into a
+ production build.
+
+ For more information on KUnit and unit tests in general please refer
+ to the KUnit documentation in Documentation/dev-tools/kunit/.
+
+ If unsure, say N.
+
endif