aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-21 11:23:40 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-21 11:23:40 +0200
commita17a1899b9885b1edd5f12043b5040bdde67d9c4 (patch)
treeffa49fa7c3274bc8af3e75886fa324ef027e7d03 /tests
parentb1814606933fea18000dc1828be46ca8de442a97 (diff)
downloadqxmpp-a17a1899b9885b1edd5f12043b5040bdde67d9c4.tar.gz
bump version, make internal auto-tests optional
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.cpp6
-rw-r--r--tests/tests.pro10
2 files changed, 6 insertions, 10 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index e08cfb8d..46e04aab 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -134,7 +134,7 @@ void TestUtils::testMime()
void TestUtils::testLibVersion()
{
- QCOMPARE(QXmppVersion(), QString("0.6.1"));
+ QCOMPARE(QXmppVersion(), QString("0.6.2"));
}
void TestUtils::testTimezoneOffset()
@@ -1199,7 +1199,7 @@ int main(int argc, char *argv[])
TestPackets testPackets;
errors += QTest::qExec(&testPackets);
-#ifndef Q_OS_WIN
+#ifdef QXMPP_AUTOTEST_INTERNAL
TestCodec testCodec;
errors += QTest::qExec(&testCodec);
#endif
@@ -1228,7 +1228,7 @@ int main(int argc, char *argv[])
tst_QXmppRtpPacket testRtp;
errors += QTest::qExec(&testRtp);
-#ifndef Q_OS_WIN
+#ifdef QXMPP_AUTOTEST_INTERNAL
tst_QXmppSasl testSasl;
errors += QTest::qExec(&testSasl);
diff --git a/tests/tests.pro b/tests/tests.pro
index 1362e9a4..9fabdf6f 100644
--- a/tests/tests.pro
+++ b/tests/tests.pro
@@ -6,7 +6,6 @@ TARGET = qxmpp-tests
RESOURCES += tests.qrc
SOURCES += \
- codec.cpp \
dataform.cpp \
jingle.cpp \
message.cpp \
@@ -14,10 +13,8 @@ SOURCES += \
register.cpp \
rsm.cpp \
rtp.cpp \
- sasl.cpp \
tests.cpp
HEADERS += \
- codec.h \
dataform.h \
jingle.h \
message.h \
@@ -25,12 +22,11 @@ HEADERS += \
register.h \
rsm.h \
rtp.h \
- sasl.h \
tests.h
-win32 {
- HEADERS -= codec.h sasl.h
- SOURCES -= codec.cpp sasl.cpp
+!isEmpty(QXMPP_AUTOTEST_INTERNAL) {
+ HEADERS += codec.h sasl.h
+ SOURCES += codec.cpp sasl.cpp
}
INCLUDEPATH += $$QXMPP_INCLUDEPATH