adg: added adg_gtk_area_reset()
[adg.git] / build / Makefile.am.gtester
blobde89ddfac71bd04bebc984628a05750a184cc2de
1 TEST_PROGS=
4 test: check
5 check-local: $(TEST_PROGS)
6         @test -z "${TEST_PROGS}" || ${GTESTER} --verbose $(TEST_PROGS)
8 test-report perf-report full-report:    ${TEST_PROGS}
9         @test -z "${TEST_PROGS}" || { \
10           case $@ in \
11           test-report) test_options="-k";; \
12           perf-report) test_options="-k -m=perf";; \
13           full-report) test_options="-k -m=perf -m=slow";; \
14           esac ; \
15           if test -z "$$GTESTER_LOGDIR" ; then  \
16             ${GTESTER} --verbose $$test_options -o $@.xml ${TEST_PROGS} ; \
17           elif test -n "${TEST_PROGS}" ; then \
18             ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \
19           fi ; \
20         }
21         @ ignore_logdir=true ; \
22           if test -z "$$GTESTER_LOGDIR" ; then \
23             GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \
24             ignore_logdir=false ; \
25           fi ; \
26           for subdir in $(SUBDIRS) . ; do \
27             test "$$subdir" = "." -o "$$subdir" = "po" -o "$$subdir" = "po-properties" || \
28             ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
29           done ; \
30           $$ignore_logdir || { \
31             echo '<?xml version="1.0"?>' > $@.xml ; \
32             echo '<report-collection>' >> $@.xml ; \
33             echo '<info>' >> $@.xml ; \
34             echo '  <package>@PACKAGE_NAME@</package>' >> $@.xml ; \
35             echo '  <version>@VERSION@</version>' >> $@.xml ; \
36             echo '</info>' >> $@.xml ; \
37             for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
38               ${SED} '1,1s/^<?xml[^>]*>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
39             done ; \
40             echo '</report-collection>' >> $@.xml ; \
41             rm -rf "$$GTESTER_LOGDIR"/ ; \
42             ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
43           }
45 .PHONY: test test-report perf-report full-report