aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/ftrace/test.d/template
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-06-03 11:40:28 +0900
committerShuah Khan <skhan@linuxfoundation.org>2020-06-16 09:19:08 -0600
commitfa33e6236f5fa425a3ccf8925010d51fae9f0929 (patch)
tree4376287e8f8f32f18b071db2e7463aef2929ab85 /tools/testing/selftests/ftrace/test.d/template
parentselftests/ftrace: Return unsupported for the unconfigured features (diff)
downloadwireguard-linux-fa33e6236f5fa425a3ccf8925010d51fae9f0929.tar.xz
wireguard-linux-fa33e6236f5fa425a3ccf8925010d51fae9f0929.zip
selftests/ftrace: Add "requires:" list support
Introduce "requires:" list to check required ftrace interface for each test. This will simplify the interface checking code and unify the error message. Another good point is, it can skip the ftrace initializing. Note that this requires list must be written as a shell comment. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/ftrace/test.d/template1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/template b/tools/testing/selftests/ftrace/test.d/template
index e1a5d14c4eaf..611423c4e75f 100644
--- a/tools/testing/selftests/ftrace/test.d/template
+++ b/tools/testing/selftests/ftrace/test.d/template
@@ -1,6 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: %HERE DESCRIBE WHAT THIS DOES%
+# requires: %HERE LIST THE REQUIRED FILES%
# you have to add ".tc" extention for your testcase file
# Note that all tests are run with "errexit" option.