/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

Fix more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
DEBUGGER ?= 
 
2
BZR_OPTIONS ?= 
2
3
BZR ?= $(shell which bzr)
3
4
PYTHON ?= $(shell which python)
4
5
SETUP ?= ./setup.py
6
7
CTAGS ?= ctags
7
8
PYLINT ?= pylint
8
9
RST2HTML ?= rst2html
9
 
TESTS ?= 
 
10
TESTS ?= -s bp.git
10
11
 
11
12
all:: build 
12
13
 
22
23
        $(SETUP) clean
23
24
        rm -f *.so
24
25
 
25
 
TMP_PLUGINS_DIR = $(shell pwd)/.plugins
26
 
 
27
 
$(TMP_PLUGINS_DIR):
28
 
        mkdir -p $@
29
 
 
30
 
$(TMP_PLUGINS_DIR)/git: $(TMP_PLUGINS_DIR)
31
 
        ln -sf .. $@
32
 
 
33
 
check:: build-inplace $(TMP_PLUGINS_DIR)/git
34
 
        BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(DEBUGGER) $(PYTHON) $(PYTHON_OPTIONS) $(BZR) selftest $(TEST_OPTIONS) --starting-with=bzrlib.plugins.git $(TESTS)
 
26
check:: build-inplace 
 
27
        BZR_PLUGINS_AT=git@$(shell pwd) $(DEBUGGER) $(PYTHON) $(PYTHON_OPTIONS) $(BZR) $(BZR_OPTIONS) selftest $(TEST_OPTIONS) $(TESTS)
 
28
 
 
29
check-all::
 
30
        $(MAKE) check TESTS="^bzrlib.plugins.git. Git"
35
31
 
36
32
check-verbose::
37
33
        $(MAKE) check TEST_OPTIONS=-v
43
39
        $(MAKE) check TEST_OPTIONS="--random=now --verbose --one"
44
40
 
45
41
show-plugins::
46
 
        BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(BZR) plugins
 
42
        BZR_PLUGINS_AT=git@$(shell pwd) $(BZR) plugins -v
47
43
 
48
44
lint::
49
45
        $(PYLINT) -f parseable *.py */*.py
52
48
        $(CTAGS) -R .
53
49
 
54
50
ctags:: tags
 
51
 
 
52
coverage::
 
53
        $(MAKE) check BZR_OPTIONS="--coverage coverage"