@@ -97,7 +97,6 coverage: CONFIG += debug | |||
|
97 | 97 | ##################### UNIT TESTS ############################################################## |
|
98 | 98 | |
|
99 | 99 | CONFIG(debug, debug|release) { |
|
100 | CONFIG+=test_private | |
|
101 | 100 | DEFINES+=BUILD_PRIVATE_UNIT_TESTS |
|
102 | 101 | } |
|
103 | 102 |
@@ -22,13 +22,14 SUBDIRS += \ | |||
|
22 | 22 | qhorizontalpercentbarseries \ |
|
23 | 23 | qvalueaxis \ |
|
24 | 24 | qcategoryaxis \ |
|
25 | qbarcategoryaxis | |
|
25 | qbarcategoryaxis \ | |
|
26 | domain \ | |
|
27 | chartdataset | |
|
26 | 28 | |
|
27 | 29 | !linux-arm*: { |
|
28 | 30 | SUBDIRS += \ |
|
29 | 31 | qdatetimeaxis |
|
30 | 32 | } |
|
31 | 33 | |
|
32 | test_private:{ | |
|
33 | SUBDIRS += domain chartdataset | |
|
34 | } | |
|
34 | ||
|
35 |
@@ -17,6 +17,27 | |||
|
17 | 17 | ** $QT_END_LICENSE$ |
|
18 | 18 | ** |
|
19 | 19 | ****************************************************************************/ |
|
20 | #ifndef BUILD_PRIVATE_UNIT_TESTS | |
|
21 | #include <QtTest/QtTest> | |
|
22 | ||
|
23 | class tst_ChartDataSet: public QObject { | |
|
24 | ||
|
25 | Q_OBJECT | |
|
26 | ||
|
27 | private Q_SLOTS: | |
|
28 | void skip(); | |
|
29 | ||
|
30 | }; | |
|
31 | ||
|
32 | void tst_ChartDataSet::skip() | |
|
33 | { | |
|
34 | QSKIP("This test requires the debug version of library", SkipAll); | |
|
35 | } | |
|
36 | ||
|
37 | QTEST_MAIN(tst_ChartDataSet) | |
|
38 | #include "tst_chartdataset.moc" | |
|
39 | ||
|
40 | #else | |
|
20 | 41 | |
|
21 | 42 | #include <QtTest/QtTest> |
|
22 | 43 | #include <qabstractaxis.h> |
@@ -620,4 +641,4 void tst_ChartDataSet::scrollDomain() | |||
|
620 | 641 | |
|
621 | 642 | QTEST_MAIN(tst_ChartDataSet) |
|
622 | 643 | #include "tst_chartdataset.moc" |
|
623 | ||
|
644 | #endif |
@@ -1,4 +1,5 | |||
|
1 | 1 | !include( ../auto.pri ) { |
|
2 | 2 | error( "Couldn't find the auto.pri file!" ) |
|
3 | 3 | } |
|
4 | ||
|
4 | 5 | SOURCES += tst_domain.cpp |
@@ -17,6 +17,28 | |||
|
17 | 17 | ** $QT_END_LICENSE$ |
|
18 | 18 | ** |
|
19 | 19 | ****************************************************************************/ |
|
20 | #ifndef BUILD_PRIVATE_UNIT_TESTS | |
|
21 | ||
|
22 | #include <QtTest/QtTest> | |
|
23 | ||
|
24 | class tst_Domain: public QObject { | |
|
25 | ||
|
26 | Q_OBJECT | |
|
27 | ||
|
28 | private Q_SLOTS: | |
|
29 | void skip(); | |
|
30 | ||
|
31 | }; | |
|
32 | ||
|
33 | void tst_Domain::skip() | |
|
34 | { | |
|
35 | QSKIP("This test requires the debug version of library", SkipAll); | |
|
36 | } | |
|
37 | ||
|
38 | QTEST_MAIN(tst_Domain) | |
|
39 | #include "tst_domain.moc" | |
|
40 | ||
|
41 | #else | |
|
20 | 42 | |
|
21 | 43 | #include <QtTest/QtTest> |
|
22 | 44 | #include <private/domain_p.h> |
@@ -678,4 +700,4 void tst_Domain::move() | |||
|
678 | 700 | |
|
679 | 701 | QTEST_MAIN(tst_Domain) |
|
680 | 702 | #include "tst_domain.moc" |
|
681 | ||
|
703 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now