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}" || { \
11 test-report) test_options="-k";; \
12 perf-report) test_options="-k -m=perf";; \
13 full-report) test_options="-k -m=perf -m=slow";; \
15 if test -z "$$GTESTER_LOGDIR" ; then \
16 ${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \
17 elif test -n "${TEST_PROGS}" ; then \
18 ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \
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 ; \
26 for subdir in $(SUBDIRS) . ; do \
27 test "$$subdir" = "." -o "$$subdir" = "po" || \
28 ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
30 $$ignore_logdir || { \
31 echo '<?xml version="1.0"?>' > $@.xml ; \
32 echo '<report-collection>' >> $@.xml ; \
33 for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
34 sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
37 echo '</report-collection>' >> $@.xml ; \
38 rm -rf "$$GTESTER_LOGDIR"/ ; \
39 ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
42 .PHONY: test test-report perf-report full-report