Details
-
Sub-task
-
Resolution: Done
-
P1: Critical
-
None
Description
Currently, the metrics system reports too many test as being valid for some platforms. One of the reasons for this is that there are some test programs and a lot of test functions that are effectively empty for certain platforms because they have most/all of their content ifdef'd out.
The existing autotests must be reviewed and corrected to ensure that:
1. Test programs that are not useful on a particular platform are neither built nor executed on that platform.
2. Individual test functions that need to be excluded on a particular platform are excluded by ifdef'ing out the entire function instead of ifdef'ing just the function body and leaving an empty function to inflate the pass-rate.
Additionally, the correct way to exclude test programs and test functions should be documented in the qtestlib manual.
Attachments
For Gerrit Dashboard: QTBUG-21851 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
5824,2 | Avoid using QSKIP in lieu of compile-time checks | master | qt/qtbase | Status: MERGED | +2 | 0 |
6743,2 | Remove QTEST_NOOP_MAIN from qtestlib API. | master | qt/qtbase | Status: MERGED | +2 | 0 |
6805,1 | Remove DEPENDS_ON from qtestlib API. | master | qt/qtbase | Status: MERGED | +2 | 0 |
6884,3 | Remove QTest::SkipMode from qtestlib API. | master | qt/qtbase | Status: MERGED | +2 | 0 |
6885,3 | Remove SkipMode parameter from QSKIP calls. | master | qt/qtbase | Status: MERGED | +2 | 0 |
6887,2 | Remove SkipMode from qtestlib API. | master | qt/qtdeclarative | Status: MERGED | +2 | 0 |
6890,2 | Remove SkipMode parameter from QSKIP. | master | qt/qtxmlpatterns | Status: MERGED | +2 | 0 |
6893,1 | Remove SkipMode parameter from QSKIP. | master | qt/qttools | Status: MERGED | +2 | 0 |
6894,1 | Remove SkipMode parameter from QSKIP. | qml2 | {graveyard}/quick3d | Status: MERGED | +2 | 0 |
6895,2 | Remove SkipMode parameter from QSKIP. | master | qt/qtqa | Status: MERGED | +2 | 0 |
6896,1 | Remove SkipMode parameter from QSKIP. | master | qt/qtpim | Status: ABANDONED | -1 | 0 |
6897,2 | Remove SkipMode parameter from QSKIP. | master | {graveyard}/qtmultimediakit | Status: ABANDONED | +2 | 0 |
6898,1 | Remove SkipMode parameter from QSKIP. | master | qt/qtlocation | Status: MERGED | -1 | 0 |
6899,1 | Remove SkipMode parameter from QSKIP. | master | qt/qtfeedback | Status: MERGED | +2 | 0 |
6900,1 | Remove SkipMode parameter from QSKIP. | master | qt/qtconnectivity | Status: MERGED | +2 | 0 |
8441,1 | Remove SkipMode parameter from QSKIP. | master | qt/qtmultimedia | Status: MERGED | +2 | 0 |