tests: Add test for PE/COFF cert table header validity

Add a test to check the validity of the certificate table header,
ensuring that parsing the header gives us the valid certificate.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-06-28 12:38:34 +08:00
parent bf7e97bd1c
commit 1614a6e0f1
2 changed files with 73 additions and 1 deletions

View file

@ -43,7 +43,8 @@ TESTS = sign-verify.sh \
sign-missing-key.sh \
verify-missing-image.sh \
verify-missing-cert.sh \
sign-invalidattach-verify.sh
sign-invalidattach-verify.sh \
cert-table-header.sh
EXTRA_DIST = $(test_lds) test.S $(TESTS) $(check_SCRIPTS)
CLEANFILES = $(test_key) $(test_cert) $(test_image)