1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-03 00:11:30 +02:00

test: add asn1 unit test

This test will exercise asn1 compiler as well as asn1 decoder functions
via various parsers.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
This commit is contained in:
AKASHI Takahiro
2019-11-13 09:45:02 +09:00
committed by Tom Rini
parent e85a787c7d
commit f523400f60
3 changed files with 410 additions and 1 deletions

View File

@@ -12,7 +12,23 @@ config UT_LIB
default y
help
Enables the 'ut lib' command which tests library functions like
memcat(), memcyp(), memmove().
memcat(), memcyp(), memmove() and ASN1 compiler/decoder.
if UT_LIB
config UT_LIB_ASN1
bool "Unit test for asn1 compiler and decoder function"
default y
imply ASYMMETRIC_KEY_TYPE
imply ASYMMETRIC_PUBLIC_KEY_SUBTYPE
imply X509_CERTIFICATE_PARSER
imply PKCS7_MESSAGE_PARSER
imply RSA_PUBLIC_KEY_PARSER
help
Enables a test which exercises asn1 compiler and decoder function
via various parsers.
endif
config UT_TIME
bool "Unit tests for time functions"