tests: add fwupdmgr.bats

This commit is contained in:
Alexandre Pujol 2024-11-20 00:12:31 +00:00
parent edad2e1984
commit 685105a662
Failed to generate hash of commit

23
tests/bats/fwupdmgr.bats Normal file
View file

@ -0,0 +1,23 @@
#!/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 "fwupdmgr: Display all devices detected by fwupd" {
fwupdmgr get-devices
}
@test "fwupdmgr: Download the latest firmware metadata from LVFS" {
fwupdmgr refresh
}
@test "fwupdmgr: List the updates available for devices on your system" {
fwupdmgr get-updates
}
@test "fwupdmgr: Install firmware updates" {
fwupdmgr update
}