Changeset 65094 in vbox
- Timestamp:
- Jan 4, 2017 2:49:19 AM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit/testmanager/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
r65084 r65094 512 512 sMarch = TestBoxData.queryCpuMicroarchEx(lCpuRevision, sCpuVendor); 513 513 if sMarch is not None: 514 return '%s m%02X s%02X' \514 return '%s %02x:%x' \ 515 515 % (sMarch, TestBoxData.getCpuModelEx(lCpuRevision), TestBoxData.getCpuSteppingEx(lCpuRevision)); 516 516 return 'fam%02X m%02X s%02X' \ -
trunk/src/VBox/ValidationKit/testmanager/core/testresults.py
r65093 r65094 654 654 kiCpuArches = 6; 655 655 kiCpuVendors = 7; 656 kiCpuRevisions = 8; 657 kiCpuCounts = 9; 658 kiMemory = 10; 659 kiMisc = 11; 660 kiOses = 12; 661 kiPythonVersions = 13; 662 kiFailReasons = 14; 656 kiCpuCounts = 8; 657 kiMemory = 9; 658 kiMisc = 10; 659 kiOses = 11; 660 kiPythonVersions = 12; 661 kiFailReasons = 13; 663 662 664 663 kiMisc_NestedPaging = 0; … … 707 706 assert self.aCriteria[self.kiCpuArches] is oCrit; 708 707 709 oCrit = FilterCriterion('CPU vendors', sVarNm = 'cv', sTable = 'TestBoxesWithStrings', sColumn = 'idStrCpuVendor'); 708 oCrit = FilterCriterion('CPU vendor / rev', sVarNm = 'cv', sTable = 'TestBoxesWithStrings', sColumn = 'idStrCpuVendor', 709 oSub = FilterCriterion('CPU revisions', sVarNm = 'cr', 710 sTable = 'TestBoxesWithStrings', sColumn = 'lCpuRevision')); 710 711 self.aCriteria.append(oCrit); 711 712 assert self.aCriteria[self.kiCpuVendors] is oCrit; 712 713 oCrit = FilterCriterion('CPU revisions', sVarNm = 'cr', sTable = 'TestBoxesWithStrings', sColumn = 'lCpuRevision');714 self.aCriteria.append(oCrit);715 assert self.aCriteria[self.kiCpuRevisions] is oCrit;716 713 717 714 oCrit = FilterCriterion('CPU counts', sVarNm = 'cc', sTable = 'TestBoxesWithStrings', sColumn = 'cCpus'); … … 1680 1677 workerDoFetch(None, fIdIsName = True); 1681 1678 1682 # Testbox CPU vendors.1679 # Testbox CPU revisions. 1683 1680 oCrit = oFilter.aCriteria[TestResultFilter.kiCpuVendors]; 1684 1681 self._oDb.execute('SELECT TestBoxesWithStrings.idStrCpuVendor,\n' 1682 ' TestBoxesWithStrings.sCpuVendor,\n' 1683 ' TestBoxesWithStrings.lCpuRevision,\n' 1685 1684 ' TestBoxesWithStrings.sCpuVendor,\n' 1686 1685 ' SUM(TestBoxGenIDs.cTimes)\n' … … 1696 1695 ' LEFT OUTER JOIN TestBoxesWithStrings\n' 1697 1696 ' ON TestBoxesWithStrings.idGenTestBox = TestBoxGenIDs.idGenTestBox\n' 1698 'GROUP BY TestBoxesWithStrings.idStrCpuVendor, TestBoxesWithStrings.sCpuVendor\n' 1699 'ORDER BY TestBoxesWithStrings.sCpuVendor\n' ); 1700 workerDoFetch(None, fIdIsName = True); 1701 1702 # Testbox CPU revisions. 1703 oCrit = oFilter.aCriteria[TestResultFilter.kiCpuRevisions]; 1704 self._oDb.execute('SELECT TestBoxesWithStrings.lCpuRevision,\n' 1705 ' TestBoxesWithStrings.sCpuVendor,\n' 1706 ' SUM(TestBoxGenIDs.cTimes)\n' 1707 'FROM ( SELECT TestSets.idGenTestBox,\n' 1708 ' COUNT(TestSets.idTestSet) AS cTimes\n' 1709 ' FROM TestSets\n' + oFilter.getTableJoins(iOmit = TestResultFilter.kiCpuRevisions) + 1710 ''.join(' , %s\n' % (sTable,) for sTable in oReportModel.getExtraSubjectTables()) + 1711 ' WHERE ' + self._getTimePeriodQueryPart(tsNow, sPeriod, ' ') + 1712 oFilter.getWhereConditions(iOmit = TestResultFilter.kiCpuRevisions) + 1713 oReportModel.getExtraSubjectWhereExpr() + 1714 ' GROUP BY TestSets.idGenTestBox' 1715 ' ) AS TestBoxGenIDs\n' 1716 ' LEFT OUTER JOIN TestBoxesWithStrings\n' 1717 ' ON TestBoxesWithStrings.idGenTestBox = TestBoxGenIDs.idGenTestBox\n' 1718 'GROUP BY TestBoxesWithStrings.lCpuRevision, TestBoxesWithStrings.sCpuVendor\n' 1719 'ORDER BY TestBoxesWithStrings.sCpuVendor DESC, TestBoxesWithStrings.lCpuRevision DESC\n' ); 1720 workerDoFetch(None, fIdIsName = True); 1721 for oCur in oCrit.aoPossible: 1697 'GROUP BY TestBoxesWithStrings.idStrCpuVendor,\n' 1698 ' TestBoxesWithStrings.sCpuVendor,\n' 1699 ' TestBoxesWithStrings.lCpuRevision,\n' 1700 ' TestBoxesWithStrings.sCpuVendor\n' 1701 'ORDER BY TestBoxesWithStrings.sCpuVendor DESC,\n' 1702 ' TestBoxesWithStrings.sCpuVendor = \'GenuineIntel\'\n' 1703 ' AND (TestBoxesWithStrings.lCpuRevision >> 24) = 15,\n' # P4 at the bottom is a start... 1704 ' TestBoxesWithStrings.lCpuRevision DESC\n' 1705 ); 1706 workerDoFetchNested(); 1707 for oCur in oCrit.oSub.aoPossible: 1722 1708 oCur.sDesc = TestBoxData.getPrettyCpuVersionEx(oCur.oValue, oCur.sDesc).replace('_', ' '); 1723 1709
Note:
See TracChangeset
for help on using the changeset viewer.