-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16884 from richiejp/bcc2
extra_tests_kernel: Add BCC tools test
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2023 SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
# Package: bpftrace | ||
# Summary: Compile and attach eBPF probes with BCC tools | ||
# Maintainer: kernel-qa@suse.de | ||
|
||
use Mojo::Base qw(opensusebasetest); | ||
use testapi; | ||
use utils 'zypper_call'; | ||
use version_utils 'is_sle'; | ||
use serial_terminal 'select_serial_terminal'; | ||
|
||
sub run { | ||
select_serial_terminal; | ||
|
||
zypper_call('in bcc-tools'); | ||
|
||
my $tools_dir = '/usr/share/bcc/tools'; | ||
|
||
assert_script_run("$tools_dir/btrfsdist 5 2"); | ||
assert_script_run("$tools_dir/btrfsslower -d 10"); | ||
assert_script_run("$tools_dir/filetop -a 5 10"); | ||
} | ||
|
||
1; | ||
|
||
=head1 Discussion | ||
Smoke test for a small selection of BCC tools. |