glib/glib/tests/Makefile.am

193 lines
4.4 KiB
Makefile
Raw Normal View History

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
2010-07-06 06:01:15 +02:00
INCLUDES = \
-g \
$(glib_INCLUDES) \
2010-07-06 06:01:15 +02:00
-DSRCDIR=\""$(srcdir)"\" \
$(GLIB_DEBUG_FLAGS)
noinst_PROGRAMS = $(TEST_PROGS)
progs_ldadd = $(top_builddir)/glib/libglib-2.0.la
TEST_PROGS += testing
testing_SOURCES = testing.c
testing_LDADD = $(progs_ldadd)
TEST_PROGS += option-context
option_context_SOURCES = option-context.c
option_context_LDADD = $(progs_ldadd)
TEST_PROGS += keyfile
keyfile_SOURCES = keyfile.c
keyfile_LDADD = $(progs_ldadd)
TEST_PROGS += fileutils
fileutils_SOURCES = fileutils.c
fileutils_LDADD = $(progs_ldadd)
TEST_PROGS += printf
printf_SOURCES = printf.c
printf_LDADD = $(progs_ldadd) -lm
TEST_PROGS += protocol
protocol_SOURCES = protocol.c
protocol_LDADD = $(progs_ldadd)
TEST_PROGS += rand
rand_SOURCES = rand.c
rand_LDADD = $(progs_ldadd) -lm
TEST_PROGS += strfuncs
strfuncs_SOURCES = strfuncs.c
strfuncs_LDADD = $(progs_ldadd) -lm
TEST_PROGS += string
string_SOURCES = string.c
string_LDADD = $(progs_ldadd) -lm
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)
TEST_PROGS += markup-subparser
markup_subparser_LDADD = $(progs_ldadd)
TEST_PROGS += array-test
array_test_LDADD = $(progs_ldadd)
TEST_PROGS += hostutils
hostutils_LDADD = $(progs_ldadd)
TEST_PROGS += gvariant
gvariant_LDADD = $(progs_ldadd)
2010-01-25 17:31:56 +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)
TEST_PROGS += regex
regex_LDADD = $(progs_ldadd)
2010-06-20 17:34:31 +02:00
TEST_PROGS += base64
base64_LDADD = $(progs_ldadd)
2010-06-20 17:34:31 +02:00
TEST_PROGS += sequence
sequence_LDADD = $(progs_ldadd)
2010-06-20 18:29:17 +02:00
TEST_PROGS += scannerapi
scannerapi_LDADD = $(progs_ldadd)
2010-06-20 18:29:17 +02:00
TEST_PROGS += shell
shell_LDADD = $(progs_ldadd)
TEST_PROGS += collate
collate_LDADD = $(progs_ldadd)
TEST_PROGS += utf8-pointer
utf8_pointer_LDADD = $(progs_ldadd)
TEST_PROGS += utf8-validate
utf8_validate_LDADD = $(progs_ldadd)
2010-06-21 05:35:31 +02:00
TEST_PROGS += utf8-misc
utf8_misc_LDADD = $(progs_ldadd)
2010-06-21 05:35:31 +02:00
TEST_PROGS += checksum
checksum_LDADD = $(progs_ldadd)
2010-06-22 05:06:17 +02:00
TEST_PROGS += hash
hash_LDADD = $(progs_ldadd)
2010-06-22 05:06:17 +02:00
2010-06-23 01:50:35 +02:00
TEST_PROGS += date
date_LDADD = $(progs_ldadd)
2010-06-23 01:50:35 +02:00
2010-06-23 04:24:29 +02:00
TEST_PROGS += node
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 05:24:31 +02:00
TEST_PROGS += logging
logging_LDADD = $(progs_ldadd)
TEST_PROGS += error
error_LDADD = $(progs_ldadd)
TEST_PROGS += bookmarkfile
bookmarkfile_LDADD = $(progs_ldadd)
TEST_PROGS += gdatetime
gdatetime_SOURCES = gdatetime.c
gdatetime_LDADD = $(progs_ldadd)
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)
TEST_PROGS += mappedfile
mappedfile_LDADD = $(progs_ldadd)
TEST_PROGS += dataset
dataset_LDADD = $(progs_ldadd)
if OS_UNIX
# 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
endif
2008-01-07 17:47:36 +01:00
CLEANFILES = \
tmpsample.xml
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 \
bookmarks.xbel \
empty
dist-hook:
mkdir $(distdir)/markups; \
for f in $(srcdir)/markups/*; do \
cp $$f $(distdir)/markups; done
mkdir $(distdir)/bookmarks; \
for f in $(srcdir)/bookmarks/* ; do \
cp $$f $(distdir)/bookmarks; done