mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-18 09:53:11 +00:00

Checking for patterns in rtla output with grep was added to test rtla actions. Add grep checks also for base tests where applicable. Also fix trace event histogram trigger check to use the correct syntax for the command-line option so that the test passes with the grep check. Cc: John Kacur <jkacur@redhat.com> Cc: Luis Goncalves <lgoncalv@redhat.com> Cc: Chang Yin <cyin@redhat.com> Cc: Costa Shulyupin <costa.shul@redhat.com> Link: https://lore.kernel.org/20250725133817.59237-2-tglozar@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
26 lines
796 B
Bash
26 lines
796 B
Bash
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
source tests/engine.sh
|
|
test_begin
|
|
|
|
set_timeout 2m
|
|
|
|
check "verify help page" \
|
|
"osnoise --help" 0 "osnoise version"
|
|
check "verify the --priority/-P param" \
|
|
"osnoise top -P F:1 -c 0 -r 900000 -d 10s -q"
|
|
check "verify the --stop/-s param" \
|
|
"osnoise top -s 30 -T 1" 2 "osnoise hit stop tracing"
|
|
check "verify the --trace param" \
|
|
"osnoise hist -s 30 -T 1 -t" 2 "Saving trace to osnoise_trace.txt"
|
|
check "verify the --entries/-E param" \
|
|
"osnoise hist -P F:1 -c 0 -r 900000 -d 10s -b 10 -E 25"
|
|
|
|
# Test setting default period by putting an absurdly high period
|
|
# and stopping on threshold.
|
|
# If default period is not set, this will time out.
|
|
check_with_osnoise_options "apply default period" \
|
|
"osnoise hist -s 1" 2 period_us=600000000
|
|
|
|
test_end
|