Skip to content

Commit fc7f32d

Browse files
jeckersbclaude
authored 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 211bef4 commit fc7f32d

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

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/integration.fmf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ execute:
5353
how: fmf
5454
test:
5555
- /tmt/tests/test-25-soft-reboot
56+
57+
/test-26-examples-build:
58+
summary: Test bootc examples build scripts
59+
discover:
60+
how: fmf
61+
test:
62+
- /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)