Changeset 70686 in vbox
- Timestamp:
- Jan 22, 2018 7:28:51 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120422
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py
r70660 r70686 53 53 'hwvirt-np' : 'NestedPaging' 54 54 }; 55 56 ## @name VM grouping flags57 ## @{58 g_kfGrpSmoke = 0x0001; ##< Smoke test VM.59 g_kfGrpStandard = 0x0002; ##< Standard test VM.60 g_kfGrpStdSmoke = g_kfGrpSmoke | g_kfGrpStandard; ##< shorthand.61 g_kfGrpWithGAs = 0x0004; ##< The VM has guest additions installed.62 g_kfGrpNoTxs = 0x0008; ##< The VM lacks test execution service.63 g_kfGrpAncient = 0x1000; ##< Ancient OS.64 g_kfGrpExotic = 0x2000; ##< Exotic OS.65 ## @}66 67 55 68 56 ## @name Flags. … … 558 546 559 547 560 561 548 #class AncientTestVm(object): 562 549 # """ … … 571 558 # TestVm.__init__(self, oSet, sVmName, 572 559 # 573 574 575 g_aTestVMs = [576 # Linux577 TestVm('tst-ubuntu-15_10-64-efi', g_kfGrpStdSmoke, sHd = '4.2/efi/ubuntu-15_10-efi-amd64.vdi',578 sKind = 'Ubuntu_64', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi',579 asParavirtModesSup = [g_ksParavirtProviderKVM,]),580 TestVm('tst-rhel5', g_kfGrpSmoke, sHd = '3.0/tcp/rhel5.vdi',581 sKind = 'RedHat', acCpusSup = range(1, 33), fIoApic = True, sNic0AttachType = 'nat'),582 583 # Solaris584 TestVm('tst-sol10', g_kfGrpSmoke, sHd = '3.0/tcp/solaris10.vdi',585 sKind = 'Solaris', acCpusSup = range(1, 33), fPae = True, sNic0AttachType = 'bridged'),586 TestVm('tst-sol10-64', g_kfGrpSmoke, sHd = '3.0/tcp/solaris10.vdi',587 sKind = 'Solaris_64', acCpusSup = range(1, 33), sNic0AttachType = 'bridged'),588 TestVm('tst-sol11u1', g_kfGrpSmoke, sHd = '4.2/nat/sol11u1/t-sol11u1.vdi',589 sKind = 'Solaris11_64', acCpusSup = range(1, 33), sNic0AttachType = 'nat', fIoApic = True,590 sHddControllerType = 'SATA Controller'),591 #TestVm('tst-sol11u1-ich9', g_kfGrpSmoke, sHd = '4.2/nat/sol11u1/t-sol11u1.vdi',592 # sKind = 'Solaris11_64', acCpusSup = range(1, 33), sNic0AttachType = 'nat', fIoApic = True,593 # sHddControllerType = 'SATA Controller', sChipsetType = 'ich9'),594 595 # NT 3.x596 TestVm('tst-nt310', g_kfGrpSmoke, sHd = '5.2/great-old-ones/t-nt310/t-nt310.vdi',597 sKind = 'WindowsNT3x', acCpusSup = [1], sHddControllerType = 'BusLogic SCSI Controller',598 sDvdControllerType = 'BusLogic SCSI Controller'),599 600 # NT 4601 TestVm('tst-nt4sp1', g_kfGrpStdSmoke, sHd = '4.2/nat/nt4sp1/t-nt4sp1.vdi',602 sKind = 'WindowsNT4', acCpusSup = [1], sNic0AttachType = 'nat'),603 604 TestVm('tst-nt4sp6', g_kfGrpStdSmoke, sHd = '4.2/nt4sp6/t-nt4sp6.vdi',605 sKind = 'WindowsNT4', acCpusSup = range(1, 33)),606 607 # W2K608 TestVm('tst-2ksp4', g_kfGrpStdSmoke, sHd = '4.2/win2ksp4/t-win2ksp4.vdi',609 sKind = 'Windows2000', acCpusSup = range(1, 33)),610 611 # XP612 TestVm('tst-xppro', g_kfGrpStdSmoke, sHd = '4.2/nat/xppro/t-xppro.vdi',613 sKind = 'WindowsXP', acCpusSup = range(1, 33), sNic0AttachType = 'nat'),614 TestVm('tst-xpsp2', g_kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxpsp2.vdi',615 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True),616 TestVm('tst-xpsp2-halaacpi', g_kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halaacpi.vdi',617 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True),618 TestVm('tst-xpsp2-halacpi', g_kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halacpi.vdi',619 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True),620 TestVm('tst-xpsp2-halapic', g_kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halapic.vdi',621 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True),622 TestVm('tst-xpsp2-halmacpi', g_kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halmacpi.vdi',623 sKind = 'WindowsXP', acCpusSup = range(2, 33), fIoApic = True),624 TestVm('tst-xpsp2-halmps', g_kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halmps.vdi',625 sKind = 'WindowsXP', acCpusSup = range(2, 33), fIoApic = True),626 627 # W2K3628 TestVm('tst-win2k3ent', g_kfGrpSmoke, sHd = '3.0/tcp/win2k3ent-acpi.vdi',629 sKind = 'Windows2003', acCpusSup = range(1, 33), fPae = True, sNic0AttachType = 'bridged'),630 631 # W7632 TestVm('tst-win7', g_kfGrpStdSmoke, sHd = '4.2/win7-32/t-win7.vdi',633 sKind = 'Windows7', acCpusSup = range(1, 33), fIoApic = True),634 635 # W8636 TestVm('tst-win8-64', g_kfGrpStdSmoke, sHd = '4.2/win8-64/t-win8-64.vdi',637 sKind = 'Windows8_64', acCpusSup = range(1, 33), fIoApic = True),638 #TestVm('tst-win8-64-ich9', g_kfGrpStdSmoke, sHd = '4.2/win8-64/t-win8-64.vdi',639 # sKind = 'Windows8_64', acCpusSup = range(1, 33), fIoApic = True, sChipsetType = 'ich9'),640 641 # W10642 TestVm('tst-win10-efi', g_kfGrpStdSmoke, sHd = '4.2/efi/win10-efi-x86.vdi',643 sKind = 'Windows10', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi'),644 TestVm('tst-win10-64-efi', g_kfGrpStdSmoke, sHd = '4.2/efi/win10-efi-amd64.vdi',645 sKind = 'Windows10_64', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi'),646 #TestVm('tst-win10-64-efi-ich9', g_kfGrpStdSmoke, sHd = '4.2/efi/win10-efi-amd64.vdi',647 # sKind = 'Windows10_64', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi', sChipsetType = 'ich9'),648 649 # DOS and Old Windows.650 # todo ...651 ];652 560 653 561 … … 676 584 Returns None if not found. 677 585 """ 586 587 # The 'tst-' prefix is optional. 588 sAltName = sVmName if sVmName.startswith('tst-') else 'tst-' + sVmName; 589 678 590 for oTestVm in self.aoTestVms: 679 if oTestVm.sVmName == sVmName :591 if oTestVm.sVmName == sVmName or oTestVm.sVmName == sAltName: 680 592 return oTestVm; 681 593 return None; … … 688 600 sVmNames = ''; 689 601 for oTestVm in self.aoTestVms: 602 sName = oTestVm.sVmName; 603 if sName.startswith('tst-'): 604 sName = sName[4:]; 690 605 if sVmNames == '': 691 sVmNames = oTestVm.sVmName;606 sVmNames = sName; 692 607 else: 693 sVmNames = sVmNames + sSep + oTestVm.sVmName;608 sVmNames = sVmNames + sSep + sName; 694 609 return sVmNames; 695 610 … … 1009 924 """ 1010 925 926 ## @name VM grouping flags 927 ## @{ 928 kfGrpSmoke = 0x0001; ##< Smoke test VM. 929 kfGrpStandard = 0x0002; ##< Standard test VM. 930 kfGrpStdSmoke = kfGrpSmoke | kfGrpStandard; ##< shorthand. 931 kfGrpWithGAs = 0x0004; ##< The VM has guest additions installed. 932 kfGrpNoTxs = 0x0008; ##< The VM lacks test execution service. 933 kfGrpAncient = 0x1000; ##< Ancient OS. 934 kfGrpExotic = 0x2000; ##< Exotic OS. 935 ## @} 936 937 kaTestVMs = ( 938 # Linux 939 TestVm('tst-ubuntu-15_10-64-efi', kfGrpStdSmoke, sHd = '4.2/efi/ubuntu-15_10-efi-amd64.vdi', 940 sKind = 'Ubuntu_64', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi', 941 asParavirtModesSup = [g_ksParavirtProviderKVM,]), 942 TestVm('tst-rhel5', kfGrpSmoke, sHd = '3.0/tcp/rhel5.vdi', 943 sKind = 'RedHat', acCpusSup = range(1, 33), fIoApic = True, sNic0AttachType = 'nat'), 944 945 # Solaris 946 TestVm('tst-sol10', kfGrpSmoke, sHd = '3.0/tcp/solaris10.vdi', 947 sKind = 'Solaris', acCpusSup = range(1, 33), fPae = True, sNic0AttachType = 'bridged'), 948 TestVm('tst-sol10-64', kfGrpSmoke, sHd = '3.0/tcp/solaris10.vdi', 949 sKind = 'Solaris_64', acCpusSup = range(1, 33), sNic0AttachType = 'bridged'), 950 TestVm('tst-sol11u1', kfGrpSmoke, sHd = '4.2/nat/sol11u1/t-sol11u1.vdi', 951 sKind = 'Solaris11_64', acCpusSup = range(1, 33), sNic0AttachType = 'nat', fIoApic = True, 952 sHddControllerType = 'SATA Controller'), 953 #TestVm('tst-sol11u1-ich9', kfGrpSmoke, sHd = '4.2/nat/sol11u1/t-sol11u1.vdi', 954 # sKind = 'Solaris11_64', acCpusSup = range(1, 33), sNic0AttachType = 'nat', fIoApic = True, 955 # sHddControllerType = 'SATA Controller', sChipsetType = 'ich9'), 956 957 # NT 3.x 958 TestVm('tst-nt310', kfGrpSmoke, sHd = '5.2/great-old-ones/t-nt310/t-nt310.vdi', 959 sKind = 'WindowsNT3x', acCpusSup = [1], sHddControllerType = 'BusLogic SCSI Controller', 960 sDvdControllerType = 'BusLogic SCSI Controller'), 961 962 # NT 4 963 TestVm('tst-nt4sp1', kfGrpStdSmoke, sHd = '4.2/nat/nt4sp1/t-nt4sp1.vdi', 964 sKind = 'WindowsNT4', acCpusSup = [1], sNic0AttachType = 'nat'), 965 966 TestVm('tst-nt4sp6', kfGrpStdSmoke, sHd = '4.2/nt4sp6/t-nt4sp6.vdi', 967 sKind = 'WindowsNT4', acCpusSup = range(1, 33)), 968 969 # W2K 970 TestVm('tst-2ksp4', kfGrpStdSmoke, sHd = '4.2/win2ksp4/t-win2ksp4.vdi', 971 sKind = 'Windows2000', acCpusSup = range(1, 33)), 972 973 # XP 974 TestVm('tst-xppro', kfGrpStdSmoke, sHd = '4.2/nat/xppro/t-xppro.vdi', 975 sKind = 'WindowsXP', acCpusSup = range(1, 33), sNic0AttachType = 'nat'), 976 TestVm('tst-xpsp2', kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxpsp2.vdi', 977 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True), 978 TestVm('tst-xpsp2-halaacpi', kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halaacpi.vdi', 979 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True), 980 TestVm('tst-xpsp2-halacpi', kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halacpi.vdi', 981 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True), 982 TestVm('tst-xpsp2-halapic', kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halapic.vdi', 983 sKind = 'WindowsXP', acCpusSup = range(1, 33), fIoApic = True), 984 TestVm('tst-xpsp2-halmacpi', kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halmacpi.vdi', 985 sKind = 'WindowsXP', acCpusSup = range(2, 33), fIoApic = True), 986 TestVm('tst-xpsp2-halmps', kfGrpStdSmoke, sHd = '4.2/xpsp2/t-winxp-halmps.vdi', 987 sKind = 'WindowsXP', acCpusSup = range(2, 33), fIoApic = True), 988 989 # W2K3 990 TestVm('tst-win2k3ent', kfGrpSmoke, sHd = '3.0/tcp/win2k3ent-acpi.vdi', 991 sKind = 'Windows2003', acCpusSup = range(1, 33), fPae = True, sNic0AttachType = 'bridged'), 992 993 # W7 994 TestVm('tst-win7', kfGrpStdSmoke, sHd = '4.2/win7-32/t-win7.vdi', 995 sKind = 'Windows7', acCpusSup = range(1, 33), fIoApic = True), 996 997 # W8 998 TestVm('tst-win8-64', kfGrpStdSmoke, sHd = '4.2/win8-64/t-win8-64.vdi', 999 sKind = 'Windows8_64', acCpusSup = range(1, 33), fIoApic = True), 1000 #TestVm('tst-win8-64-ich9', kfGrpStdSmoke, sHd = '4.2/win8-64/t-win8-64.vdi', 1001 # sKind = 'Windows8_64', acCpusSup = range(1, 33), fIoApic = True, sChipsetType = 'ich9'), 1002 1003 # W10 1004 TestVm('tst-win10-efi', kfGrpStdSmoke, sHd = '4.2/efi/win10-efi-x86.vdi', 1005 sKind = 'Windows10', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi'), 1006 TestVm('tst-win10-64-efi', kfGrpStdSmoke, sHd = '4.2/efi/win10-efi-amd64.vdi', 1007 sKind = 'Windows10_64', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi'), 1008 #TestVm('tst-win10-64-efi-ich9', kfGrpStdSmoke, sHd = '4.2/efi/win10-efi-amd64.vdi', 1009 # sKind = 'Windows10_64', acCpusSup = range(1, 33), fIoApic = True, sFirmwareType = 'efi', sChipsetType = 'ich9'), 1010 1011 # DOS and Old Windows. 1012 # todo ... 1013 ); 1014 1015 1011 1016 def __init__(self, sResourcePath): 1012 1017 self.sResourcePath = sResourcePath; … … 1017 1022 """ 1018 1023 oSet = TestVmSet(oTestVmManager = self); 1019 for oVm in g_aTestVMs:1024 for oVm in self.kaTestVMs: 1020 1025 if oVm.fGrouping & fGrouping: 1021 1026 if sTxsTransport is None or oVm.sNic0AttachType is None or sTxsTransport == oVm.sNic0AttachType: … … 1033 1038 testrsrc tree for usable VMs, but for the moment it's all hard coded. :-) 1034 1039 """ 1035 return self.selectSet( g_kfGrpStandard, sTxsTransport)1040 return self.selectSet(self.kfGrpStandard, sTxsTransport) 1036 1041 1037 1042 def getSmokeVmSet(self): 1038 """ 1039 Gets a representative set of VMs for smoke testing. 1040 """ 1041 return self.selectSet(g_kfGrpSmoke); 1043 """Gets a representative set of VMs for smoke testing. """ 1044 return self.selectSet(self.kfGrpSmoke); 1042 1045 1043 1046 def shutUpPyLint(self):
Note:
See TracChangeset
for help on using the changeset viewer.