tests: add more integration tests for core tools.

This commit is contained in:
Alexandre Pujol 2024-11-12 21:42:31 +00:00 committed by nobody43
parent 245e26f110
commit 9aca44908c
19 changed files with 484 additions and 9 deletions

29
tests/bats/upower.bats Normal file
View 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
}