summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2016-01-13 21:18:26 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2016-01-14 11:47:01 +0000
commitaa5aba329d302d352bdb084318e53ca8654b6fb2 (patch)
treee9220b44d386d276b68fd82a32e5e72b46746398 /tests
parent46147b040d064d42759a196a7f4981a3e38a0502 (diff)
charts: Follow Qt's already-existent -developer-build option.
This means that rebuilding the entirety of Qt with -developer-build will get us all autotests. Furthermore, it fixes the situation on OS X where a debug_and_release build wouldn't actually fully link. In addition, we clean up the tests that were stubbed when internals aren't available to just not build/run them at all by checking private_tests. Change-Id: I5701559cd91df842f78346d7d6ad9295bee587d0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/auto.pri5
-rw-r--r--tests/auto/auto.pro5
-rw-r--r--tests/auto/chartdataset/tst_chartdataset.cpp22
-rw-r--r--tests/auto/domain/tst_domain.cpp24
4 files changed, 5 insertions, 51 deletions
diff --git a/tests/auto/auto.pri b/tests/auto/auto.pri
index 9d3ed05a..a04f5b23 100644
--- a/tests/auto/auto.pri
+++ b/tests/auto/auto.pri
@@ -8,8 +8,3 @@ QT += testlib widgets
INCLUDEPATH += ../inc
HEADERS += ../inc/tst_definitions.h
-
-#Define for unit tests
-CONFIG(debug, debug|release) {
- DEFINES += BUILD_PRIVATE_UNIT_TESTS
-}
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index b9da92b8..7ed84cbf 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -34,3 +34,8 @@ qtHaveModule(quick) {
SUBDIRS += qml \
qml-qtquicktest
}
+
+!contains(QT_CONFIG, private_tests): SUBDIRS -= \
+ domain \
+ chartdataset
+
diff --git a/tests/auto/chartdataset/tst_chartdataset.cpp b/tests/auto/chartdataset/tst_chartdataset.cpp
index ac6658fe..12652d69 100644
--- a/tests/auto/chartdataset/tst_chartdataset.cpp
+++ b/tests/auto/chartdataset/tst_chartdataset.cpp
@@ -26,27 +26,6 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-#ifndef BUILD_PRIVATE_UNIT_TESTS
-#include <QtTest/QtTest>
-
-class tst_ChartDataSet: public QObject {
-
- Q_OBJECT
-
-private Q_SLOTS:
- void skip();
-
-};
-
-void tst_ChartDataSet::skip()
-{
- QSKIP("This test requires the debug version of library");
-}
-
-QTEST_MAIN(tst_ChartDataSet)
-#include "tst_chartdataset.moc"
-
-#else
#include <QtTest/QtTest>
#include <QtCharts/QAbstractAxis>
@@ -404,4 +383,3 @@ void tst_ChartDataSet::detachAxis()
QTEST_MAIN(tst_ChartDataSet)
#include "tst_chartdataset.moc"
-#endif
diff --git a/tests/auto/domain/tst_domain.cpp b/tests/auto/domain/tst_domain.cpp
index 0b67c98e..44497940 100644
--- a/tests/auto/domain/tst_domain.cpp
+++ b/tests/auto/domain/tst_domain.cpp
@@ -26,29 +26,6 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-#ifndef BUILD_PRIVATE_UNIT_TESTS
-
-#include <QtTest/QtTest>
-
-class tst_Domain: public QObject {
-
- Q_OBJECT
-
-private Q_SLOTS:
- void skip();
-
-};
-
-void tst_Domain::skip()
-{
- QSKIP("This test requires the debug version of library");
-}
-
-QTEST_MAIN(tst_Domain)
-#include "tst_domain.moc"
-
-#else
-
#include <QtTest/QtTest>
#include <private/xydomain_p.h>
#include <private/qabstractaxis_p.h>
@@ -753,4 +730,3 @@ void tst_Domain::move()
QTEST_MAIN(tst_Domain)
#include "tst_domain.moc"
-#endif