mirror of
https://github.com/google/go-attestation.git
synced 2025-02-20 17:02:47 +00:00
attest: add testdata for crypto agile event (#82)
Test data copied from https://github.com/mwiseman32/Attestation-annotation
This commit is contained in:
parent
6e2e8693ad
commit
cd07b32602
@ -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
BIN
attest/testdata/crypto_agile_eventlog
vendored
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user