xref: /openbmc/linux/tools/testing/selftests/ftrace/test.d/template (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
16e68e6c5SMasami Hiramatsu#!/bin/sh
21d956785SThomas Gleixner# SPDX-License-Identifier: GPL-2.0
36e68e6c5SMasami Hiramatsu# description: %HERE DESCRIBE WHAT THIS DOES%
4*1b8eec51SMasami Hiramatsu# requires: %HERE LIST THE REQUIRED FILES, TRACERS OR README-STRINGS%
5305c8388SMasami Hiramatsu# The required tracer needs :tracer suffix, e.g. function:tracer
6*1b8eec51SMasami Hiramatsu# The required README string needs :README suffix, e.g. "x8/16/32/64":README
7*1b8eec51SMasami Hiramatsu# and the README string is treated as a fixed-string instead of regexp pattern.
86e68e6c5SMasami Hiramatsu# you have to add ".tc" extention for your testcase file
9915de2adSMasami Hiramatsu# Note that all tests are run with "errexit" option.
10915de2adSMasami Hiramatsu
116e68e6c5SMasami Hiramatsuexit 0 # Return 0 if the test is passed, otherwise return !0
1242534b1fSMasami Hiramatsu# Or you can call exit_pass for passed test, and exit_fail for failed test.
13915de2adSMasami Hiramatsu# If the test could not run because of lack of feature, call exit_unsupported
14915de2adSMasami Hiramatsu# If the test returned unclear results, call exit_unresolved
15915de2adSMasami Hiramatsu# If the test is a dummy, or a placeholder, call exit_untested
16