added dummy auto tests

This commit is contained in:
Matt Broadstone 2014-05-28 16:02:39 -04:00
parent 2ba2823b84
commit 7a708cc39a
10 changed files with 116 additions and 0 deletions

6
tests/auto/auto.pro Normal file
View File

@ -0,0 +1,6 @@
TEMPLATE = subdirs
SUBDIRS = \
basic \
exchanges \
queues \
channels

View File

@ -0,0 +1,6 @@
DEPTH = ../../..
include($${DEPTH}/qamqp.pri)
include($${DEPTH}/tests/tests.pri)
TARGET = tst_basic
SOURCES = tst_basic.cpp

View File

@ -0,0 +1,29 @@
#include <QtTest/QtTest>
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"

View File

@ -0,0 +1,6 @@
DEPTH = ../../..
include($${DEPTH}/qamqp.pri)
include($${DEPTH}/tests/tests.pri)
TARGET = tst_channels
SOURCES = tst_channels.cpp

View File

@ -0,0 +1,17 @@
#include <QtTest/QtTest>
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"

View File

@ -0,0 +1,6 @@
DEPTH = ../../..
include($${DEPTH}/qamqp.pri)
include($${DEPTH}/tests/tests.pri)
TARGET = tst_exchanges
SOURCES = tst_exchanges.cpp

View File

@ -0,0 +1,17 @@
#include <QtTest/QtTest>
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"

View File

@ -0,0 +1,6 @@
DEPTH = ../../..
include($${DEPTH}/qamqp.pri)
include($${DEPTH}/tests/tests.pri)
TARGET = tst_queues
SOURCES = tst_queues.cpp

View File

@ -0,0 +1,22 @@
#include <QtTest/QtTest>
#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"

View File

@ -1,3 +1,4 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = \ SUBDIRS = \
auto \
manual manual