From faf987dd62893955251378a2a715edd2892a540c Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Sun, 3 Apr 2016 01:48:46 -0800 Subject: Qt: Add a unit test for qgpgme * configure.ac: Configure test Makefile. * m4/qt.m4: Look up Qt5Test flags. * lang/qt/tests/t-keylist.cpp: New. Simple keylist check. * lang/qt/tests/Makefile.am: New. General test framework. -- This test mostly checks that it basically compiles / works and adds a test framework. --- m4/qt.m4 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'm4') diff --git a/m4/qt.m4 b/m4/qt.m4 index 80e22459..d3be7f88 100644 --- a/m4/qt.m4 +++ b/m4/qt.m4 @@ -18,6 +18,11 @@ AC_DEFUN([FIND_QT], [have_qt5_libs="yes"], [have_qt5_libs="no"]) + PKG_CHECK_MODULES(GPGME_QTTEST, + Qt5Test >= 5.0.0, + [have_qt5test_libs="yes"], + [have_qt5test_libs="no"]) + if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic" fi -- cgit v1.2.3