mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 01:24:26 +01:00
qemu: add support for device loaders
Devices loaders can be used to load some firmwares. Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -1240,3 +1240,20 @@ func TestAppendPVPanicDevice(t *testing.T) {
|
||||
testAppend(tc.dev, tc.out, t)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoaderDevice(t *testing.T) {
|
||||
testCases := []struct {
|
||||
dev Device
|
||||
out string
|
||||
}{
|
||||
{nil, ""},
|
||||
{LoaderDevice{}, ""},
|
||||
{LoaderDevice{File: "f"}, ""},
|
||||
{LoaderDevice{ID: "id"}, ""},
|
||||
{LoaderDevice{File: "f", ID: "id"}, "-device loader,file=f,id=id"},
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
testAppend(tc.dev, tc.out, t)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user