test: add rpm stage test for boot_root
Add a stage build test for the boot_root option of the org.osbuild.rpm stage. The test defined two manifests that both install the kernel-uki-virt kernel but differ in the value of the boot_root option. The diff shows the effect of the value on the install location of the kernel.
This commit is contained in:
parent
305a54f1a2
commit
2e45963aed
5 changed files with 2320 additions and 0 deletions
1111
test/data/stages/rpm-kernel-install/a.json
Normal file
1111
test/data/stages/rpm-kernel-install/a.json
Normal file
File diff suppressed because it is too large
Load diff
32
test/data/stages/rpm-kernel-install/a.mpp.yaml
Normal file
32
test/data/stages/rpm-kernel-install/a.mpp.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
version: '2'
|
||||
pipelines:
|
||||
- mpp-import-pipelines:
|
||||
path: ../manifests/fedora-vars.ipp.yaml
|
||||
- mpp-import-pipeline:
|
||||
path: ../manifests/fedora-build-v2.ipp.yaml
|
||||
id: build
|
||||
runner:
|
||||
mpp-format-string: org.osbuild.fedora{release}
|
||||
- name: tree
|
||||
build: name:build
|
||||
stages:
|
||||
- type: org.osbuild.rpm
|
||||
inputs:
|
||||
packages:
|
||||
type: org.osbuild.files
|
||||
origin: org.osbuild.source
|
||||
mpp-depsolve:
|
||||
architecture: $arch
|
||||
module-platform-id: $module_platform_id
|
||||
repos:
|
||||
mpp-eval: repos
|
||||
packages:
|
||||
- kernel-uki-virt
|
||||
options:
|
||||
gpgkeys:
|
||||
mpp-eval: gpgkeys
|
||||
exclude:
|
||||
docs: true
|
||||
kernel_install_env:
|
||||
boot_root: "/boot/efi"
|
||||
1111
test/data/stages/rpm-kernel-install/b.json
Normal file
1111
test/data/stages/rpm-kernel-install/b.json
Normal file
File diff suppressed because it is too large
Load diff
32
test/data/stages/rpm-kernel-install/b.mpp.yaml
Normal file
32
test/data/stages/rpm-kernel-install/b.mpp.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
version: '2'
|
||||
pipelines:
|
||||
- mpp-import-pipelines:
|
||||
path: ../manifests/fedora-vars.ipp.yaml
|
||||
- mpp-import-pipeline:
|
||||
path: ../manifests/fedora-build-v2.ipp.yaml
|
||||
id: build
|
||||
runner:
|
||||
mpp-format-string: org.osbuild.fedora{release}
|
||||
- name: tree
|
||||
build: name:build
|
||||
stages:
|
||||
- type: org.osbuild.rpm
|
||||
inputs:
|
||||
packages:
|
||||
type: org.osbuild.files
|
||||
origin: org.osbuild.source
|
||||
mpp-depsolve:
|
||||
architecture: $arch
|
||||
module-platform-id: $module_platform_id
|
||||
repos:
|
||||
mpp-eval: repos
|
||||
packages:
|
||||
- kernel-uki-virt
|
||||
options:
|
||||
gpgkeys:
|
||||
mpp-eval: gpgkeys
|
||||
exclude:
|
||||
docs: true
|
||||
kernel_install_env:
|
||||
boot_root: "/esp"
|
||||
34
test/data/stages/rpm-kernel-install/diff.json
Normal file
34
test/data/stages/rpm-kernel-install/diff.json
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"added_files": [
|
||||
"/esp",
|
||||
"/esp/EFI",
|
||||
"/esp/EFI/Linux",
|
||||
"/esp/EFI/Linux/ffffffffffffffffffffffffffffffff-6.11.10-300.fc41.x86_64.efi"
|
||||
],
|
||||
"deleted_files": [
|
||||
"/boot/efi",
|
||||
"/boot/efi/EFI",
|
||||
"/boot/efi/EFI/Linux",
|
||||
"/boot/efi/EFI/Linux/ffffffffffffffffffffffffffffffff-6.11.10-300.fc41.x86_64.efi"
|
||||
],
|
||||
"differences": {
|
||||
"/etc/pki/ca-trust/extracted/java/cacerts": {
|
||||
"content": [
|
||||
null,
|
||||
null
|
||||
]
|
||||
},
|
||||
"/usr/lib/sysimage/rpm/rpmdb.sqlite": {
|
||||
"content": [
|
||||
null,
|
||||
null
|
||||
]
|
||||
},
|
||||
"/var/cache/ldconfig/aux-cache": {
|
||||
"content": [
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue