Fix autotest directory structure

The client and server parts are separate modules, so they need separate
top-level directories under tests/auto. This also makes it easier to add
new tests later.

Change-Id: I393341b6f4e8fc3afa480653f3482192e002e425
Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
This commit is contained in:
Paul Olav Tvete 2016-08-05 11:53:43 +02:00 committed by Jędrzej Nowacki
parent 2631c35ad7
commit 895b46e394
11 changed files with 30 additions and 24 deletions

View File

@ -1,25 +1,3 @@
CONFIG += testcase link_pkgconfig
TARGET = tst_client
TEMPLATE=subdirs
QT += testlib
QT += core-private gui-private
!contains(QT_CONFIG, no-pkg-config) {
PKGCONFIG += wayland-client wayland-server
} else {
LIBS += -lwayland-client -lwayland-server
}
CONFIG += wayland-scanner
WAYLANDSERVERSOURCES += \
../../../src/3rdparty/protocol/wayland.xml
SOURCES += tst_client.cpp \
mockcompositor.cpp \
mockinput.cpp \
mockshell.cpp \
mocksurface.cpp \
mockoutput.cpp
HEADERS += mockcompositor.h \
mockinput.h \
mocksurface.h \
SUBDIRS += client

View File

@ -0,0 +1,28 @@
CONFIG += testcase link_pkgconfig
TARGET = tst_client
QT += testlib
QT += core-private gui-private
!contains(QT_CONFIG, no-pkg-config) {
PKGCONFIG += wayland-client wayland-server
} else {
LIBS += -lwayland-client -lwayland-server
}
CONFIG += wayland-scanner
WAYLANDSERVERSOURCES += \
../../../../src/3rdparty/protocol/wayland.xml
SOURCES += \
tst_client.cpp \
mockcompositor.cpp \
mockinput.cpp \
mockshell.cpp \
mocksurface.cpp \
mockoutput.cpp
HEADERS += \
mockcompositor.h \
mockinput.h \
mocksurface.h