aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-04-03 09:48:46 +0000
committerAndre Heinecke <[email protected]>2016-04-03 09:48:46 +0000
commitfaf987dd62893955251378a2a715edd2892a540c (patch)
tree5072f5a79493fa048a1c19312ab943859c5c0e7c /m4
parentQt: Add missing MOC includes (diff)
downloadgpgme-faf987dd62893955251378a2a715edd2892a540c.tar.gz
gpgme-faf987dd62893955251378a2a715edd2892a540c.zip
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.
Diffstat (limited to 'm4')
-rw-r--r--m4/qt.m45
1 files changed, 5 insertions, 0 deletions
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