From 7a708cc39a6059d3e25deb3026a9321917efdbae Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Wed, 28 May 2014 16:02:39 -0400 Subject: [PATCH] added dummy auto tests --- tests/auto/auto.pro | 6 ++++++ tests/auto/basic/basic.pro | 6 ++++++ tests/auto/basic/tst_basic.cpp | 29 ++++++++++++++++++++++++++ tests/auto/channels/channels.pro | 6 ++++++ tests/auto/channels/tst_channels.cpp | 17 +++++++++++++++ tests/auto/exchanges/exchanges.pro | 6 ++++++ tests/auto/exchanges/tst_exchanges.cpp | 17 +++++++++++++++ tests/auto/queues/queues.pro | 6 ++++++ tests/auto/queues/tst_queues.cpp | 22 +++++++++++++++++++ tests/tests.pro | 1 + 10 files changed, 116 insertions(+) create mode 100644 tests/auto/auto.pro create mode 100644 tests/auto/basic/basic.pro create mode 100644 tests/auto/basic/tst_basic.cpp create mode 100644 tests/auto/channels/channels.pro create mode 100644 tests/auto/channels/tst_channels.cpp create mode 100644 tests/auto/exchanges/exchanges.pro create mode 100644 tests/auto/exchanges/tst_exchanges.cpp create mode 100644 tests/auto/queues/queues.pro create mode 100644 tests/auto/queues/tst_queues.cpp diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro new file mode 100644 index 0000000..1f12adc --- /dev/null +++ b/tests/auto/auto.pro @@ -0,0 +1,6 @@ +TEMPLATE = subdirs +SUBDIRS = \ + basic \ + exchanges \ + queues \ + channels diff --git a/tests/auto/basic/basic.pro b/tests/auto/basic/basic.pro new file mode 100644 index 0000000..1392eec --- /dev/null +++ b/tests/auto/basic/basic.pro @@ -0,0 +1,6 @@ +DEPTH = ../../.. +include($${DEPTH}/qamqp.pri) +include($${DEPTH}/tests/tests.pri) + +TARGET = tst_basic +SOURCES = tst_basic.cpp diff --git a/tests/auto/basic/tst_basic.cpp b/tests/auto/basic/tst_basic.cpp new file mode 100644 index 0000000..84d5a51 --- /dev/null +++ b/tests/auto/basic/tst_basic.cpp @@ -0,0 +1,29 @@ +#include + +class tst_Basic : public QObject +{ + Q_OBJECT +private Q_SLOTS: + void connect(); + void connectDisconnect(); + void reconnect(); + +}; + +void tst_Basic::connect() +{ + QVERIFY(true); +} + +void tst_Basic::connectDisconnect() +{ + QVERIFY(true); +} + +void tst_Basic::reconnect() +{ + QVERIFY(true); +} + +QTEST_MAIN(tst_Basic) +#include "tst_basic.moc" diff --git a/tests/auto/channels/channels.pro b/tests/auto/channels/channels.pro new file mode 100644 index 0000000..986fa32 --- /dev/null +++ b/tests/auto/channels/channels.pro @@ -0,0 +1,6 @@ +DEPTH = ../../.. +include($${DEPTH}/qamqp.pri) +include($${DEPTH}/tests/tests.pri) + +TARGET = tst_channels +SOURCES = tst_channels.cpp diff --git a/tests/auto/channels/tst_channels.cpp b/tests/auto/channels/tst_channels.cpp new file mode 100644 index 0000000..a864ff0 --- /dev/null +++ b/tests/auto/channels/tst_channels.cpp @@ -0,0 +1,17 @@ +#include + +class tst_Channels : public QObject +{ + Q_OBJECT +private Q_SLOTS: + void dummy(); + +}; + +void tst_Channels::dummy() +{ + QVERIFY(true); +} + +QTEST_MAIN(tst_Channels) +#include "tst_channels.moc" diff --git a/tests/auto/exchanges/exchanges.pro b/tests/auto/exchanges/exchanges.pro new file mode 100644 index 0000000..8e81ef6 --- /dev/null +++ b/tests/auto/exchanges/exchanges.pro @@ -0,0 +1,6 @@ +DEPTH = ../../.. +include($${DEPTH}/qamqp.pri) +include($${DEPTH}/tests/tests.pri) + +TARGET = tst_exchanges +SOURCES = tst_exchanges.cpp diff --git a/tests/auto/exchanges/tst_exchanges.cpp b/tests/auto/exchanges/tst_exchanges.cpp new file mode 100644 index 0000000..7283b61 --- /dev/null +++ b/tests/auto/exchanges/tst_exchanges.cpp @@ -0,0 +1,17 @@ +#include + +class tst_Exchanges : public QObject +{ + Q_OBJECT +private Q_SLOTS: + void dummy(); + +}; + +void tst_Exchanges::dummy() +{ + QVERIFY(true); +} + +QTEST_MAIN(tst_Exchanges) +#include "tst_exchanges.moc" diff --git a/tests/auto/queues/queues.pro b/tests/auto/queues/queues.pro new file mode 100644 index 0000000..8a7c97e --- /dev/null +++ b/tests/auto/queues/queues.pro @@ -0,0 +1,6 @@ +DEPTH = ../../.. +include($${DEPTH}/qamqp.pri) +include($${DEPTH}/tests/tests.pri) + +TARGET = tst_queues +SOURCES = tst_queues.cpp diff --git a/tests/auto/queues/tst_queues.cpp b/tests/auto/queues/tst_queues.cpp new file mode 100644 index 0000000..53a9448 --- /dev/null +++ b/tests/auto/queues/tst_queues.cpp @@ -0,0 +1,22 @@ +#include + +#include "amqp_client.h" +#include "amqp_queue.h" + +class tst_Queues : public QObject +{ + Q_OBJECT +private Q_SLOTS: + void declare(); + +}; + +void tst_Queues::declare() +{ + + + +} + +QTEST_MAIN(tst_Queues) +#include "tst_queues.moc" diff --git a/tests/tests.pro b/tests/tests.pro index 3ae66f3..f544ab9 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -1,3 +1,4 @@ TEMPLATE = subdirs SUBDIRS = \ + auto \ manual