xref: /OK3568_Linux_fs/kernel/tools/testing/selftests/ftrace/test.d/template (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#!/bin/sh
2*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
3*4882a593Smuzhiyun# description: %HERE DESCRIBE WHAT THIS DOES%
4*4882a593Smuzhiyun# requires: %HERE LIST THE REQUIRED FILES, TRACERS OR README-STRINGS%
5*4882a593Smuzhiyun# The required tracer needs :tracer suffix, e.g. function:tracer
6*4882a593Smuzhiyun# The required README string needs :README suffix, e.g. "x8/16/32/64":README
7*4882a593Smuzhiyun# and the README string is treated as a fixed-string instead of regexp pattern.
8*4882a593Smuzhiyun# you have to add ".tc" extention for your testcase file
9*4882a593Smuzhiyun# Note that all tests are run with "errexit" option.
10*4882a593Smuzhiyun
11*4882a593Smuzhiyunexit 0 # Return 0 if the test is passed, otherwise return !0
12*4882a593Smuzhiyun# Or you can call exit_pass for passed test, and exit_fail for failed test.
13*4882a593Smuzhiyun# If the test could not run because of lack of feature, call exit_unsupported
14*4882a593Smuzhiyun# If the test returned unclear results, call exit_unresolved
15*4882a593Smuzhiyun# If the test is a dummy, or a placeholder, call exit_untested
16