28
29
PLUGIN_TARGET=plugin-release
31
BRZ_PLUGIN_PATH=-site:-user
31
33
# Shorter replacement for $(sort $(wildcard <arg>)) as $(call sw,<arg>)
32
34
sw = $(sort $(wildcard $(1)))
43
45
check: docs check-nodocs
45
check-nodocs: extensions
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
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
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
60
79
# Run Python style checker (apt-get install pyflakes)