~didrocks/libunity/bootstrap

« back to all changes in this revision

Viewing changes to Makefile.decl

  • Committer: Tarmac
  • Author(s): Michal Hruby
  • Date: 2012-10-09 11:26:28 UTC
  • mfrom: (188.1.3 libunity)
  • Revision ID: tarmac-20121009112628-lu84udqr5ckukzom
Fix AsyncPreview.preview_ready not being usable from pygi. Fixes: https://bugs.launchpad.net/bugs/1062331. Approved by Pawel Stolowski.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# This file is copied almost verbatim from the GLib-2.0 distribution
4
4
#
5
5
 
6
 
GTESTER = gtester                       # for non-GLIB packages
7
 
GTESTER_REPORT = $(top_builddir)/test/gtester-report    # for the GLIB package
 
6
GTESTER = gtester
 
7
GTESTER_REPORT = gtester-report
8
8
 
9
9
# initialize variables for unconditional += appending
10
10
EXTRA_DIST =
13
13
### testing rules
14
14
 
15
15
# test: run all tests in cwd and subdirs
16
 
test:   ${TEST_PROGS}
17
 
        @test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS}
18
 
        @ for subdir in $(SUBDIRS) ; do \
 
16
test: test-nonrecursive
 
17
        @ for subdir in $(SUBDIRS) . ; do \
19
18
            test "$$subdir" = "." -o "$$subdir" = "po" || \
20
19
            ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
21
20
          done
 
21
 
 
22
# test-nonrecursive: run tests only in cwd
 
23
test-nonrecursive: ${TEST_PROGS}
 
24
        @test -z "${TEST_PROGS}" || G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) ${GTESTER} --verbose ${TEST_PROGS}
 
25
 
22
26
# test-report: run tests in subdirs and generate report
23
27
# perf-report: run tests in subdirs with -m perf and generate report
24
28
# full-report: like test-report: with -m perf and -m slow
40
44
            GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \
41
45
            ignore_logdir=false ; \
42
46
          fi ; \
43
 
          for subdir in $(SUBDIRS) ; do \
 
47
          REVISION=$(VERSION) ; \
 
48
          for subdir in $(SUBDIRS) . ; do \
44
49
            test "$$subdir" = "." -o "$$subdir" = "po" || \
45
50
            ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
46
51
          done ; \
47
52
          $$ignore_logdir || { \
48
 
            echo '<?xml version="1.0"?>' > $@.xml ; \
49
 
            echo '<report-collection>'  >> $@.xml ; \
 
53
            echo '<?xml version="1.0"?>'              > $@.xml ; \
 
54
            echo '<report-collection>'               >> $@.xml ; \
 
55
            echo '<info>'                            >> $@.xml ; \
 
56
            echo '  <package>$(PACKAGE)</package>'   >> $@.xml ; \
 
57
            echo '  <version>$(VERSION)</version>'   >> $@.xml ; \
 
58
            echo "  <revision>$$REVISION</revision>" >> $@.xml ; \
 
59
            echo '</info>'                           >> $@.xml ; \
50
60
            for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
51
61
              sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
52
62
            done ; \
55
65
            rm -rf "$$GTESTER_LOGDIR"/ ; \
56
66
            ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
57
67
          }
58
 
.PHONY: test test-report perf-report full-report
 
68
.PHONY: test test-report perf-report full-report test-nonrecursive
59
69
 
60
 
# Run tests as part of make check
 
70
# run tests in cwd as part of make check
61
71
if ENABLE_HEADLESS_TESTS
62
72
check-local: test-headless
63
73
else
64
 
check-local: test
 
74
check-local: test-nonrecursive
65
75
endif
66