2011-05-18 20:20:17 +02:00
|
|
|
## Copyright (C) 2008-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
2010-01-25 09:24:33 +01:00
|
|
|
##
|
|
|
|
## This program is free software; you can redistribute it and/or modify it
|
|
|
|
## under the terms of the GNU General Public License as published by the
|
|
|
|
## Free Software Foundation; either version 3, or (at your option) any
|
|
|
|
## later version.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; if not, write to the Free Software Foundation,
|
|
|
|
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
include $(top_srcdir)/gtest.mk
|
|
|
|
|
2010-01-29 07:20:36 +01:00
|
|
|
INCLUDES=$(XAPIAN_CXXFLAGS) \
|
|
|
|
$(GMIME_CFLAGS) \
|
|
|
|
$(GLIB_CFLAGS) \
|
2010-11-24 19:04:20 +01:00
|
|
|
-I ${top_srcdir} -I ${top_srcdir}/src \
|
2010-09-10 19:37:06 +02:00
|
|
|
-DMU_TESTMAILDIR=\"${abs_srcdir}/testdir/\" \
|
2010-09-26 14:52:07 +02:00
|
|
|
-DMU_TESTMAILDIR2=\"${abs_srcdir}/testdir2/\" \
|
2011-06-23 23:24:04 +02:00
|
|
|
-DMU_TESTMAILDIR3=\"${abs_srcdir}/testdir3/\" \
|
2010-02-05 17:54:27 +01:00
|
|
|
-DMU_PROGRAM=\"${abs_top_builddir}/src/mu\" \
|
2010-10-09 14:36:32 +02:00
|
|
|
-DABS_CURDIR=\"${abs_builddir}\" \
|
2010-01-25 09:24:33 +01:00
|
|
|
-DABS_SRCDIR=\"${abs_srcdir}\"
|
|
|
|
|
2010-09-12 22:38:34 +02:00
|
|
|
# don't use -Werror, as it might break on other compilers
|
|
|
|
# use -Wno-unused-parameters, because some callbacks may not
|
|
|
|
# really need all the params they get
|
|
|
|
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement
|
|
|
|
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter
|
|
|
|
|
2010-01-25 09:24:33 +01:00
|
|
|
noinst_PROGRAMS= $(TEST_PROGS)
|
|
|
|
|
2010-02-02 20:48:41 +01:00
|
|
|
noinst_LTLIBRARIES=libtestmucommon.la
|
|
|
|
|
2010-01-27 07:15:08 +01:00
|
|
|
TEST_PROGS += test-mu-util
|
2011-01-04 22:19:03 +01:00
|
|
|
test_mu_util_SOURCES= test-mu-util.c dummy.cc
|
2010-02-02 20:48:41 +01:00
|
|
|
test_mu_util_LDADD= libtestmucommon.la
|
2010-01-27 07:15:08 +01:00
|
|
|
|
2010-11-22 23:44:18 +01:00
|
|
|
TEST_PROGS += test-mu-str
|
2011-01-04 22:19:03 +01:00
|
|
|
test_mu_str_SOURCES= test-mu-str.c dummy.cc
|
2010-11-22 23:44:18 +01:00
|
|
|
test_mu_str_LDADD= libtestmucommon.la
|
2010-01-25 09:24:33 +01:00
|
|
|
|
2010-01-29 07:20:36 +01:00
|
|
|
TEST_PROGS += test-mu-maildir
|
2011-01-04 22:19:03 +01:00
|
|
|
test_mu_maildir_SOURCES= test-mu-maildir.c dummy.cc
|
2010-02-02 20:48:41 +01:00
|
|
|
test_mu_maildir_LDADD= libtestmucommon.la
|
2010-01-29 07:20:36 +01:00
|
|
|
|
2010-11-20 13:43:35 +01:00
|
|
|
TEST_PROGS += test-mu-msg-fields
|
2011-01-04 22:19:03 +01:00
|
|
|
test_mu_msg_fields_SOURCES= test-mu-msg-fields.c dummy.cc
|
2010-11-20 13:43:35 +01:00
|
|
|
test_mu_msg_fields_LDADD= libtestmucommon.la
|
|
|
|
|
2010-01-31 13:14:19 +01:00
|
|
|
TEST_PROGS += test-mu-query
|
|
|
|
test_mu_query_SOURCES= test-mu-query.c dummy.cc
|
2010-02-02 20:48:41 +01:00
|
|
|
test_mu_query_LDADD= libtestmucommon.la
|
|
|
|
|
2011-05-18 20:20:17 +02:00
|
|
|
TEST_PROGS += test-mu-contacts
|
|
|
|
test_mu_contacts_SOURCES= test-mu-contacts.c dummy.cc
|
|
|
|
test_mu_contacts_LDADD= libtestmucommon.la
|
|
|
|
|
2010-09-26 14:52:07 +02:00
|
|
|
TEST_PROGS += test-mu-cmd
|
|
|
|
test_mu_cmd_SOURCES= test-mu-cmd.c dummy.cc
|
|
|
|
test_mu_cmd_LDADD= libtestmucommon.la
|
|
|
|
|
2011-05-19 18:55:50 +02:00
|
|
|
TEST_PROGS += test-mu-cmd-cfind
|
|
|
|
test_mu_cmd_cfind_SOURCES= test-mu-cmd-cfind.c dummy.cc
|
|
|
|
test_mu_cmd_cfind_LDADD= libtestmucommon.la
|
|
|
|
|
|
|
|
|
2010-08-24 23:57:16 +02:00
|
|
|
TEST_PROGS += test-mu-msg
|
2011-01-04 22:19:03 +01:00
|
|
|
test_mu_msg_SOURCES= test-mu-msg.c dummy.cc
|
2010-08-24 23:57:16 +02:00
|
|
|
test_mu_msg_LDADD= libtestmucommon.la
|
2010-08-17 23:18:42 +02:00
|
|
|
|
2010-12-01 20:57:36 +01:00
|
|
|
TEST_PROGS += test-mu-runtime
|
2011-01-04 22:19:03 +01:00
|
|
|
test_mu_runtime_SOURCES= test-mu-runtime.c dummy.cc
|
2010-12-01 20:57:36 +01:00
|
|
|
test_mu_runtime_LDADD= libtestmucommon.la
|
|
|
|
|
|
|
|
TEST_PROGS += test-mu-store
|
|
|
|
test_mu_store_SOURCES= test-mu-store.c dummy.cc
|
|
|
|
test_mu_store_LDADD= libtestmucommon.la
|
|
|
|
|
2011-06-23 23:24:04 +02:00
|
|
|
TEST_PROGS += test-mu-threads
|
|
|
|
test_mu_threads_SOURCES= test-mu-threads.c dummy.cc
|
|
|
|
test_mu_threads_LDADD= libtestmucommon.la
|
|
|
|
|
|
|
|
|
2011-05-06 07:11:47 +02:00
|
|
|
# TEST_PROGS += test-mu-msg-file
|
|
|
|
# test_mu_msg_file_SOURCES= test-mu-msg-file.c dummy.cc
|
|
|
|
# test_mu_msg_file_LDADD= libtestmucommon.la
|
|
|
|
#
|
2010-08-17 23:18:42 +02:00
|
|
|
|
2010-12-07 22:14:11 +01:00
|
|
|
libtestmucommon_la_SOURCES= \
|
|
|
|
test-mu-common.c \
|
2010-02-02 20:48:41 +01:00
|
|
|
test-mu-common.h
|
|
|
|
libtestmucommon_la_LIBADD= ../libmu.la
|
2010-01-31 13:14:19 +01:00
|
|
|
|
2010-02-02 20:48:41 +01:00
|
|
|
# note the question marks; make does not like files with ':', so we
|
|
|
|
# use the (also supported) version with '!' instead. We could escape
|
|
|
|
# the : with \: but automake does not recognize that....
|
2010-01-31 13:14:19 +01:00
|
|
|
|
2010-09-04 13:32:10 +02:00
|
|
|
# 12 messages, the '.ignore' message should be ignored
|
2010-01-29 07:20:36 +01:00
|
|
|
# when indexing
|
|
|
|
EXTRA_DIST= \
|
|
|
|
testdir/tmp/1220863087.12663.ignore \
|
|
|
|
testdir/new/1220863087.12663_9.mindcrime \
|
|
|
|
testdir/new/1220863087.12663_25.mindcrime \
|
|
|
|
testdir/new/1220863087.12663_21.mindcrime \
|
|
|
|
testdir/new/1220863087.12663_23.mindcrime \
|
2010-02-02 20:48:41 +01:00
|
|
|
testdir/cur/1220863087.12663_5.mindcrime!2,S \
|
|
|
|
testdir/cur/1220863087.12663_7.mindcrime!2,RS \
|
|
|
|
testdir/cur/1220863087.12663_15.mindcrime!2,PS \
|
|
|
|
testdir/cur/1220863087.12663_19.mindcrime!2,S \
|
|
|
|
testdir/cur/1220863042.12663_1.mindcrime!2,S \
|
2010-09-04 13:32:10 +02:00
|
|
|
testdir/cur/1220863060.12663_3.mindcrime!2,S \
|
2010-09-26 14:52:07 +02:00
|
|
|
testdir/cur/1283599333.1840_11.cthulhu!2, \
|
2011-05-17 23:00:10 +02:00
|
|
|
testdir/cur/1305664394.2171_402.cthulhu!2, \
|
2010-09-26 14:52:07 +02:00
|
|
|
testdir2/bar/cur/mail1 \
|
2010-10-04 21:33:22 +02:00
|
|
|
testdir2/bar/cur/mail2 \
|
2010-10-23 11:05:35 +02:00
|
|
|
testdir2/bar/cur/mail3 \
|
2011-01-06 12:14:17 +01:00
|
|
|
testdir2/bar/cur/mail4 \
|
2011-06-13 23:08:13 +02:00
|
|
|
testdir2/bar/cur/mail5 \
|
2011-05-29 12:57:27 +02:00
|
|
|
testdir2/Foo/cur/mail5 \
|
2011-06-08 07:33:30 +02:00
|
|
|
testdir2/bar/cur/181736.eml \
|
2011-05-29 12:57:27 +02:00
|
|
|
testdir2/Foo/cur/arto.eml
|
2010-10-04 21:33:22 +02:00
|
|
|
|