rtla/tests: Test setting default options
authorTomas Glozar <tglozar@redhat.com>
Thu, 20 Mar 2025 09:25:00 +0000 (10:25 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 26 Mar 2025 14:36:39 +0000 (10:36 -0400)
commita86150f310d7c986bb27c3633520336b67388afe
tree85229453a154963da908fe7d6f0f1437bdd6d108
parent6c6182728a9bb02b0a973775869c9a0ceddd9658
rtla/tests: Test setting default options

Add function to test engine to test with pre-set osnoise options, and
use it to test whether osnoise period (as an example) is set correctly.

The test works by pre-setting a high period of 10 minutes and stop on
threshold. Thus, it is easy to check whether rtla is properly resetting
the period to default: if it is, the test will complete on time, since
the first sample will overflow the threshold. If not, it will time out.

Cc: Luis Goncalves <lgoncalv@redhat.com>
Link: https://lore.kernel.org/20250320092500.101385-7-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Reviewed-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/tests/engine.sh
tools/tracing/rtla/tests/osnoise.t