diff options
author | Paul Moore <pmoore@redhat.com> | 2013-04-22 15:58:54 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-04-22 15:58:54 -0400 |
commit | e9466c0aa50293418d7244b0b57f586761e4c14f (patch) | |
tree | f78e49f808f7be0bf48dec04dc567d7fbe8d3fb7 | |
parent | 208772e98813a589cf0326e00d10ab48517858dc (diff) | |
download | libseccomp-e9466c0aa50293418d7244b0b57f586761e4c14f.tar.gz |
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 <pmoore@redhat.com>
-rw-r--r-- | tests/.gitignore | 2 | ||||
-rw-r--r-- | tests/Makefile | 7 |
2 files changed, 8 insertions, 1 deletions
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) |