Running main() from gtest_main.cc
[==========] Running 83 tests from 10 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from DevMemTest
[ RUN ] DevMemTest.NoOverlappingRanges
[ OK ] DevMemTest.NoOverlappingRanges (0 ms)
[ RUN ] DevMemTest.CanHaveAdjacentRanges
[ OK ] DevMemTest.CanHaveAdjacentRanges (0 ms)
[ RUN ] DevMemTest.SizedRanges
[ OK ] DevMemTest.SizedRanges (0 ms)
[----------] 3 tests from DevMemTest (0 ms total)
[----------] 20 tests from GuestConfigParserTest
[ RUN ] GuestConfigParserTest.DefaultValues
[ OK ] GuestConfigParserTest.DefaultValues (1 ms)
[ RUN ] GuestConfigParserTest.ParseConfig
[ OK ] GuestConfigParserTest.ParseConfig (0 ms)
[ RUN ] GuestConfigParserTest.ParseArgs
[ OK ] GuestConfigParserTest.ParseArgs (1 ms)
[ RUN ] GuestConfigParserTest.UnknownArgument
[ERROR:garnet/bin/guest/vmm/guest_config.cc(332)] Unknown option --invalid-arg
usage: exe_name [OPTIONS]
OPTIONS:
--block=[spec] Adds a block device with the given parameters
--cmdline-add=[string] Adds 'string' to the existing kernel command line.
This will overwrite any existing command line created
using --cmdline or --cmdline-add
--cmdline=[string] Use 'string' as the kernel command line
--cpus=[number] Number of virtual CPUs available to the guest
--dtb-overlay=[path] Load a DTB overlay for a Linux kernel
--host-memory Directly map host memory into the guest
--linux=[path] Load a Linux kernel from 'path'
--legacy-net Enable legacy virtio-net (uses host interface)
--memory=[bytes] Allocate 'bytes' of memory for the guest.
The suffixes 'k', 'M', and 'G' are accepted
--interrupt=[spec] Adds a hardware interrupt mapping to the guest
--ramdisk=[path] Load 'path' as an initial RAM disk
--virtio-balloon Enable virtio-balloon (default)
--virtio-console Enable virtio-console (default)
--virtio-gpu Enable virtio-gpu and virtio-input (default)
--virtio-net Enable virtio-net (default)
--virtio-rng Enable virtio-rng (default)
--virtio-vsock Enable virtio-vsock (default)
--zircon=[path] Load a Zircon kernel from 'path'
BLOCK SPEC
Block devices can be specified by path:
/pkg/data/disk.img
Additional Options:
rw/ro: Create a read/write or read-only device.
fdio: Use the FDIO back-end for the block device.
Ex:
To open a filesystem resource packaged with the guest application
(read-only is important here as the /pkg/data namespace provides
read-only view into the package resources):
/pkg/data/system.img,fdio,ro
To specify a block device with a given path and read-write
permissions
/dev/class/block/000,fdio,rw
[ OK ] GuestConfigParserTest.UnknownArgument (16 ms)
[ RUN ] GuestConfigParserTest.BooleanFlag
[ OK ] GuestConfigParserTest.BooleanFlag (0 ms)
[ RUN ] GuestConfigParserTest.CommandLineAppend
[ OK ] GuestConfigParserTest.CommandLineAppend (0 ms)
[ RUN ] GuestConfigParserTest.BlockSpecArg
[ OK ] GuestConfigParserTest.BlockSpecArg (0 ms)
[ RUN ] GuestConfigParserTest.BlockSpecJson
[ OK ] GuestConfigParserTest.BlockSpecJson (0 ms)
[ RUN ] GuestConfigParserTest.InterruptSpecArg
[ OK ] GuestConfigParserTest.InterruptSpecArg (1 ms)
[ RUN ] GuestConfigParserTest.InterruptSpecJson
[ OK ] GuestConfigParserTest.InterruptSpecJson (0 ms)
[ RUN ] GuestConfigParserTest.Memory_1024k
[ OK ] GuestConfigParserTest.Memory_1024k (0 ms)
[ RUN ] GuestConfigParserTest.Memory_2M
[ OK ] GuestConfigParserTest.Memory_2M (0 ms)
[ RUN ] GuestConfigParserTest.Memory_4G
[ OK ] GuestConfigParserTest.Memory_4G (0 ms)
[ RUN ] GuestConfigParserTest.Memory_AddressAndSize
[ OK ] GuestConfigParserTest.Memory_AddressAndSize (0 ms)
[ RUN ] GuestConfigParserTest.Memory_HostCached
[ OK ] GuestConfigParserTest.Memory_HostCached (0 ms)
[ RUN ] GuestConfigParserTest.Memory_HostDevice
[ OK ] GuestConfigParserTest.Memory_HostDevice (0 ms)
[ RUN ] GuestConfigParserTest.Memory_MultipleEntries
[ OK ] GuestConfigParserTest.Memory_MultipleEntries (0 ms)
[ RUN ] GuestConfigParserTest.Memory_IllegalModifier
[ERROR:garnet/bin/guest/vmm/guest_config.cc(237)] Invalid size modifier l
[ERROR:garnet/bin/guest/vmm/guest_config.cc(98)] Failed to parse option string '5l'
usage: exe_name [OPTIONS]
OPTIONS:
--block=[spec] Adds a block device with the given parameters
--cmdline-add=[string] Adds 'string' to the existing kernel command line.
This will overwrite any existing command line created
using --cmdline or --cmdline-add
--cmdline=[string] Use 'string' as the kernel command line
--cpus=[number] Number of virtual CPUs available to the guest
--dtb-overlay=[path] Load a DTB overlay for a Linux kernel
--host-memory Directly map host memory into the guest
--linux=[path] Load a Linux kernel from 'path'
--legacy-net Enable legacy virtio-net (uses host interface)
--memory=[bytes] Allocate 'bytes' of memory for the guest.
The suffixes 'k', 'M', and 'G' are accepted
--interrupt=[spec] Adds a hardware interrupt mapping to the guest
--ramdisk=[path] Load 'path' as an initial RAM disk
--virtio-balloon Enable virtio-balloon (default)
--virtio-console Enable virtio-console (default)
--virtio-gpu Enable virtio-gpu and virtio-input (default)
--virtio-net Enable virtio-net (default)
--virtio-rng Enable virtio-rng (default)
--virtio-vsock Enable virtio-vsock (default)
--zircon=[path] Load a Zircon kernel from 'path'
BLOCK SPEC
Block devices can be specified by path:
/pkg/data/disk.img
Additional Options:
rw/ro: Create a read/write or read-only device.
fdio: Use the FDIO back-end for the block device.
Ex:
To open a filesystem resource packaged with the guest application
(read-only is important here as the /pkg/data namespace provides
read-only view into the package resources):
/pkg/data/system.img,fdio,ro
To specify a block device with a given path and read-write
permissions
/dev/class/block/000,fdio,rw
[ OK ] GuestConfigParserTest.Memory_IllegalModifier (0 ms)
[ RUN ] GuestConfigParserTest.Memory_NonNumber
[ERROR:garnet/bin/guest/vmm/guest_config.cc(220)] Value is not a size string: abc
[ERROR:garnet/bin/guest/vmm/guest_config.cc(98)] Failed to parse option string 'abc'
usage: exe_name [OPTIONS]
OPTIONS:
--block=[spec] Adds a block device with the given parameters
--cmdline-add=[string] Adds 'string' to the existing kernel command line.
This will overwrite any existing command line created
using --cmdline or --cmdline-add
--cmdline=[string] Use 'string' as the kernel command line
--cpus=[number] Number of virtual CPUs available to the guest
--dtb-overlay=[path] Load a DTB overlay for a Linux kernel
--host-memory Directly map host memory into the guest
--linux=[path] Load a Linux kernel from 'path'
--legacy-net Enable legacy virtio-net (uses host interface)
--memory=[bytes] Allocate 'bytes' of memory for the guest.
The suffixes 'k', 'M', and 'G' are accepted
--interrupt=[spec] Adds a hardware interrupt mapping to the guest
--ramdisk=[path] Load 'path' as an initial RAM disk
--virtio-balloon Enable virtio-balloon (default)
--virtio-console Enable virtio-console (default)
--virtio-gpu Enable virtio-gpu and virtio-input (default)
--virtio-net Enable virtio-net (default)
--virtio-rng Enable virtio-rng (default)
--virtio-vsock Enable virtio-vsock (default)
--zircon=[path] Load a Zircon kernel from 'path'
BLOCK SPEC
Block devices can be specified by path:
/pkg/data/disk.img
Additional Options:
rw/ro: Create a read/write or read-only device.
fdio: Use the FDIO back-end for the block device.
Ex:
To open a filesystem resource packaged with the guest application
(read-only is important here as the /pkg/data namespace provides
read-only view into the package resources):
/pkg/data/system.img,fdio,ro
To specify a block device with a given path and read-write
permissions
/dev/class/block/000,fdio,rw
[ OK ] GuestConfigParserTest.Memory_NonNumber (0 ms)
[ RUN ] GuestConfigParserTest.VirtioGpu
[ OK ] GuestConfigParserTest.VirtioGpu (0 ms)
[----------] 20 tests from GuestConfigParserTest (331 ms total)
[----------] 5 tests from PciDeviceTest
[ RUN ] PciDeviceTest.ReadConfigRegister
[ OK ] PciDeviceTest.ReadConfigRegister (1 ms)
[ RUN ] PciDeviceTest.ReadConfigRegisterBytewise
[ OK ] PciDeviceTest.ReadConfigRegisterBytewise (0 ms)
[ RUN ] PciDeviceTest.ReadBarSize
[ OK ] PciDeviceTest.ReadBarSize (0 ms)
[ RUN ] PciDeviceTest.ReadCapability
[ OK ] PciDeviceTest.ReadCapability (0 ms)
[ RUN ] PciDeviceTest.ReadChainedCapability
[ OK ] PciDeviceTest.ReadChainedCapability (0 ms)
[----------] 5 tests from PciDeviceTest (1 ms total)
[----------] 3 tests from PciBusTest
[ RUN ] PciBusTest.WriteConfigAddressPort
[ OK ] PciBusTest.WriteConfigAddressPort (0 ms)
[ RUN ] PciBusTest.ReadConfigAddressPort
[ OK ] PciBusTest.ReadConfigAddressPort (0 ms)
[ RUN ] PciBusTest.ReadConfigDataPort
[ OK ] PciBusTest.ReadConfigDataPort (0 ms)
[----------] 3 tests from PciBusTest (0 ms total)
[----------] 4 tests from VirtioNetTest
[ RUN ] VirtioNetTest.DrainQueue
TEST_LOOP_RANDOM_SEED="4189112575"
[ OK ] VirtioNetTest.DrainQueue (531 ms)
[ RUN ] VirtioNetTest.HeaderOnDifferentBuffer
TEST_LOOP_RANDOM_SEED="932540306"
[ OK ] VirtioNetTest.HeaderOnDifferentBuffer (0 ms)
[ RUN ] VirtioNetTest.InvalidDesc
TEST_LOOP_RANDOM_SEED="725432664"
[ERROR:garnet/bin/guest/vmm/virtio_net_legacy.cc(87)] Packet data must be on a single buffer
[ OK ] VirtioNetTest.InvalidDesc (0 ms)
[ RUN ] VirtioNetTest.PeerClosed
TEST_LOOP_RANDOM_SEED="121969790"
[ERROR:garnet/bin/guest/vmm/virtio_net_legacy.cc(252)] Failed to read from fifo: -24
[ERROR:garnet/bin/guest/vmm/virtio_net_legacy.cc(252)] Failed to read from fifo: -24
[ERROR:garnet/bin/guest/vmm/virtio_net_legacy.cc(214)] Failed write entries to fifo: -24
[ OK ] VirtioNetTest.PeerClosed (44 ms)
[----------] 4 tests from VirtioNetTest (576 ms total)
[----------] 1 test from VirtioQueueTest
[ RUN ] VirtioQueueTest.HandleOverflow
[ OK ] VirtioQueueTest.HandleOverflow (0 ms)
[----------] 1 test from VirtioQueueTest (0 ms total)
[----------] 1 test from VirtioQueueWaiterTest
[ RUN ] VirtioQueueWaiterTest.Wait
TEST_LOOP_RANDOM_SEED="3782389016"
[ OK ] VirtioQueueWaiterTest.Wait (24 ms)
[----------] 1 test from VirtioQueueWaiterTest (26 ms total)
[----------] 30 tests from VirtioVsockTest
[ RUN ] VirtioVsockTest.Connect
TEST_LOOP_RANDOM_SEED="4192580326"
[ OK ] VirtioVsockTest.Connect (1 ms)
[ RUN ] VirtioVsockTest.ConnectWithChannel
TEST_LOOP_RANDOM_SEED="3513984109"
[ OK ] VirtioVsockTest.ConnectWithChannel (30 ms)
[ RUN ] VirtioVsockTest.ConnectMultipleTimes
TEST_LOOP_RANDOM_SEED="3608176516"
[ OK ] VirtioVsockTest.ConnectMultipleTimes (1 ms)
[ RUN ] VirtioVsockTest.ConnectMultipleTimesSamePort
TEST_LOOP_RANDOM_SEED="1109326463"
[ OK ] VirtioVsockTest.ConnectMultipleTimesSamePort (1 ms)
[ RUN ] VirtioVsockTest.ConnectRefused
TEST_LOOP_RANDOM_SEED="2631213234"
[ OK ] VirtioVsockTest.ConnectRefused (1 ms)
[ RUN ] VirtioVsockTest.Listen
TEST_LOOP_RANDOM_SEED="3330509468"
[ OK ] VirtioVsockTest.Listen (0 ms)
[ RUN ] VirtioVsockTest.ListenWithChannel
TEST_LOOP_RANDOM_SEED="3194575585"
[ OK ] VirtioVsockTest.ListenWithChannel (0 ms)
[ RUN ] VirtioVsockTest.ListenMultipleTimes
TEST_LOOP_RANDOM_SEED="3498526888"
[ OK ] VirtioVsockTest.ListenMultipleTimes (0 ms)
[ RUN ] VirtioVsockTest.ListenMultipleTimesSameHostPort
TEST_LOOP_RANDOM_SEED="1843673209"
[ OK ] VirtioVsockTest.ListenMultipleTimesSameHostPort (0 ms)
[ RUN ] VirtioVsockTest.ListenMultipleTimesSamePort
TEST_LOOP_RANDOM_SEED="2434407639"
[ERROR:garnet/bin/guest/vmm/virtio_vsock.cc(855)] Connection request for an existing connection
[ OK ] VirtioVsockTest.ListenMultipleTimesSamePort (1 ms)
[ RUN ] VirtioVsockTest.ListenRefused
TEST_LOOP_RANDOM_SEED="604368828"
[ERROR:garnet/bin/guest/vmm/virtio_vsock.cc(545)] Unexpected handle type 0
[ OK ] VirtioVsockTest.ListenRefused (0 ms)
[ RUN ] VirtioVsockTest.ListenWrongCid
TEST_LOOP_RANDOM_SEED="3810462745"
[ERROR:garnet/bin/guest/vmm/virtio_vsock.cc(859)] Source CID does not match guest CID
[ OK ] VirtioVsockTest.ListenWrongCid (0 ms)
[ RUN ] VirtioVsockTest.Reset
TEST_LOOP_RANDOM_SEED="2030542029"
[ OK ] VirtioVsockTest.Reset (0 ms)
[ RUN ] VirtioVsockTest.ShutdownRead
TEST_LOOP_RANDOM_SEED="3844466742"
[ OK ] VirtioVsockTest.ShutdownRead (0 ms)
[ RUN ] VirtioVsockTest.ShutdownWrite
TEST_LOOP_RANDOM_SEED="1436308755"
[ OK ] VirtioVsockTest.ShutdownWrite (0 ms)
[ RUN ] VirtioVsockTest.WriteAfterShutdown
TEST_LOOP_RANDOM_SEED="2322466713"
[ERROR:garnet/bin/guest/vmm/virtio_vsock.cc(890)] Send was shutdown
[ OK ] VirtioVsockTest.WriteAfterShutdown (0 ms)
[ RUN ] VirtioVsockTest.Read
TEST_LOOP_RANDOM_SEED="2445329431"
[ OK ] VirtioVsockTest.Read (1 ms)
[ RUN ] VirtioVsockTest.ReadWithChannel
TEST_LOOP_RANDOM_SEED="1166852134"
[ OK ] VirtioVsockTest.ReadWithChannel (1 ms)
[ RUN ] VirtioVsockTest.ReadChained
TEST_LOOP_RANDOM_SEED="1719051757"
[ OK ] VirtioVsockTest.ReadChained (2 ms)
[ RUN ] VirtioVsockTest.ReadNoBuffer
TEST_LOOP_RANDOM_SEED="2736810705"
[ OK ] VirtioVsockTest.ReadNoBuffer (0 ms)
[ RUN ] VirtioVsockTest.Write
TEST_LOOP_RANDOM_SEED="2017131319"
[ OK ] VirtioVsockTest.Write (0 ms)
[ RUN ] VirtioVsockTest.WriteWithChannel
TEST_LOOP_RANDOM_SEED="3140515563"
[ OK ] VirtioVsockTest.WriteWithChannel (1 ms)
[ RUN ] VirtioVsockTest.WriteMultiple
TEST_LOOP_RANDOM_SEED="147778404"
[ OK ] VirtioVsockTest.WriteMultiple (0 ms)
[ RUN ] VirtioVsockTest.WriteUpdateCredit
TEST_LOOP_RANDOM_SEED="1527207337"
[ OK ] VirtioVsockTest.WriteUpdateCredit (0 ms)
[ RUN ] VirtioVsockTest.WriteSocketFullReset
TEST_LOOP_RANDOM_SEED="47929394"
[ERROR:garnet/bin/guest/vmm/virtio_vsock.cc(340)] Failed to write to socket 0
[ OK ] VirtioVsockTest.WriteSocketFullReset (1 ms)
[ RUN ] VirtioVsockTest.SendCreditUpdateWhenSocketIsDrained
TEST_LOOP_RANDOM_SEED="1721749663"
[ OK ] VirtioVsockTest.SendCreditUpdateWhenSocketIsDrained (0 ms)
[ RUN ] VirtioVsockTest.MultipleConnections
TEST_LOOP_RANDOM_SEED="1469363228"
[ OK ] VirtioVsockTest.MultipleConnections (1 ms)
[ RUN ] VirtioVsockTest.CreditRequest
TEST_LOOP_RANDOM_SEED="3035081450"
[ OK ] VirtioVsockTest.CreditRequest (0 ms)
[ RUN ] VirtioVsockTest.UnsupportedSocketType
TEST_LOOP_RANDOM_SEED="3886859788"
[ERROR:garnet/bin/guest/vmm/virtio_vsock.cc(841)] Only stream sockets are supported
[ERROR:garnet/bin/guest/vmm/virtio_vsock.cc(885)] Connection does not exist
[ OK ] VirtioVsockTest.UnsupportedSocketType (0 ms)
[ RUN ] VirtioVsockTest.InitialCredit
TEST_LOOP_RANDOM_SEED="1083274276"
[ OK ] VirtioVsockTest.InitialCredit (0 ms)
[----------] 30 tests from VirtioVsockTest (42 ms total)
[----------] 11 tests from InstDecodeTest
[ RUN ] InstDecodeTest.failure
[ OK ] InstDecodeTest.failure (0 ms)
[ RUN ] InstDecodeTest.mov_89
[ OK ] InstDecodeTest.mov_89 (0 ms)
[ RUN ] InstDecodeTest.mov_88
[ OK ] InstDecodeTest.mov_88 (0 ms)
[ RUN ] InstDecodeTest.mov_8b
[ OK ] InstDecodeTest.mov_8b (0 ms)
[ RUN ] InstDecodeTest.mov_8a
[ OK ] InstDecodeTest.mov_8a (0 ms)
[ RUN ] InstDecodeTest.mov_c7
[ OK ] InstDecodeTest.mov_c7 (0 ms)
[ RUN ] InstDecodeTest.mov_c6
[ OK ] InstDecodeTest.mov_c6 (0 ms)
[ RUN ] InstDecodeTest.movz_0f_b6
[ OK ] InstDecodeTest.movz_0f_b6 (0 ms)
[ RUN ] InstDecodeTest.movz_0f_b7
[ OK ] InstDecodeTest.movz_0f_b7 (0 ms)
[ RUN ] InstDecodeTest.test_f6
[ OK ] InstDecodeTest.test_f6 (0 ms)
[ RUN ] InstDecodeTest.computing_flags
[ OK ] InstDecodeTest.computing_flags (0 ms)
[----------] 11 tests from InstDecodeTest (0 ms total)
[----------] 5 tests from PageTableTest
[ RUN ] PageTableTest.1gb
[ OK ] PageTableTest.1gb (0 ms)
[ RUN ] PageTableTest.2mb
[ OK ] PageTableTest.2mb (0 ms)
[ RUN ] PageTableTest.4kb
[ OK ] PageTableTest.4kb (0 ms)
[ RUN ] PageTableTest.MixedPages
[ OK ] PageTableTest.MixedPages (0 ms)
[ RUN ] PageTableTest.Complex
[ OK ] PageTableTest.Complex (0 ms)
[----------] 5 tests from PageTableTest (0 ms total)
[----------] Global test environment tear-down
[==========] 83 tests from 10 test cases ran. (1030 ms total)
[ PASSED ] 83 tests.