github.com/linuxboot/fiano@v1.2.0/pkg/intel/metadata/bg/bgbootpolicy/manifest_test.go (about)

     1  // Copyright 2017-2023 the LinuxBoot Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package bgbootpolicy
     6  
     7  import (
     8  	"testing"
     9  
    10  	"github.com/linuxboot/fiano/pkg/intel/metadata/common/unittest"
    11  )
    12  
    13  func TestReadWrite(t *testing.T) {
    14  	unittest.BGManifestReadWrite(t, &Manifest{}, "testdata/bpm.bin")
    15  	unittest.BGManifestReadWrite(t, &Manifest{}, "testdata/bpm2.bin")
    16  	unittest.BGManifestReadWrite(t, &Manifest{}, "testdata/bpm3.bin")
    17  }