394
395
top_build_prefix = @top_build_prefix@
395
396
top_builddir = @top_builddir@
396
397
top_srcdir = @top_srcdir@
397
GTESTER = gtester # in $PATH for non-GLIB packages
398
GTESTER_REPORT = gtester-report # in $PATH for non-GLIB packages
400
# initialize variables for unconditional += appending
401
EXTRA_DIST = DETAILS pixbuf-transform-math.ltx makefile.msc
406
# Xvfb based test rules
407
XVFB = Xvfb -ac -noreset -screen 0 800x600x16
408
XIDS = 101 102 103 104 105 106 107 197 199 211 223 227 293 307 308 309 310 311 \
409
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 \
410
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 \
411
1008 1009 4703 4721 4723 4729 4733 4751 9973 9974 9975 9976 9977 9978 9979 \
412
9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 \
413
9995 9996 9997 9998 9999
416
test "$(gdktarget)" != "x11" \
417
&& echo "Gtk+Tests:INFO: Skipping GUI tests for non-X11 target."
420
${XVFB} -help 2>/dev/null 1>&2 \
421
&& XID=`for id in $(XIDS) ; do test -e /tmp/.X$$id-lock || { echo $$id; exit 0; }; done; exit 1` \
422
&& { ${XVFB} :$$XID -screen 0 800x600x16 -nolisten tcp -auth /dev/null >/dev/null 2>&1 & \
423
trap "kill -15 $$! " 0 HUP INT QUIT TRAP USR1 PIPE TERM ; } \
424
|| { echo "Gtk+Tests:ERROR: Failed to start Xvfb environment for X11 target tests."; exit 1; } \
425
&& DISPLAY=:$$XID && export DISPLAY
427
398
noinst_LTLIBRARIES = libpixops.la
429
400
-I$(top_srcdir) -I$(top_builddir) \
430
401
$(GTK_DEBUG_FLAGS) \
431
402
$(GDK_PIXBUF_DEP_CFLAGS)
759
.MAKE: check-am install-am install-strip
761
.PHONY: CTAGS GTAGS TAGS all all-am check check-am check-local clean \
762
clean-generic clean-libtool clean-noinstLTLIBRARIES \
763
clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
764
distclean-compile distclean-generic distclean-libtool \
765
distclean-tags distdir dvi dvi-am html html-am info info-am \
766
install install-am install-data install-data-am install-dvi \
767
install-dvi-am install-exec install-exec-am install-html \
768
install-html-am install-info install-info-am install-man \
769
install-pdf install-pdf-am install-ps install-ps-am \
770
install-strip installcheck installcheck-am installdirs \
771
maintainer-clean maintainer-clean-generic mostlyclean \
772
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
773
pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am
775
# call as: $(XVFB_START) && someprogram
777
# test: run all tests in cwd and subdirs
779
@$(SKIP_GDKTARGET) || test -z "${TEST_PROGS}" || { \
780
$(XVFB_START) && { set -e; ${GTESTER} --verbose ${TEST_PROGS}; }; \
782
@ for subdir in $(SUBDIRS) ; do \
783
test "$$subdir" = "." -o "$$subdir" = "po" -o "$$subdir" = "po-properties" || \
784
( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
786
# test-report: run tests in subdirs and generate report
787
# perf-report: run tests in subdirs with -m perf and generate report
788
# full-report: like test-report: with -m perf and -m slow
789
test-report perf-report full-report: ${TEST_PROGS}
790
@ ignore_logdir=true ; \
791
if test -z "$$GTESTER_LOGDIR" ; then \
792
GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \
793
ignore_logdir=false ; \
795
for subdir in $(SUBDIRS) ; do \
796
test "$$subdir" = "." -o "$$subdir" = "po" -o "$$subdir" = "po-properties" || \
797
( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
799
$(SKIP_GDKTARGET) || test -z "${TEST_PROGS}" || { \
801
test-report) test_options="-k";; \
802
perf-report) test_options="-k -m=perf";; \
803
full-report) test_options="-k -m=perf -m=slow";; \
807
if test -z "$$GTESTER_LOGDIR" ; then \
808
${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \
809
elif test -n "${TEST_PROGS}" ; then \
810
${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \
814
$$ignore_logdir || { \
815
echo '<?xml version="1.0"?>' > $@.xml ; \
816
echo '<report-collection>' >> $@.xml ; \
817
for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
818
sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
821
echo '</report-collection>' >> $@.xml ; \
822
rm -rf "$$GTESTER_LOGDIR"/ ; \
823
${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
825
.PHONY: test test-report perf-report full-report
826
# run make test as part of make check
733
.MAKE: install-am install-strip
735
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
736
clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
737
cscopelist-am ctags ctags-am distclean distclean-compile \
738
distclean-generic distclean-libtool distclean-tags distdir dvi \
739
dvi-am html html-am info info-am install install-am \
740
install-data install-data-am install-dvi install-dvi-am \
741
install-exec install-exec-am install-html install-html-am \
742
install-info install-info-am install-man install-pdf \
743
install-pdf-am install-ps install-ps-am install-strip \
744
installcheck installcheck-am installdirs maintainer-clean \
745
maintainer-clean-generic mostlyclean mostlyclean-compile \
746
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
747
tags tags-am uninstall uninstall-am
829
750
-include $(top_srcdir)/git.mk