Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633427

[PATCH v1] selftests: Make test_harness.h more generally available

From Mickaël Salaün <mic@digikod.net>
Newsgroups linux.kernel
Subject [PATCH v1] selftests: Make test_harness.h more generally available
Date 2017-04-30 14:30 +0200
Message-ID <tBW9b-3ah-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The seccomp/test_harness.h file contains useful helpers to build tests.
Moving it to the selftest directory should benefit to other test
components.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Kees Cook <keescook@chromium.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Will Drewry <wad@chromium.org>
Link: https://lkml.kernel.org/r/CAGXu5j+8CVz8vL51DRYXqOY=xc3zuKFf=PTENe88XYHzFYidUQ@mail.gmail.com
---
 tools/testing/selftests/seccomp/seccomp_bpf.c        | 2 +-
 tools/testing/selftests/{seccomp => }/test_harness.h | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename tools/testing/selftests/{seccomp => }/test_harness.h (100%)

diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c
index 03f1fa495d74..d7095ff58e72 100644
--- a/tools/testing/selftests/seccomp/seccomp_bpf.c
+++ b/tools/testing/selftests/seccomp/seccomp_bpf.c
@@ -37,7 +37,7 @@
 #include <unistd.h>
 #include <sys/syscall.h>
 
-#include "test_harness.h"
+#include "../test_harness.h"
 
 #ifndef PR_SET_PTRACER
 # define PR_SET_PTRACER 0x59616d61
diff --git a/tools/testing/selftests/seccomp/test_harness.h b/tools/testing/selftests/test_harness.h
similarity index 100%
rename from tools/testing/selftests/seccomp/test_harness.h
rename to tools/testing/selftests/test_harness.h
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v1] selftests: Make test_harness.h more generally available Mickaël Salaün <mic@digikod.net> - 2017-04-30 14:30 +0200
  Re: [PATCH v1] selftests: Make test_harness.h more generally available Kees Cook <keescook@chromium.org> - 2017-04-30 19:40 +0200
    Re: [PATCH v1] selftests: Make test_harness.h more generally available Will Drewry <wad@chromium.org> - 2017-04-30 20:30 +0200
      Re: [PATCH v1] selftests: Make test_harness.h more generally  available Mickaël Salaün <mic@digikod.net> - 2017-05-01 17:50 +0200
      Re: [PATCH v1] selftests: Make test_harness.h more generally  available Shuah Khan <shuah@kernel.org> - 2017-05-01 21:30 +0200

csiph-web