Files
debos/tests/partitioning/test.yaml
Sjoerd Simons 325c8f76c7 Expand gpt partitioning tests to more then 4 partitions
The msdos partitioning now handles more then 4 partitions by inserting
an extended partition. To test this doesn't confuse the gpt partitioning
expand that test to more then 4 partitions as well.
2024-01-20 11:25:41 +01:00

58 lines
1.2 KiB
YAML

architecture: amd64
actions:
- action: image-partition
description: Partition the image
imagename: test.img
imagesize: 8G
partitiontype: gpt
diskid: 12345678-1234-1234-1234-123456789012
mountpoints:
- mounpoint: /
partition: system
partitions:
- name: boot
fs: ext2
start: 0%
end: 256M
- name: system
fs: ext4
start: 256m
end: 2G
partuuid: 87654321-1234-5678-9012-345678901234
- name: data0
fs: ext4
start: 2G
end: 3G
- name: data1
fs: ext4
start: 3G
end: 4G
- name: data2
fs: ext4
start: 4G
end: 5G
- name: data3
fs: ext4
start: 5G
end: 6G
- name: data4
fs: ext4
start: 6G
end: 7G
- name: data5
fs: ext4
start: 7G
end: 8G
- action: run
chroot: false
command: >
cd ${ARTIFACTDIR};
sfdisk -J test.img | tee ${RECIPEDIR}/actual.json
- action: run
description: Compare expected and actual
chroot: false
command: bash -c 'diff -u <(jq . ${RECIPEDIR}/expected.json) <(jq . ${RECIPEDIR}/actual.json)'