message($$MDICT_BINDIR)
TEMPLATE = subdirs
-SUBDIRS = trunk/src/base/
-SUBDIRS += trunk/src/plugins/xdxf/src/
+SUBDIRS = trunk
+#SUBDIRS += trunk/src/plugins/xdxf/src/
+
+check.target = check
+check.CONFIG = recursive
+check.recurse = trunk
+QMAKE_EXTRA_TARGETS += check
+
+
--- /dev/null
+TEMPLATE = subdirs
+SUBDIRS = xdxf
+
+check.target = check
+check.CONFIG = recursive
+check.recurse = xdxf
+QMAKE_EXTRA_TARGETS += check
--- /dev/null
+######################################################################
+# Automatically generated by qmake (1.07a) Wed Aug 4 11:35:12 2010
+######################################################################
+
+CONFIG += qtestlib
+TARGET = xdxfPluginTests
+TEMPLATE = app
+INCLUDEPATH += .
+
+# Input
+HEADERS += test.h \
+ ../src/xdxfplugin.h \
+ ../src/TranslationXdxf.h \
+ ../../../includes/translation.h \
+ ../../../includes/settings.h \
+ ../../../includes/DictDialog.h \
+ ../../../includes/CommonDictInterface.h \
+ ../src/XdxfDictDialog.h \
+ ../src/XdxfLoadDialog.h
+
+
+SOURCES += test.cpp \
+ ../src/xdxfplugin.cpp \
+ ../src/TranslationXdxf.cpp \
+ ../src/XdxfLoadDialog.cpp \
+ ../src/XdxfDictDialog.cpp
+
+check.target = check
+check.commands = ./xdxfPluginTests
+QMAKE_EXTRA_TARGETS += check
+++ /dev/null
-######################################################################
-# Automatically generated by qmake (1.07a) Wed Aug 4 11:35:12 2010
-######################################################################
-
-CONFIG += qtestlib
-TEMPLATE = app
-INCLUDEPATH += .
-
-# Input
-HEADERS += test.h \
- ../src/xdxfplugin.h \
- ../src/TranslationXdxf.h \
- ../../../includes/translation.h \
- ../../../includes/settings.h \
- ../../../includes/DictDialog.h \
- ../../../includes/CommonDictInterface.h \
- ../src/XdxfDictDialog.h \
- ../src/XdxfLoadDialog.h
-
-
-SOURCES += test.cpp \
- ../src/xdxfplugin.cpp \
- ../src/TranslationXdxf.cpp \
- ../src/XdxfLoadDialog.cpp \
- ../src/XdxfDictDialog.cpp
--- /dev/null
+TEMPLATE=subdirs
+SUBDIRS=src tests
+
+check.target = check
+check.CONFIG = recursive
+check.recurse = tests
+QMAKE_EXTRA_TARGETS += check
--- /dev/null
+TEMPLATE=subdirs
+SUBDIRS = plugins
+
+check.target = check
+check.CONFIG = recursive
+check.recurse = plugins
+QMAKE_EXTRA_TARGETS += check
QT += testlib core
-TARGET = tst_Backbone
+TARGET = mDictionaryTests
CONFIG += console
CONFIG -= app_bundle
../../src/includes/settings.h \
../../src/includes/CommonDictInterface.h \
TranslationMock.h
+
+check.target = check
+check.commands += ./mDictionaryTests
+QMAKE_EXTRA_TARGETS += check
+
#include <QtCore/QString>
#include <QtTest/QtTest>
#include <QList>
+#include <QTime>
#include "../../src/base/backbone/backbone.h"
#include "CommonDictInterfaceMock.h"
addDicts();
+ QTime time;
+ time.start();
back->search("nic");
+ qDebug() << "Time for backbone.search: " << time.elapsed();
usleep(2000);
+ time.start();
back->translation();
+ qDebug() << "Time for backbone->translation: " << time.elapsed();
QVERIFY2(translatS.count() == 1, "Lost finall 'ready()' signal");
QVERIFY2(back->result().size() == total*2, "Lost some of the translations");
--- /dev/null
+TEMPLATE=subdirs
+SUBDIRS = mDictionaryTests
+
+check.target = check
+check.CONFIG = recursive
+check.recurse = mDictionaryTests
+QMAKE_EXTRA_TARGETS += check
--- /dev/null
+TEMPLATE=subdirs
+SUBDIRS = tests src
+
+check.target = check
+check.CONFIG = recursive
+check.recurse = tests src
+QMAKE_EXTRA_TARGETS += check