attest: add testdata for crypto agile event (#82)

Test data copied from
https://github.com/mwiseman32/Attestation-annotation
This commit is contained in:
Eric Chiang 2019-08-21 10:00:18 -07:00 committed by Tom D
parent 6e2e8693ad
commit cd07b32602
2 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,16 @@ func testParseEventLog(t *testing.T, testdata string) {
}
}
func TestParseCryptoAgileEventLog(t *testing.T) {
data, err := ioutil.ReadFile("testdata/crypto_agile_eventlog")
if err != nil {
t.Fatalf("reading test data: %v", err)
}
if _, err := parseEventLog(data); err != nil {
t.Fatalf("parsing event log: %v", err)
}
}
func TestEventLogLinux(t *testing.T) {
testEventLog(t, "testdata/linux_tpm12.json")
}

BIN
attest/testdata/crypto_agile_eventlog vendored Normal file

Binary file not shown.