initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional
2007-11-21 21:06:47 Tim Janik <timj@imendio.com>
* Makefile.decl: initialize automake variables EXTRA_DIST and
TEST_PROGS for unconditional appending via += in other makefiles.
define recursive test targets: test, test-report, perf-report,
full-report, as described here:
http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
* Makefile.am:
* build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
* build/win32/Makefile.am, build/Makefile.am:
* docs/Makefile.am, docs/reference/Makefile.am:
* docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
* gmodule/Makefile.am, tests/Makefile.am:
* tests/refcount/Makefile.am, tests/gobject/Makefile.am:
* glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
* glib/tests/Makefile.am, glib/pcre/Makefile.am:
* glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
* gthread/Makefile.am, glib/Makefile.am:
include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
* glib/tests/Makefile.am: removed example testing rules.
* glib/tests/testing.c: conditionalized performance and slow tests.
* glib/gtestutils.h:
* glib/gtestutils.c: work around g_test_config_vars not changing its
exported value after value assignments, aparently due to symbol aliases.
* glib/gtester.c: fixed off-by-one error which produced junk in logs.
* configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
svn path=/trunk/; revision=5914
2007-11-21 21:09:46 +01:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
2007-11-20 16:00:23 +01:00
|
|
|
|
2010-07-06 06:01:15 +02:00
|
|
|
INCLUDES = \
|
|
|
|
-g \
|
2010-08-06 19:09:26 +02:00
|
|
|
$(glib_INCLUDES) \
|
2010-07-06 06:01:15 +02:00
|
|
|
-DSRCDIR=\""$(srcdir)"\" \
|
|
|
|
$(GLIB_DEBUG_FLAGS)
|
2007-11-20 16:00:50 +01:00
|
|
|
|
|
|
|
noinst_PROGRAMS = $(TEST_PROGS)
|
2008-05-27 18:00:51 +02:00
|
|
|
progs_ldadd = $(top_builddir)/glib/libglib-2.0.la
|
2007-11-20 16:00:23 +01:00
|
|
|
|
2007-11-20 16:00:50 +01:00
|
|
|
TEST_PROGS += testing
|
2007-11-20 16:00:23 +01:00
|
|
|
testing_SOURCES = testing.c
|
|
|
|
testing_LDADD = $(progs_ldadd)
|
|
|
|
|
2007-12-24 12:09:03 +01:00
|
|
|
TEST_PROGS += option-context
|
|
|
|
option_context_SOURCES = option-context.c
|
|
|
|
option_context_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-07-20 04:09:05 +02:00
|
|
|
TEST_PROGS += keyfile
|
|
|
|
keyfile_SOURCES = keyfile.c
|
|
|
|
keyfile_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-06-24 15:55:22 +02:00
|
|
|
TEST_PROGS += fileutils
|
2008-07-20 04:09:05 +02:00
|
|
|
fileutils_SOURCES = fileutils.c
|
2008-06-24 15:55:22 +02:00
|
|
|
fileutils_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-09-01 11:31:40 +02:00
|
|
|
TEST_PROGS += printf
|
2010-04-20 15:01:17 +02:00
|
|
|
printf_SOURCES = printf.c
|
|
|
|
printf_LDADD = $(progs_ldadd) -lm
|
|
|
|
|
|
|
|
TEST_PROGS += protocol
|
|
|
|
protocol_SOURCES = protocol.c
|
|
|
|
protocol_LDADD = $(progs_ldadd)
|
2008-09-01 11:31:40 +02:00
|
|
|
|
|
|
|
TEST_PROGS += rand
|
|
|
|
rand_SOURCES = rand.c
|
2010-04-20 15:01:17 +02:00
|
|
|
rand_LDADD = $(progs_ldadd) -lm
|
2008-09-01 11:31:40 +02:00
|
|
|
|
2008-06-24 15:55:22 +02:00
|
|
|
TEST_PROGS += strfuncs
|
|
|
|
strfuncs_SOURCES = strfuncs.c
|
|
|
|
strfuncs_LDADD = $(progs_ldadd) -lm
|
|
|
|
|
2008-09-01 11:31:40 +02:00
|
|
|
TEST_PROGS += string
|
|
|
|
string_SOURCES = string.c
|
|
|
|
string_LDADD = $(progs_ldadd) -lm
|
|
|
|
|
2010-07-30 02:52:31 +02:00
|
|
|
TEST_PROGS += markup-parse
|
|
|
|
markup_parse_LDADD = $(progs_ldadd)
|
|
|
|
|
|
|
|
TEST_PROGS += markup-collect
|
|
|
|
markup_collect_LDADD = $(progs_ldadd)
|
|
|
|
|
|
|
|
TEST_PROGS += markup-escape
|
|
|
|
markup_escape_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-07-10 10:41:59 +02:00
|
|
|
TEST_PROGS += markup-subparser
|
|
|
|
markup_subparser_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-07-20 04:09:05 +02:00
|
|
|
TEST_PROGS += array-test
|
|
|
|
array_test_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-12-29 15:00:17 +01:00
|
|
|
TEST_PROGS += hostutils
|
|
|
|
hostutils_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-02-05 02:27:11 +01:00
|
|
|
TEST_PROGS += gvariant
|
|
|
|
gvariant_LDADD = $(progs_ldadd)
|
2010-01-25 17:31:56 +01:00
|
|
|
|
2010-02-03 05:48:42 +01:00
|
|
|
TEST_PROGS += mem-overflow
|
|
|
|
mem_overflow_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-05-09 02:58:10 +02:00
|
|
|
TEST_PROGS += utils
|
|
|
|
utils_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-06-20 17:07:49 +02:00
|
|
|
TEST_PROGS += regex
|
|
|
|
regex_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-06-20 17:34:31 +02:00
|
|
|
TEST_PROGS += base64
|
2010-07-03 19:43:25 +02:00
|
|
|
base64_LDADD = $(progs_ldadd)
|
2010-06-20 17:34:31 +02:00
|
|
|
|
2010-06-20 18:23:13 +02:00
|
|
|
TEST_PROGS += sequence
|
2010-07-03 19:43:25 +02:00
|
|
|
sequence_LDADD = $(progs_ldadd)
|
2010-06-20 18:23:13 +02:00
|
|
|
|
2010-06-20 18:29:17 +02:00
|
|
|
TEST_PROGS += scannerapi
|
2010-07-03 19:43:25 +02:00
|
|
|
scannerapi_LDADD = $(progs_ldadd)
|
2010-06-20 18:29:17 +02:00
|
|
|
|
2010-07-26 23:59:18 +02:00
|
|
|
TEST_PROGS += shell
|
|
|
|
shell_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-06-21 03:04:47 +02:00
|
|
|
TEST_PROGS += collate
|
|
|
|
collate_LDADD = $(progs_ldadd)
|
|
|
|
|
|
|
|
TEST_PROGS += utf8-pointer
|
2010-07-03 19:43:25 +02:00
|
|
|
utf8_pointer_LDADD = $(progs_ldadd)
|
2010-06-21 03:04:47 +02:00
|
|
|
|
2010-06-21 03:16:24 +02:00
|
|
|
TEST_PROGS += utf8-validate
|
2010-07-03 19:43:25 +02:00
|
|
|
utf8_validate_LDADD = $(progs_ldadd)
|
2010-06-21 03:16:24 +02:00
|
|
|
|
2010-06-21 05:35:31 +02:00
|
|
|
TEST_PROGS += utf8-misc
|
2010-07-03 19:43:25 +02:00
|
|
|
utf8_misc_LDADD = $(progs_ldadd)
|
2010-06-21 05:35:31 +02:00
|
|
|
|
2010-06-22 03:22:09 +02:00
|
|
|
TEST_PROGS += checksum
|
2010-07-03 19:43:25 +02:00
|
|
|
checksum_LDADD = $(progs_ldadd)
|
2010-06-22 03:22:09 +02:00
|
|
|
|
2010-06-22 05:06:17 +02:00
|
|
|
TEST_PROGS += hash
|
2010-07-03 19:43:25 +02:00
|
|
|
hash_LDADD = $(progs_ldadd)
|
2010-06-22 05:06:17 +02:00
|
|
|
|
2010-06-23 01:50:35 +02:00
|
|
|
TEST_PROGS += date
|
2010-07-03 19:43:25 +02:00
|
|
|
date_LDADD = $(progs_ldadd)
|
2010-06-23 01:50:35 +02:00
|
|
|
|
2010-06-23 04:24:29 +02:00
|
|
|
TEST_PROGS += node
|
2010-07-03 19:43:25 +02:00
|
|
|
node_LDADD = $(progs_ldadd)
|
|
|
|
|
|
|
|
TEST_PROGS += convert
|
|
|
|
convert_LDADD = $(progs_ldadd)
|
2010-06-23 04:24:29 +02:00
|
|
|
|
2010-07-06 02:51:29 +02:00
|
|
|
TEST_PROGS += list
|
|
|
|
list_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-07-06 03:06:28 +02:00
|
|
|
TEST_PROGS += slist
|
|
|
|
slist_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-07-26 01:12:51 +02:00
|
|
|
TEST_PROGS += queue
|
|
|
|
queue_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-07-06 04:40:26 +02:00
|
|
|
TEST_PROGS += tree
|
|
|
|
tree_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-07-06 05:06:50 +02:00
|
|
|
TEST_PROGS += uri
|
|
|
|
uri_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-07-06 05:43:47 +02:00
|
|
|
TEST_PROGS += dir
|
|
|
|
dir_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-07-27 03:16:03 +02:00
|
|
|
TEST_PROGS += pattern
|
|
|
|
pattern_LDADD = $(progs_ldadd)
|
2010-07-27 04:12:59 +02:00
|
|
|
|
2010-07-27 05:24:31 +02:00
|
|
|
TEST_PROGS += logging
|
|
|
|
logging_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-07-31 08:14:28 +02:00
|
|
|
TEST_PROGS += error
|
|
|
|
error_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-08-01 08:07:21 +02:00
|
|
|
TEST_PROGS += bookmarkfile
|
|
|
|
bookmarkfile_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-05-28 13:19:29 +02:00
|
|
|
TEST_PROGS += gdatetime
|
|
|
|
gdatetime_SOURCES = gdatetime.c
|
|
|
|
gdatetime_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-02-15 05:20:38 +01:00
|
|
|
TEST_PROGS += timeout
|
|
|
|
timeout_SOURCES = timeout.c
|
|
|
|
timeout_LDADD = $(progs_ldadd)
|
|
|
|
|
2010-10-29 04:20:25 +02:00
|
|
|
TEST_PROGS += environment
|
|
|
|
environment_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-02-14 05:47:42 +01:00
|
|
|
TEST_PROGS += mappedfile
|
|
|
|
mappedfile_LDADD = $(progs_ldadd)
|
|
|
|
|
|
|
|
TEST_PROGS += dataset
|
|
|
|
dataset_LDADD = $(progs_ldadd)
|
|
|
|
|
2011-02-16 07:28:27 +01:00
|
|
|
TEST_PROGS += sort
|
|
|
|
sort_LDADD = $(progs_ldadd)
|
|
|
|
|
2008-09-30 16:46:45 +02:00
|
|
|
if OS_UNIX
|
|
|
|
|
2007-11-20 16:00:53 +01:00
|
|
|
# some testing of gtester funcitonality
|
|
|
|
XMLLINT=xmllint
|
|
|
|
gtester-xmllint-check: # check testreport xml with xmllint if present
|
|
|
|
${GTESTER} -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ${GTESTER}
|
|
|
|
${XMLLINT} --version 2>/dev/null; test "$$?" != 0 || ${XMLLINT} --noout tmpsample.xml
|
|
|
|
check-am: gtester-xmllint-check
|
2008-01-07 17:47:36 +01:00
|
|
|
|
2008-09-30 16:46:45 +02:00
|
|
|
endif
|
|
|
|
|
2008-01-07 17:47:36 +01:00
|
|
|
CLEANFILES = \
|
|
|
|
tmpsample.xml
|
2008-08-29 01:03:24 +02:00
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2010-07-07 06:38:27 +02:00
|
|
|
4096-random-bytes \
|
2010-07-11 04:30:04 +02:00
|
|
|
keyfiletest.ini \
|
2011-01-28 05:07:53 +01:00
|
|
|
pages.ini \
|
2011-02-14 05:47:42 +01:00
|
|
|
bookmarks.xbel \
|
|
|
|
empty
|
2010-07-30 02:52:31 +02:00
|
|
|
|
2010-08-06 19:11:20 +02:00
|
|
|
dist-hook:
|
2010-07-30 02:52:31 +02:00
|
|
|
mkdir $(distdir)/markups; \
|
|
|
|
for f in $(srcdir)/markups/*; do \
|
|
|
|
cp $$f $(distdir)/markups; done
|
2010-08-01 08:07:21 +02:00
|
|
|
mkdir $(distdir)/bookmarks; \
|
|
|
|
for f in $(srcdir)/bookmarks/* ; do \
|
|
|
|
cp $$f $(distdir)/bookmarks; done
|
|
|
|
|