From c4b42f1ecebacd5a3e1de6ab99a0818878960882 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 20 Nov 2024 00:12:31 +0000 Subject: [PATCH] tests: add fwupdmgr.bats --- tests/bats/fwupdmgr.bats | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/bats/fwupdmgr.bats diff --git a/tests/bats/fwupdmgr.bats b/tests/bats/fwupdmgr.bats new file mode 100644 index 00000000..2eb8282c --- /dev/null +++ b/tests/bats/fwupdmgr.bats @@ -0,0 +1,23 @@ +#!/usr/bin/env bats +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# 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 +} +