apparmor.d/tests/bats/lsusb.bats

19 lines
414 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
@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
}
@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
}
@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
}