diff --git a/tests/auto/autotests.pri b/tests/auto/autotests.pri new file mode 100644 index 00000000..a7772b66 --- /dev/null +++ b/tests/auto/autotests.pri @@ -0,0 +1,14 @@ +QT += testlib network +CONFIG += testcase c++11 + +include($$top_srcdir/server/server.pri) + +INCLUDEPATH += $$top_srcdir/server/ $$top_srcdir/server/jsonrpc $$top_srcdir/libguh $$top_srcdir/tests/auto/ +LIBS += -L$$top_builddir/libguh/ -lguh -L$$top_builddir/plugins/deviceplugins/mock/ -lguh_devicepluginmock +QMAKE_LFLAGS += -Wl,--rpath=$$top_builddir/libguh + +SOURCES += ../guhtestbase.cpp \ + ../mocktcpserver.cpp \ + +HEADERS += ../guhtestbase.h \ + ../mocktcpserver.h diff --git a/tests/auto/devices/testdevices.cpp b/tests/auto/devices/testdevices.cpp index efd66970..591a2616 100644 --- a/tests/auto/devices/testdevices.cpp +++ b/tests/auto/devices/testdevices.cpp @@ -16,7 +16,7 @@ * * ***************************************************************************/ -#include "../guhtestbase.h" +#include "guhtestbase.h" #include "guhcore.h" #include "devicemanager.h" diff --git a/tests/auto/jsonrpc/testjsonrpc.cpp b/tests/auto/jsonrpc/testjsonrpc.cpp index cc89b9df..ff5d73b7 100644 --- a/tests/auto/jsonrpc/testjsonrpc.cpp +++ b/tests/auto/jsonrpc/testjsonrpc.cpp @@ -16,7 +16,7 @@ * * ***************************************************************************/ -#include "../guhtestbase.h" +#include "guhtestbase.h" #include "guhcore.h" #include "devicemanager.h" #include "mocktcpserver.h" diff --git a/tests/auto/versioning/testversioning.cpp b/tests/auto/versioning/testversioning.cpp index 9250d8d1..3b7130d1 100644 --- a/tests/auto/versioning/testversioning.cpp +++ b/tests/auto/versioning/testversioning.cpp @@ -16,7 +16,7 @@ * * ***************************************************************************/ -#include "../guhtestbase.h" +#include "guhtestbase.h" #include "guhcore.h" #include "devicemanager.h" #include "mocktcpserver.h" diff --git a/tests/auto/versioning/versioning.pro b/tests/auto/versioning/versioning.pro index 2f621e9b..54033950 100644 --- a/tests/auto/versioning/versioning.pro +++ b/tests/auto/versioning/versioning.pro @@ -3,8 +3,6 @@ TARGET = versioning include(../../../guh.pri) include(../autotests.pri) -INCLUDEPATH += $$top_srcdir/server/ $$top_srcdir/server/jsonrpc $$top_srcdir/libguh $$top_srcdir/tests/auto/ - DEFINES += TESTING_ENABLED DEFINES += TESTS_SOURCE_DIR=\\\"$$top_srcdir/tests/auto/\\\"