Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3source tests/engine.sh
4test_begin
5
6set_timeout 2m
7
8check "verify help page" \
9 "osnoise --help"
10check "verify the --priority/-P param" \
11 "osnoise top -P F:1 -c 0 -r 900000 -d 1M -q"
12check "verify the --stop/-s param" \
13 "osnoise top -s 30 -T 1 -t" 2
14check "verify the --trace param" \
15 "osnoise hist -s 30 -T 1 -t" 2
16check "verify the --entries/-E param" \
17 "osnoise hist -P F:1 -c 0 -r 900000 -d 1M -b 10 -E 25"
18
19# Test setting default period by putting an absurdly high period
20# and stopping on threshold.
21# If default period is not set, this will time out.
22check_with_osnoise_options "apply default period" \
23 "osnoise hist -s 1" 2 period_us=600000000
24
25test_end