apparmor.d/tests/bats/lsusb.bats

29 lines
553 B
Text
Raw Normal View History

2024-10-22 14:16:03 +02:00
#!/usr/bin/env bats
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
load common
setup_file() {
aa_setup
}
# bats test_tags=lsusb
@test "lsusb: List all the USB devices available" {
2024-10-22 14:38:42 +02:00
lsusb || true
2024-10-22 14:16:03 +02:00
aa_check
}
# bats test_tags=lsusb
@test "lsusb: List the USB hierarchy as a tree" {
2024-10-22 14:38:42 +02:00
lsusb -t || true
2024-10-22 14:16:03 +02:00
aa_check
}
# bats test_tags=lsusb
@test "lsusb: List verbose information about USB devices" {
2024-10-22 14:38:42 +02:00
lsusb --verbose || true
2024-10-22 14:16:03 +02:00
aa_check
}