Makefile 417 Bytes
Newer Older
Martin Jeřábek's avatar
Martin Jeřábek committed
1 2 3 4 5 6 7 8
PYTHON := python3
XUNIT ?= 0

TEST_FLAGS = -p`nproc`

all: test coverage

elaborate:
9
	$(PYTHON) run.py test tests_fast.yml -- --elaborate $(TEST_FLAGS)
Martin Jeřábek's avatar
Martin Jeřábek committed
10

11 12
test_%: tests_%.yml FORCE
	$(PYTHON) run.py test $< -- $(TEST_FLAGS)
Martin Jeřábek's avatar
Martin Jeřábek committed
13 14

coverage:
15
	lcov --capture --directory build --output-file code_coverage.info
Martin Jeřábek's avatar
Martin Jeřábek committed
16 17 18
	genhtml code_coverage.info --output-directory code_html

clean:
19
	-rm -Rf build
Martin Jeřábek's avatar
Martin Jeřábek committed
20

21 22 23
FORCE:

.PHONY: all elaborate clean