From d31bfc3ba6f3ec5b6d9af355e9b0dde6bd1ffa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 27 Oct 2015 00:12:00 -0400 Subject: build-sys: add utility target to run tests --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8c3b902..e17e1bd 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ SPHINX_BUILD = sphinx-build ETAGS = etags INCLUDE_DIR = /usr/include/ VERSION := $(shell $(PYTHON) setup.py --version) +TESTFLAGS = -v define buildscript import sys,sysconfig @@ -34,6 +35,9 @@ sphinx-%: build PYTHONPATH=$(builddir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) docs build/docs @echo Output has been generated in build/docs +check: build + $(PYTHON) -m py.test $(builddir) docs $(TESTFLAGS) + TAGS: $(shell git ls-files systemd/*.[ch]) $(ETAGS) $+ -- cgit v1.2.1