Skip to content

Commit b18b56b

Browse files
committed
Add new test to bootupd
1 parent 3d1b4c5 commit b18b56b

3 files changed

Lines changed: 39 additions & 2 deletions

File tree

.github/workflows/tmt-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
If provided, only tests matching this filter will be run, otherwise all tests will be run.
1616
required: false
1717
default: ''
18+
use_built_from_src:
19+
description: 'Built bootupd from source instead of install distro package'
20+
required: false
21+
default: 'true'
1822

1923
jobs:
2024
tmt-tests:

gating.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--- !Policy
2+
product_versions:
3+
- rhel-10
4+
decision_context: osci_compose_gate
5+
rules:
6+
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
7+
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.gating}

tests/core/core.fmf

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
1-
summary: check bootupd package installation
1+
summary: check bootupd package installation and basic functionality
22
tag:
33
- smoke
44
test: |
55
set -x -e -o pipefail
6-
rpm -q bootupd
6+
7+
# Check if bootupctl is available
8+
if ! command -v bootupctl &> /dev/null; then
9+
echo "bootupctl command not found"
10+
exit 1
11+
fi
12+
13+
# Get architecture
14+
arch="$(uname --machine)"
15+
16+
# Run bootupctl status and check output
17+
output=$(bootupctl status | tr -d '\r')
18+
19+
if [[ "${arch}" == "x86_64" ]]; then
20+
expected_components='Available components: BIOS EFI'
21+
else
22+
# Assume aarch64 for now
23+
expected_components='Available components: EFI'
24+
fi
25+
26+
if [ "${expected_components}" != "${output}" ]; then
27+
echo "Expected: ${expected_components}"
28+
echo "Got: ${output}"
29+
exit 1
30+
fi
31+
32+
echo "bootupd package and bootupctl status test passed"

0 commit comments

Comments
 (0)