3
BRZ ?= $(shell which brz)
4
PYTHON ?= $(shell which python)
10
TESTS ?= ^breezy.plugins.git. Git breezy.tests.test_info.TestInfo.test_describe_tree_format breezy.tests.test_errors.TestErrors.test_no_arg_named_message breezy.tests.test_info.TestInfo.test_describe_checkout_format
11
SUBUNIT_FILTER ?= subunit-filter --fixup-expected-failures=xfail --success --xfail
12
SUBUNIT_FORMATTER = subunit2pyunit
29
BRZ_PLUGINS_AT=git@$(shell pwd) BRZ_PLUGIN_PATH=-site:-user $(DEBUGGER) $(PYTHON) $(PYTHON_OPTIONS) $(BRZ) $(BRZ_OPTIONS) selftest --subunit2 $(TEST_OPTIONS) $(TESTS) | $(SUBUNIT_FILTER) | $(SUBUNIT_FORMATTER)
32
$(MAKE) check SUBUNIT_FILTER="subunit-filter -F" SUBUNIT_FORMATTER=subunit-ls | grep -e "^breezy\\." | sort
35
$(MAKE) -s list-failing-tests > xfail
38
$(MAKE) check TESTS="^breezy.plugins.git. Git" SUBUNIT_FILTER=cat
41
$(MAKE) check TEST_OPTIONS=-v
44
$(MAKE) check TEST_OPTIONS=--one
47
$(MAKE) check TEST_OPTIONS="--random=now --verbose --one"
50
BRZ_PLUGINS_AT=git@$(shell pwd) $(BRZ) plugins -v
53
$(PYLINT) -f parseable *.py */*.py
61
$(MAKE) check BRZ_OPTIONS="--coverage coverage"
63
.PHONY: update-pot po/brz-git.pot
64
update-pot: po/brz-git.pot
66
TRANSLATABLE_PYFILES:=$(shell find . -name '*.py' \
70
po/brz-git.pot: $(PYFILES) $(DOCFILES)
71
BRZ_PLUGINS_AT=git@$(shell pwd) brz export-pot \
72
--plugin=git > po/brz-git.pot
73
echo $(TRANSLATABLE_PYFILES) | xargs \
74
xgettext --package-name "brz-git" \
75
--msgid-bugs-address "<bazaar@lists.canonical.com>" \
76
--copyright-holder "Canonical Ltd <canonical-bazaar@lists.canonical.com>" \
77
--from-code ISO-8859-1 --sort-by-file --join --add-comments=i18n: \
78
-d brz-git -p po -o brz-git.pot