Skip to content

Commit 0542894

Browse files
committed
fixtures: put endianness in the id, not the arch directory
The fixture namespace is the arch-header set, but mips32el/ and mips64el/ were in it and no such header exists — mips32.h serves mips and mipsel alike. Byte order changes the captured bytes and the replay binary, not the layout model, so it belongs in the id beside the variant. Without it the two orders resolve to one directory and the capture rm -rf's the destination first, so whichever cell ran last would be the one kept. That was not hypothetical: ppc64/ already held a ppc64 and a ppc64le bundle, apart only because their release strings happened to differ. fixture_arch now maps mipsel to mips32 and mips64el to mips64, and the id carries -eb/-el on the four arches that can hold both orders: arm32, ppc64, mips32, mips64. The other nine are single-endianness, where a suffix would say nothing. The value is read from the booted image's ELF EI_DATA byte — the kernel's own statement of its byte order — rather than a table of which cell is which. Twenty existing bundles renamed, each suffix taken from its own uname_m_raw, and mips32/mainline-7.0.0-eb regenerated to confirm a capture lands beside its LE sibling instead of replacing it. Binary selection was never at risk: validate-bundle resolves it from uname_m_raw, which is endianness-aware and untouched. validate-fixtures 27 sound / 0 FAIL, replay 58 pass.
1 parent deb5af9 commit 0542894

1,612 files changed

Lines changed: 24 additions & 4 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/meta.txt renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/meta.txt

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sizes.txt renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sizes.txt

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/boot/vmlinuz-6.12.81-0-lts renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/boot/vmlinuz-6.12.81-0-lts

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/proc/cmdline renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/proc/cmdline

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/proc/cpuinfo renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/proc/cpuinfo

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/proc/device-tree/chosen/bootargs renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/proc/device-tree/chosen/bootargs

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/proc/device-tree/chosen/kaslr-seed renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/proc/device-tree/chosen/kaslr-seed

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/proc/device-tree/chosen/linux,initrd-end renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/proc/device-tree/chosen/linux,initrd-end

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/proc/device-tree/chosen/linux,initrd-start renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/proc/device-tree/chosen/linux,initrd-start

File renamed without changes.

tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts/sysroot/proc/device-tree/chosen/name renamed to tests/fixtures/arm32/alpine-3.21-6.12.81-0-lts-el/sysroot/proc/device-tree/chosen/name

File renamed without changes.

0 commit comments

Comments
 (0)