common.mk 388 Bytes
Newer Older
1 2
# Detect name of the coverage tool (package named has changed)

3
RUN_PYTHON_COVERAGE:=$(shell command -v python3-coverage 2>/dev/null)
4 5 6 7 8
RUN_COVERAGE:=$(shell command -v coverage 2>/dev/null)

ifndef RUN_PYTHON_COVERAGE

ifndef RUN_COVERAGE
9
    $(error "Neither 'python3-coverage' nor 'coverage' are installed.")
10 11 12 13 14
else
    COVERAGE:=coverage
endif

else
15
    COVERAGE:=python3-coverage
16 17
endif