Skip to content

Commit d31bfc3

Browse files
committed
build-sys: add utility target to run tests
1 parent c1c5529 commit d31bfc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ SPHINX_BUILD = sphinx-build
44
ETAGS = etags
55
INCLUDE_DIR = /usr/include/
66
VERSION := $(shell $(PYTHON) setup.py --version)
7+
TESTFLAGS = -v
78

89
define buildscript
910
import sys,sysconfig
@@ -34,6 +35,9 @@ sphinx-%: build
3435
PYTHONPATH=$(builddir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) docs build/docs
3536
@echo Output has been generated in build/docs
3637

38+
check: build
39+
$(PYTHON) -m py.test $(builddir) docs $(TESTFLAGS)
40+
3741
TAGS: $(shell git ls-files systemd/*.[ch])
3842
$(ETAGS) $+
3943

0 commit comments

Comments
 (0)