summaryrefslogtreecommitdiff
path: root/src/test/test-gpt.c
Commit message (Collapse)AuthorAgeFilesLines
* gpt: add helpers for deriving data partition from verity or verity sig ↵Lennart Poettering2022-12-061-0/+18
| | | | | | | designator let's add the inverse of the existing partition_verity_of() and partition_verity_sig_of()
* gpt: Expose GptPartitionType and get rid of SECONDARY/OTHERDaan De Meyer2022-11-151-7/+7
| | | | | | | | | | | | Instead of exposing just the partition type UUID, let's expose the GptPartitionType struct, which has a lot more information available in a much more accessible way. Also, let's get rid of SECONDARY/OTHER in PartitionDesignator. These were only there to support preferred architectures in dissect-image.c, but we can easily handle that by comparing architectures when we decide whether to override a partition. This is done in a new function compare_arch().
* basic: rename util.h to logarithm.hZbigniew Jędrzejewski-Szmek2022-11-081-1/+0
| | | | | util.h is now about logarithms only, so we can rename it. Many files included util.h for no apparent reason… Those includes are dropped.
* tree-wide: use 'Architecture' type consistently across the treeLennart Poettering2022-04-051-1/+1
| | | | | | | Some parts of our tree used 'Architecture' for storing architectures, others used ints. Let's unify on the former. Inspired by #22952's rework of the 'Virtualization' enum.
* strv: declare iterator of FOREACH_STRING() in the loopZbigniew Jędrzejewski-Szmek2022-03-231-5/+1
| | | | | | | | | | | Same idea as 03677889f0ef42cdc534bf3b31265a054b20a354. No functional change intended. The type of the iterator is generally changed to be 'const char*' instead of 'char*'. Despite the type commonly used, modifying the string was not allowed. I adjusted the naming of some short variables for clarity and reduced the scope of some variable declarations in code that was being touched anyway.
* Merge pull request #21501 from medhefgo/testZbigniew Jędrzejewski-Szmek2021-11-261-11/+2
|\ | | | | test: Use TEST macro
| * test: Use TEST macroJan Janssen2021-11-251-11/+2
| | | | | | | | | | | | | | | | | | This converts to TEST macro where it is trivial. Some additional notable changes: - simplify HAVE_LIBIDN #ifdef in test-dns-domain.c - use saved_argc/saved_argv in test-copy.c, test-path-util.c, test-tmpfiles.c and test-unit-file.c
* | gpt: Store the architecture in GptPartitionTypeDaan De Meyer2021-11-241-0/+2
|/ | | | | We also add a function gpt_partition_type_uuid_to_arch() to get the architecture of a partition type uuid.
* bootctl: use new red/green check/cross mark helpers at two placesLennart Poettering2021-11-231-2/+3
|
* Trivial style fixesZbigniew Jędrzejewski-Szmek2021-11-191-2/+1
|
* test-gpt: add test that shows for which archs we have GPT partition typesLennart Poettering2021-11-191-0/+61