This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/tests/auto/autotests.pri
Simon Stürz 400fff6785 Rename testlib folder to libnymea-tests
Fix multiple imports of QT libs by replacing "+=" with "*="
2025-10-13 09:39:15 +02:00

49 lines
1.5 KiB
Plaintext

QT *= dbus testlib network sql websockets
CONFIG *= testcase
CONFIG *= link_pkgconfig
greaterThan(QT_MAJOR_VERSION, 5) {
qtHaveModule(serialbus) {
message("Building with QtSerialBus support.")
QT *= serialbus
DEFINES += WITH_QTSERIALBUS
} else {
message("QtSerialBus package not found. Building without QtSerialBus support.")
}
# Separate module in Qt6
QT *= concurrent
} else {
packagesExist(Qt5SerialBus) {
message("Building with QtSerialBus support.")
PKGCONFIG += Qt5SerialBus
DEFINES += WITH_QTSERIALBUS
} else {
message("Qt5SerialBus package not found. Building without QtSerialBus support.")
}
}
CONFIG(python) {
message("Building tests with Python plugin support")
DEFINES += WITH_PYTHON
}
PKGCONFIG += nymea-zigbee nymea-networkmanager nymea-mqtt
INCLUDEPATH += $$top_srcdir/libnymea \
$$top_srcdir/libnymea-core \
$$top_srcdir/tests/libnymea-tests/ \
$$top_builddir
LIBS += -L$$top_builddir/libnymea/ -lnymea \
-L$$top_builddir/libnymea-core/ -lnymea-core \
-L$$top_builddir/tests/libnymea-tests/ -lnymea-tests \
-L$$top_builddir/plugins/mock/ \
-lssl -lcrypto -lnymea-remoteproxyclient
target.path = $$[QT_INSTALL_PREFIX]/share/tests/nymea/
INSTALLS += target
test.commands = LD_LIBRARY_PATH=../../../libnymea:../../../libnymea-core/:../../libnymea-tests/ make check TESTRUNNER=\"dbus-test-runner --bus-type=both --task\"
QMAKE_EXTRA_TARGETS += test