[tests] Removed ADG_DRESS_LINE_TABLE references
[adg.git] / build / Makefile.am.gtester
blobd168d53421b9b8bd8e9278a732cc1f6b223e53d4
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 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} ; \
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" || \
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             for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
34               sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
35             done ; \
36             echo >> $@.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 ; \
40           }
42 .PHONY: test test-report perf-report full-report