Changeset 103197 in vbox for trunk/src/VBox/ValidationKit/testmanager
- Timestamp:
- Feb 5, 2024 10:00:40 AM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 161464
- Location:
- trunk/src/VBox/ValidationKit/testmanager
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testbox.pgsql
r98103 r103197 528 528 a_fChipsetIoMmu boolean, 529 529 a_fRawMode boolean, 530 a_fNativeApi boolean, 530 531 a_cMbMemory bigint, 531 532 a_cMbScratch bigint, … … 573 574 v_Row.fChipsetIoMmu := a_fChipsetIoMmu; 574 575 v_Row.fRawMode := a_fRawMode; 576 v_Row.fNativeApi := a_fNativeApi; 575 577 v_Row.cMbMemory := a_cMbMemory; 576 578 v_Row.cMbScratch := a_cMbScratch; -
trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
r98103 r103197 228 228 ksParam_fChipsetIoMmu = 'TestBox_fChipsetIoMmu'; 229 229 ksParam_fRawMode = 'TestBox_fRawMode'; 230 ksParam_fNativeApi = 'TestBox_fNativeApi'; 230 231 ksParam_cMbMemory = 'TestBox_cMbMemory'; 231 232 ksParam_cMbScratch = 'TestBox_cMbScratch'; … … 239 240 kasMachineSettableOnly = [ 'sOs', 'sOsVersion', 'sCpuVendor', 'sCpuArch', 'sCpuName', 'lCpuRevision', 'cCpus', 240 241 'fCpuHwVirt', 'fCpuNestedPaging', 'fCpu64BitGuest', 'fChipsetIoMmu', 'fRawMode', 241 'cMbMemory', 'cMbScratch', 'sReport', 'iTestBoxScriptRev', 'iPythonHexVersion', ]; 242 'fNativeApi', 'cMbMemory', 'cMbScratch', 'sReport', 'iTestBoxScriptRev', 243 'iPythonHexVersion', ]; 242 244 kasAllowNullAttributes = ['idTestBox', 'tsEffective', 'tsExpire', 'uidAuthor', 'idGenTestBox', 'sDescription', 243 245 'ipLom', 'sComment', ] + kasMachineSettableOnly + kasInternalAttributes; … … 249 251 kcchMax_sReport = 65535; 250 252 251 kcDbColumns = 4 0; # including the 7 string joins columns253 kcDbColumns = 41; # including the 7 string joins columns 252 254 253 255 … … 285 287 self.fChipsetIoMmu = False; 286 288 self.fRawMode = None; 289 self.fNativeApi = None; 287 290 self.cMbMemory = 1; 288 291 self.cMbScratch = 0; … … 336 339 self.fChipsetIoMmu = aoRow[24]; 337 340 self.fRawMode = aoRow[25]; 338 self.cMbMemory = aoRow[26]; 339 self.cMbScratch = aoRow[27]; 340 self.idStrReport = aoRow[28]; 341 self.iTestBoxScriptRev = aoRow[29]; 342 self.iPythonHexVersion = aoRow[30]; 343 self.enmPendingCmd = aoRow[31]; 341 self.fNativeApi = aoRow[26]; 342 self.cMbMemory = aoRow[27]; 343 self.cMbScratch = aoRow[28]; 344 self.idStrReport = aoRow[29]; 345 self.iTestBoxScriptRev = aoRow[30]; 346 self.iPythonHexVersion = aoRow[31]; 347 self.enmPendingCmd = aoRow[32]; 344 348 345 349 # String table values. 346 if len(aoRow) > 3 2:347 self.sDescription = aoRow[3 2];348 self.sComment = aoRow[3 3];349 self.sOs = aoRow[3 4];350 self.sOsVersion = aoRow[3 5];351 self.sCpuVendor = aoRow[3 6];352 self.sCpuArch = aoRow[3 7];353 self.sCpuName = aoRow[3 8];354 self.sReport = aoRow[ 39];350 if len(aoRow) > 33: 351 self.sDescription = aoRow[33]; 352 self.sComment = aoRow[34]; 353 self.sOs = aoRow[35]; 354 self.sOsVersion = aoRow[36]; 355 self.sCpuVendor = aoRow[37]; 356 self.sCpuArch = aoRow[38]; 357 self.sCpuName = aoRow[39]; 358 self.sReport = aoRow[40]; 355 359 356 360 return self; … … 747 751 kiSortColumn_cMbScratch = 9; 748 752 kiSortColumn_fCpuNestedPaging = 10; 749 kiSortColumn_iTestBoxScriptRev = 11; 750 kiSortColumn_iPythonHexVersion = 12; 751 kiSortColumn_enmPendingCmd = 13; 752 kiSortColumn_fEnabled = 14; 753 kiSortColumn_enmState = 15; 754 kiSortColumn_tsUpdated = 16; 755 kcMaxSortColumns = 17; 753 kiSortColumn_fNativeApi = 11; 754 kiSortColumn_iTestBoxScriptRev = 12; 755 kiSortColumn_iPythonHexVersion = 13; 756 kiSortColumn_enmPendingCmd = 14; 757 kiSortColumn_fEnabled = 15; 758 kiSortColumn_enmState = 16; 759 kiSortColumn_tsUpdated = 17; 760 kcMaxSortColumns = 18; 756 761 kdSortColumnMap = { 757 762 0: 'TestBoxesWithStrings.sName', … … 778 783 kiSortColumn_fCpuNestedPaging: 'TestBoxesWithStrings.fCpuNestedPaging', 779 784 -kiSortColumn_fCpuNestedPaging: 'TestBoxesWithStrings.fCpuNestedPaging DESC', 785 kiSortColumn_fNativeApi: 'TestBoxesWithStrings.fNativeApi', 786 -kiSortColumn_fNativeApi: 'TestBoxesWithStrings.fNativeApi DESC', 780 787 kiSortColumn_iTestBoxScriptRev: 'TestBoxesWithStrings.iTestBoxScriptRev', 781 788 -kiSortColumn_iTestBoxScriptRev: 'TestBoxesWithStrings.iTestBoxScriptRev DESC', … … 1115 1122 def updateOnSignOn(self, idTestBox, idGenTestBox, sTestBoxAddr, sOs, sOsVersion, # pylint: disable=too-many-arguments,too-many-locals 1116 1123 sCpuVendor, sCpuArch, sCpuName, lCpuRevision, cCpus, fCpuHwVirt, fCpuNestedPaging, fCpu64BitGuest, 1117 fChipsetIoMmu, fRawMode, cMbMemory, cMbScratch, sReport, iTestBoxScriptRev, iPythonHexVersion):1124 fChipsetIoMmu, fRawMode, fNativeApi, cMbMemory, cMbScratch, sReport, iTestBoxScriptRev, iPythonHexVersion): 1118 1125 """ 1119 1126 Update the testbox attributes automatically on behalf of the testbox script. … … 1136 1143 fChipsetIoMmu, 1137 1144 fRawMode, 1145 fNativeApi, 1138 1146 cMbMemory, 1139 1147 cMbScratch, -
trunk/src/VBox/ValidationKit/testmanager/core/testboxcontroller.py
r98103 r103197 372 372 fChipsetIoMmu = self._getBoolParam( constants.tbreq.SIGNON_PARAM_HAS_IOMMU); 373 373 fRawMode = self._getBoolParam( constants.tbreq.SIGNON_PARAM_WITH_RAW_MODE, fDefValue = None); 374 fNativeApi = self._getBoolParam( constants.tbreq.SIGNON_PARAM_HAS_NATIVE_API, fDefValue = None); 374 375 cMbMemory = self._getLongParam( constants.tbreq.SIGNON_PARAM_MEM_SIZE, 8, 1073741823); # 8MB..1PB 375 376 cMbScratch = self._getLongParam( constants.tbreq.SIGNON_PARAM_SCRATCH_SIZE, 0, 1073741823); # 0..1PB … … 423 424 or fChipsetIoMmu != oTestBox.fChipsetIoMmu \ 424 425 or fRawMode != oTestBox.fRawMode \ 426 or fNativeApi != oTestBox.fNativeApi \ 425 427 or cMbMemory != oTestBox.cMbMemory \ 426 428 or abs(cPctScratchDiff) >= min(4 + cMbScratch / 10240, 12) \ … … 443 445 fChipsetIoMmu = fChipsetIoMmu, 444 446 fRawMode = fRawMode, 447 fNativeApi = fNativeApi, 445 448 cMbMemory = cMbMemory, 446 449 cMbScratch = cMbScratch, -
trunk/src/VBox/ValidationKit/testmanager/core/testcase.py
r98103 r103197 656 656 'fChipsetIoMmu': False, 657 657 'fRawMode': False, 658 'fNativeApi': False, 658 659 'cMbMemory': 985034, 659 660 'cMbScratch': 1234089, … … 673 674 'fChipsetIoMmu': True, 674 675 'fRawMode': True, 676 'fNativeApi': True, 675 677 'cMbMemory': 9999999999, 676 678 'cMbScratch': 9999999999999, … … 701 703 'fChipsetIoMmu': oTestBoxData.fChipsetIoMmu, 702 704 'fRawMode': oTestBoxData.fRawMode, 705 'fNativeApi': oTestBoxData.fNativeApi, 703 706 'cMbMemory': oTestBoxData.cMbMemory, 704 707 'cMbScratch': oTestBoxData.cMbScratch, -
trunk/src/VBox/ValidationKit/testmanager/core/testresults.py
r99934 r103197 764 764 kiTbMisc_IoMmu = 8; 765 765 kiTbMisc_NoIoMmu = 9; 766 kiTbMisc_NativeApi = 10; 767 kiTbMisc_NoNativeApi = 11; 766 768 767 769 def __init__(self): … … 873 875 FilterCriterionValueAndDescription(self.kiTbMisc_HwVirt, "req VT-x / AMD-V"), 874 876 FilterCriterionValueAndDescription(self.kiTbMisc_NoHwVirt, "w/o VT-x / AMD-V"), 877 FilterCriterionValueAndDescription(self.kiTbMisc_NativeApi, "req NEM"), 878 FilterCriterionValueAndDescription(self.kiTbMisc_NoNativeApi, "w/o NEM"), 875 879 #FilterCriterionValueAndDescription(self.kiTbMisc_IoMmu, "req I/O MMU"), - not implemented yet. 876 880 #FilterCriterionValueAndDescription(self.kiTbMisc_NoIoMmu, "w/o I/O MMU"), - not implemented yet. … … 895 899 kiTbMisc_RawMode: 'TestBoxesWithStrings.fRawMode IS TRUE', 896 900 kiTbMisc_NoRawMode: 'TestBoxesWithStrings.fRawMode IS NOT TRUE', 901 kiTbMisc_NativeApi: 'TestBoxesWithStrings.fNativeApi IS TRUE', 902 kiTbMisc_NoNativeApi: 'TestBoxesWithStrings.fNativeApi IS NOT TRUE', 897 903 kiTbMisc_64BitGuest: 'TestBoxesWithStrings.fCpu64BitGuest IS TRUE', 898 904 kiTbMisc_No64BitGuest: 'TestBoxesWithStrings.fCpu64BitGuest IS FALSE', -
trunk/src/VBox/ValidationKit/testmanager/db/TestManagerDatabaseComments.pgsql
r98103 r103197 621 621 'Set if the test box does raw-mode tests.'; 622 622 623 COMMENT ON COLUMN TestBoxes.fNativeApi IS 624 'Set if the test box does native API (NEM) tests.'; 625 623 626 COMMENT ON COLUMN TestBoxes.cMbMemory IS 624 627 'The (approximate) memory size in megabytes (rounded down to nearest 4 MB).'; … … 933 936 COMMENT ON COLUMN VcsRevisions.sMessage IS 934 937 'The commit message.'; 938 939 COMMENT ON TABLE VcsBugReferences IS 940 'This is for relating commits to a bug and vice versa. 941 942 This feature isn''t so much for the test manager as a cheap way of extending 943 bug trackers without VCS integration. We just need to parse the commit 944 messages when inserting them into the VcsRevisions table. 945 946 Same input, updating and history considerations as VcsRevisions.'; 947 948 COMMENT ON COLUMN VcsBugReferences.sRepository IS 949 'The version control tree name.'; 950 951 COMMENT ON COLUMN VcsBugReferences.iRevision IS 952 'The version control tree revision number.'; 953 954 COMMENT ON COLUMN VcsBugReferences.sBugTracker IS 955 'The bug tracker identifier - see g_kdBugTrackers in config.py.'; 956 957 COMMENT ON COLUMN VcsBugReferences.lBugNo IS 958 'The bug number in the bug tracker.'; 935 959 936 960 COMMENT ON TABLE TestResultStrTab IS -
trunk/src/VBox/ValidationKit/testmanager/db/TestManagerDatabaseInit.pgsql
r98103 r103197 883 883 --- Set if the test box does raw-mode tests. 884 884 fRawMode boolean DEFAULT NULL, 885 -- Set if the test box does native API (NEM) tests. 886 fNativeApi boolean DEFAULT NULL, 885 887 --- The (approximate) memory size in megabytes (rounded down to nearest 4 MB). 886 888 cMbMemory bigint DEFAULT NULL CHECK (cMbMemory IS NULL OR cMbMemory > 0), -
trunk/src/VBox/ValidationKit/testmanager/debug/add_testbox.pgsql
r98103 r103197 54 54 fCpuNestedPaging, 55 55 fCpu64BitGuest, 56 fNativeApi, 56 57 fChipsetIoMmu, 57 58 cMbMemory, … … 71 72 TRUE, 72 73 TRUE, 74 FALSE, 73 75 TRUE, 74 76 1024, -
trunk/src/VBox/ValidationKit/testmanager/webui/wuiadmintestbox.py
r103106 r103197 112 112 asFeatures.append(u'HW\u2011Virt(VT\u2011x)'); 113 113 if oTestBox.fCpuNestedPaging is True: asFeatures.append(u'Nested\u2011Paging'); 114 if oTestBox.fNativeApi is True: asFeatures.append(u'Native\u2011API'); 114 115 if oTestBox.fCpu64BitGuest is True: asFeatures.append(u'64\u2011bit\u2011Guest'); 115 116 if oTestBox.fChipsetIoMmu is True: asFeatures.append(u'I/O\u2011MMU'); … … 234 235 oForm.addCheckBoxRO( TestBoxData.ksParam_fCpuHwVirt, oData.fCpuHwVirt, 'VT-x or AMD-V supported'); 235 236 oForm.addCheckBoxRO( TestBoxData.ksParam_fCpuNestedPaging, oData.fCpuNestedPaging, 'Nested paging supported'); 237 oForm.addCheckBoxRO( TestBoxData.ksParam_fNativeApi, oData.fNativeApi, 'Native API supported'); 236 238 oForm.addCheckBoxRO( TestBoxData.ksParam_fCpu64BitGuest, oData.fCpu64BitGuest, '64-bit guest supported'); 237 239 oForm.addCheckBoxRO( TestBoxData.ksParam_fChipsetIoMmu, oData.fChipsetIoMmu, 'I/O MMU supported'); … … 439 441 if oEntry.fCpuHwVirt is True: asFeatures.append(u'HW\u2011Virt'); 440 442 if oEntry.fCpuNestedPaging is True: asFeatures.append(u'Nested\u2011Paging'); 443 if oEntry.fNativeApi is True: asFeatures.append(u'Native\u2011API'); 441 444 if oEntry.fCpu64BitGuest is True: asFeatures.append(u'64\u2011bit\u2011Guest'); 442 445 if oEntry.fChipsetIoMmu is True: asFeatures.append(u'I/O\u2011MMU'); -
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpform.py
r102984 r103197 551 551 sHtml += u' %s_extendListEx("1-np", "1", "%s", "--cpu-counts 1 --virt-modes hwvirt-np", ' \ 552 552 u' "fCpuNestedPaging is True", "");\n' % (sName, sSecTimeoutDef); 553 sHtml += u' %s_extendListEx("1-nem", "1", "%s", "--cpu-counts 1 --virt-modes native-api", ' \ 554 u' "fNativeApi is True", "");\n' % (sName, sSecTimeoutDef); 553 555 sHtml += u'}\n'; 554 556 sHtml += u'function vbox_%s_add_uni_amd64()\n' % (sName,); … … 558 560 sHtml += u' %s_extendListEx("1-np", "%s", "--cpu-counts 1 --virt-modes hwvirt-np", ' \ 559 561 u' "fCpuNestedPaging is True", "");\n' % (sName, sSecTimeoutDef); 562 sHtml += u' %s_extendListEx("1-nem", "%s", "--cpu-counts 1 --virt-modes native-api", ' \ 563 u' "fNativeApi is True", "");\n' % (sName, sSecTimeoutDef); 560 564 sHtml += u'}\n'; 561 565 sHtml += u'function vbox_%s_add_smp()\n' % (sName,); … … 565 569 sHtml += u' %s_extendListEx("2-np", "1", "%s", "--cpu-counts 2 --virt-modes hwvirt-np",' \ 566 570 u' "fCpuNestedPaging is True and cCpus >= 2", "");\n' % (sName, sSecTimeoutDef); 571 sHtml += u' %s_extendListEx("2-nem", "1", "%s", "--cpu-counts 2 --virt-modes native-api",' \ 572 u' "fNativeApi is True and cCpus >= 2", "");\n' % (sName, sSecTimeoutDef); 567 573 sHtml += u' %s_extendListEx("3-hw", "1", "%s", "--cpu-counts 3 --virt-modes hwvirt",' \ 568 574 u' "fCpuHwVirt is True and cCpus >= 3", "");\n' % (sName, sSecTimeoutDef); 575 sHtml += u' %s_extendListEx("3-nem", "1", "%s", "--cpu-counts 3 --virt-modes native-api",' \ 576 u' "fNativeApi is True and cCpus >= 3", "");\n' % (sName, sSecTimeoutDef); 569 577 sHtml += u' %s_extendListEx("4-np", "1", "%s", "--cpu-counts 4 --virt-modes hwvirt-np ",' \ 570 578 u' "fCpuNestedPaging is True and cCpus >= 4", "");\n' % (sName, sSecTimeoutDef); 579 sHtml += u' %s_extendListEx("4-nem", "1", "%s", "--cpu-counts 4 --virt-modes native-api",' \ 580 u' "fNativeApi is True and cCpus >= 4", "");\n' % (sName, sSecTimeoutDef); 571 581 #sHtml += u' %s_extendListEx("6-hw", "1", "%s", "--cpu-counts 6 --virt-modes hwvirt",' \ 572 582 # u' "fCpuHwVirt is True and cCpus >= 6", "");\n' % (sName, sSecTimeoutDef); -
trunk/src/VBox/ValidationKit/testmanager/webui/wuireport.py
r98552 r103197 759 759 elif oTestBox.fCpuHwVirt: sHtml += u', hw'; 760 760 else: sHtml += u', raw'; 761 if oTestBox.fNativeApi: sHtml += u', nem'; 761 762 if oTestBox.fCpu64BitGuest: sHtml += u', 64'; 762 763 sHtml += u'</td>'; -
trunk/src/VBox/ValidationKit/testmanager/webui/wuitestresult.py
r98103 r103197 692 692 if oTestBox.fCpuHwVirt is True: asFeatures.append(u'HW\u2011Virt'); 693 693 if oTestBox.fCpuNestedPaging is True: asFeatures.append(u'Nested\u2011Paging'); 694 if oTestBox.fNativeApi is True: asFeatures.append(u'Native\u2011API'); 694 695 if oTestBox.fCpu64BitGuest is True: asFeatures.append(u'64\u2011bit\u2011Guest'); 695 696 if oTestBox.fChipsetIoMmu is True: asFeatures.append(u'I/O\u2011MMU'); … … 904 905 asFeatures.append(u'HW\u2011Virt(VT\u2011x)'); 905 906 if oEntry.fCpuNestedPaging is True: asFeatures.append(u'Nested\u2011Paging'); 907 if oEntry.fNativeApi is True: asFeatures.append(u'Native\u2011API'); 906 908 if oEntry.fCpu64BitGuest is True: asFeatures.append(u'64\u2011bit\u2011Guest'); 907 909 #if oEntry.fChipsetIoMmu is True: asFeatures.append(u'I/O\u2011MMU');
Note:
See TracChangeset
for help on using the changeset viewer.