tests: add more integration tests for core tools.
This commit is contained in:
parent
245e26f110
commit
9aca44908c
19 changed files with 484 additions and 9 deletions
29
tests/bats/upower.bats
Normal file
29
tests/bats/upower.bats
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/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=upower
|
||||
@test "upower: Display power and battery information" {
|
||||
upower --dump
|
||||
aa_check
|
||||
}
|
||||
|
||||
# bats test_tags=upower
|
||||
@test "upower: List all power devices" {
|
||||
upower --enumerate
|
||||
aa_check
|
||||
}
|
||||
|
||||
# bats test_tags=upower
|
||||
@test "upower: Display version" {
|
||||
upower --version
|
||||
aa_check
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue