VirtualBox

Ignore:
Timestamp:
Nov 19, 2019 10:34:47 AM (5 years ago)
Author:
vboxsync
Message:

ValidationKit: add support for split out graphics adapter interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r81474 r81982  
    20292029        reporter.log("  CPUs:               %s" % (oVM.CPUCount,));
    20302030        reporter.log("  RAM:                %sMB" % (oVM.memorySize,));
    2031         reporter.log("  VRAM:               %sMB" % (oVM.VRAMSize,));
    2032         reporter.log("  Monitors:           %s" % (oVM.monitorCount,));
    2033         reporter.log("  GraphicsController: %s"
    2034                      % (self.oVBoxMgr.getEnumValueName('GraphicsControllerType', oVM.graphicsControllerType),));
     2031        if self.fpApiVer >= 6.1 and hasattr(oVM, 'graphicsAdapter'):
     2032            reporter.log("  VRAM:               %sMB" % (oVM.graphicsAdapter.VRAMSize,));
     2033            reporter.log("  Monitors:           %s" % (oVM.graphicsAdapter.monitorCount,));
     2034            reporter.log("  GraphicsController: %s"
     2035                         % (self.oVBoxMgr.getEnumValueName('GraphicsControllerType', oVM.graphicsAdapter.graphicsControllerType),));
     2036        else:
     2037            reporter.log("  VRAM:               %sMB" % (oVM.VRAMSize,));
     2038            reporter.log("  Monitors:           %s" % (oVM.monitorCount,));
     2039            reporter.log("  GraphicsController: %s"
     2040                         % (self.oVBoxMgr.getEnumValueName('GraphicsControllerType', oVM.graphicsControllerType),));
    20352041        reporter.log("  Chipset:            %s" % (self.oVBoxMgr.getEnumValueName('ChipsetType', oVM.chipsetType),));
    20362042        reporter.log("  Firmware:           %s" % (self.oVBoxMgr.getEnumValueName('FirmwareType', oVM.firmwareType),));
     
    20592065            else:
    20602066                reporter.log("  HPET:               %s" % (oVM.hpetEnabled,));
    2061         reporter.log("  3D acceleration:    %s" % (oVM.accelerate3DEnabled,));
    2062         reporter.log("  2D acceleration:    %s" % (oVM.accelerate2DVideoEnabled,));
     2067        if self.fpApiVer >= 6.1 and hasattr(oVM, 'graphicsAdapter'):
     2068            reporter.log("  3D acceleration:    %s" % (oVM.graphicsAdapter.accelerate3DEnabled,));
     2069            reporter.log("  2D acceleration:    %s" % (oVM.graphicsAdapter.accelerate2DVideoEnabled,));
     2070        else:
     2071            reporter.log("  3D acceleration:    %s" % (oVM.accelerate3DEnabled,));
     2072            reporter.log("  2D acceleration:    %s" % (oVM.accelerate2DVideoEnabled,));
    20632073        reporter.log("  TeleporterEnabled:  %s" % (oVM.teleporterEnabled,));
    20642074        reporter.log("  TeleporterPort:     %s" % (oVM.teleporterPort,));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette