tests(integration): add more tests.

This commit is contained in:
Alexandre Pujol 2024-10-22 13:16:03 +01:00
parent d121092c56
commit 449c8d3e3a
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 105 additions and 0 deletions

28
tests/bats/lsusb.bats Normal file
View file

@ -0,0 +1,28 @@
#!/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" {
lsusb
aa_check
}
# bats test_tags=lsusb
@test "lsusb: List the USB hierarchy as a tree" {
lsusb -t
aa_check
}
# bats test_tags=lsusb
@test "lsusb: List verbose information about USB devices" {
lsusb --verbose
aa_check
}