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:
parent
2631c35ad7
commit
895b46e394
@ -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
|
||||
|
28
tests/auto/wayland/client/client.pro
Normal file
28
tests/auto/wayland/client/client.pro
Normal 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
|
Loading…
x
Reference in New Issue
Block a user