From e9466c0aa50293418d7244b0b57f586761e4c14f Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Mon, 22 Apr 2013 15:58:54 -0400 Subject: tests: add a placeholder for 00-test During the course of development there are often times when we want to temporarily add a test; to help with this problem, this patch adds a placeholder for test "00-test" which can be used as a temporary test case. In order to use this, simply copy your temporary test case into the file tests/00-test.c and do the following from the top-level build directory: # make clean all # make -C tests 00-test Signed-off-by: Paul Moore --- tests/.gitignore | 2 ++ tests/Makefile | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/.gitignore b/tests/.gitignore index a9f7e2f..b393021 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,6 +1,8 @@ *.bpf *.pfc util.pyc +00-test.c +00-test 01-sim-allow 02-sim-basic 03-sim-basic_chains diff --git a/tests/Makefile b/tests/Makefile index 3d28827..adb5820 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -36,6 +36,8 @@ OBJS = util.o LDFLAGS := ../src/libseccomp.a $(OBJS) +TEST_PRIVATE = 00-test + TESTS = 01-sim-allow \ 02-sim-basic \ 03-sim-basic_chains \ @@ -83,5 +85,8 @@ $(DEPS_TESTS): $(TESTS): $(COMPILE_EXEC) +$(TEST_PRIVATE): 00-test.c $(OBJS) ../src/libseccomp.a + $(COMPILE_EXEC) + clean: - $(RM) $(DEPS_TESTS) $(DEPS_OBJS) $(TESTS) $(OBJS) + $(RM) $(DEPS_TESTS) $(DEPS_OBJS) $(TESTS) $(TEST_PRIVATE) $(OBJS) -- cgit v1.2.1