Makefile 496 Bytes
Newer Older
Martin Jeřábek's avatar
Martin Jeřábek committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
PYTHON := python3
XUNIT ?= 0

TEST_FLAGS = -p`nproc`

ifeq ($(XUNIT),0)
	TEST_FLAGS +=
else
	TEST_FLAGS += --xunit-xml $@.xml
endif

all: test coverage

elaborate:
	$(PYTHON) run.py --elaborate

test:
	$(PYTHON) run.py $(TEST_FLAGS)
test_unit:
test_feature:
test_sanity:

coverage:
	lcov --capture --directory . --output-file $@
	genhtml code_coverage.info --output-directory code_html

clean:
	-rm -Rf *.gcno *.gcda vunit_out

.PHONY: all elaborate test test_unit test_feature test_sanity clean