diff options
author | Paul Moore <pmoore@redhat.com> | 2013-09-09 14:57:51 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-10-18 11:30:08 -0400 |
commit | c2355b09b281111f6197002ade193fd760c3b0a9 (patch) | |
tree | 1eeb3e5345d7f6562e4f84770f635403527d0fc6 | |
parent | cad1fefb4689713b18bd29f82c8825150070ca1e (diff) | |
download | libseccomp-c2355b09b281111f6197002ade193fd760c3b0a9.tar.gz |
build: enable "make check" to run the regression tests
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | tests/Makefile | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -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 |