/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jelmer Vernooij
  • Date: 2017-08-26 15:29:35 UTC
  • mfrom: (6754.4.5 check)
  • Revision ID: jelmer@jelmer.uk-20170826152935-k0koufykxfm1x3r8
Merge lp:~jelmer/brz/check.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
### Core Stuff ###
22
22
 
23
 
PYTHON=python
 
23
PYTHON?=python
 
24
PYTHON3?=python3
24
25
PYTHON24=python24
25
26
PYTHON25=python25
26
27
PYTHON26=python26
27
28
BRZ_TARGET=release
28
29
PLUGIN_TARGET=plugin-release
29
30
PYTHON_BUILDFLAGS=
 
31
BRZ_PLUGIN_PATH=-site:-user
30
32
 
31
33
# Shorter replacement for $(sort $(wildcard <arg>)) as $(call sw,<arg>)
32
34
sw = $(sort $(wildcard $(1)))
42
44
 
43
45
check: docs check-nodocs
44
46
 
45
 
check-nodocs: extensions
46
 
        set -e
47
 
        # Generate a stream for PQM to watch.
48
 
        -$(RM) -f selftest.log
49
 
        echo `date` ": selftest starts" 1>&2
50
 
        $(PYTHON) -Werror -Wignore::ImportWarning -O ./brz selftest -Oselftest.timeout=120 \
 
47
check-nodocs: check-nodocs2 check-nodocs3
 
48
 
 
49
check-nodocs3:
 
50
        # Generate a stream for PQM to watch.
 
51
        -$(RM) -f selftest.log
 
52
        echo `date` ": selftest starts" 1>&2
 
53
        BRZ_PLUGIN_PATH=$(BRZ_PLUGIN_PATH) $(PYTHON3) -Werror -Wignore::ImportWarning -O \
 
54
          ./brz selftest -Oselftest.timeout=120 --load-list=python3.passing \
 
55
          --subunit $(tests) | tee selftest.log
 
56
        echo `date` ": selftest ends" 1>&2
 
57
        # An empty log file should catch errors in the $(PYTHON3)
 
58
        # command above (the '|' swallow any errors since 'make'
 
59
        # sees the 'tee' exit code for the whole line
 
60
        if [ ! -s selftest.log ] ; then exit 1 ; fi
 
61
        # Check that there were no errors reported.
 
62
        subunit-1to2 < selftest.log | subunit-stats
 
63
 
 
64
check-nodocs2: extensions
 
65
        # Generate a stream for PQM to watch.
 
66
        -$(RM) -f selftest.log
 
67
        echo `date` ": selftest starts" 1>&2
 
68
        BRZ_PLUGIN_PATH=$(BRZ_PLUGIN_PATH) $(PYTHON) -Werror -Wignore::ImportWarning -O \
 
69
          ./brz selftest -Oselftest.timeout=120 \
51
70
          --subunit $(tests) | tee selftest.log
52
71
        echo `date` ": selftest ends" 1>&2
53
72
        # An empty log file should catch errors in the $(PYTHON)
55
74
        # sees the 'tee' exit code for the whole line
56
75
        if [ ! -s selftest.log ] ; then exit 1 ; fi
57
76
        # Check that there were no errors reported.
58
 
        subunit-stats < selftest.log
 
77
        subunit-1to2 < selftest.log | subunit-stats
59
78
 
60
79
# Run Python style checker (apt-get install pyflakes)
61
80
#