Skip to content

Commit 92cab58

Browse files
jeckersbclaude
andcommitted
tmt: Add test for bootc examples build scripts
Add test-26-examples-build to validate that the bootc-bls and bootc-uki example build scripts work correctly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> Signed-off-by: John Eckersberg <[email protected]>
1 parent 2cffccb commit 92cab58

File tree

7 files changed

+26
-9
lines changed

7 files changed

+26
-9
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
test_os: [fedora-41, fedora-42, fedora-43, centos-9]
55-
tmt_plan: [test-01-readonly, test-20-local-upgrade, test-21-logically-bound-switch, test-22-logically-bound-install, test-23-install-outside-container, test-24-local-upgrade-reboot]
55+
tmt_plan: [test-01-readonly, test-20-local-upgrade, test-21-logically-bound-switch, test-22-logically-bound-install, test-23-install-outside-container, test-24-local-upgrade-reboot, test-26-examples-build]
5656

5757
runs-on: ubuntu-latest
5858

examples/bootc-bls/extra/etc/dracut.conf.d/no-xattr.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# we want to make sure the virtio disk drivers get included
2-
hostonly=no
3-
41
# we need to force these in via the initramfs because we don't have modules in
52
# the base image
63
force_drivers+=" virtio_net vfat "

examples/bootc-uki/extra/etc/dracut.conf.d/no-xattr.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# we want to make sure the virtio disk drivers get included
2-
hostonly=no
3-
41
# we need to force these in via the initramfs because we don't have modules in
52
# the base image
63
force_drivers+=" virtio_net vfat "

tmt/plans/bootc-integration.fmf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ execute:
4444
how: fmf
4545
test:
4646
- /tmt/tests/test-24-local-upgrade-reboot
47+
48+
/test-26-examples-build:
49+
summary: Test bootc examples build scripts
50+
discover:
51+
how: fmf
52+
test:
53+
- /tmt/tests/test-26-examples-build
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
summary: Test bootc examples build scripts
2+
test: |
3+
#!/bin/bash
4+
set -eux
5+
6+
# Test bootc-bls example
7+
echo "Testing bootc-bls example..."
8+
cd examples/bootc-bls
9+
./build
10+
11+
# Test bootc-uki example
12+
echo "Testing bootc-uki example..."
13+
cd ../bootc-uki
14+
./build.base
15+
./build.final
16+
17+
echo "All example builds completed successfully"
18+
duration: 45m

0 commit comments

Comments
 (0)