summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--tests/Makefile5
2 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 71a2133..932fb6c 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ CONFIGS = configure.mk configure.h version_info.mk libseccomp.pc
SUBDIRS_BUILD = include src tests tools
SUBDIRS_INSTALL = include src tools doc
-.PHONY: tarball install ctags cstags clean dist-clean $(SUBDIRS_BUILD)
+.PHONY: tarball install check ctags cstags clean dist-clean $(SUBDIRS_BUILD)
all: $(SUBDIRS_BUILD)
@@ -98,6 +98,10 @@ install: $(SUBDIRS_BUILD)
$(MAKE) -C $$dir install; \
done
+check: tools tests
+ @$(ECHO_INFO) "checking in directory tests/ ..."
+ @$(MAKE) -C tests check
+
ctags:
@$(ECHO_INFO) "generating ctags for the project ..."
@ctags -R *
diff --git a/tests/Makefile b/tests/Makefile
index 1bc8d65..5fdbca7 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -71,7 +71,7 @@ DEPS_TESTS = $(TESTS:%=%.d)
# targets
#
-.PHONY: clean
+.PHONY: check clean
all: $(TESTS) $(OBJS)
@@ -88,5 +88,8 @@ $(TESTS):
$(TEST_PRIVATE): 00-test.c $(OBJS) ../src/libseccomp.a
$(COMPILE_EXEC)
+check: $(TESTS)
+ ./regression
+
clean:
$(RM) $(DEPS_TESTS) $(DEPS_OBJS) $(TESTS) $(TEST_PRIVATE) $(OBJS) *.pyc