Home | History | Annotate | Download | only in tests

Lines Matching refs:gpt

16 #include "gpt.h"
73 * Prepare a valid GPT header that will pass CheckHeader() tests
210 int GptInit(GptData *gpt)
215 int GptNextKernelEntry(GptData *gpt, uint64_t *start_sector, uint64_t *size)
222 if (gpt->flags & GPT_FLAG_EXTERNAL)
225 gpt->current_kernel = mock_part_next;
232 void GetCurrentKernelUniqueGuid(GptData *gpt, void *dest)
291 * Test reading/writing GPT
318 * Invalidate primary GPT header,
337 * Invalidate secondary GPT header,
356 * Invalidate primary AND secondary GPT header,
375 * Invalidate primary GPT header and check that it is
384 "Fix Primary GPT: AllocAndRead");
385 /* Call GptRepair() with input indicating secondary GPT is valid */
389 "Fix Primary GPT: WriteAndFreeGptData");
397 0, "Fix Primary GPT: Primary header is valid");
400 * Invalidate secondary GPT header and check that it can be
409 "Fix Secondary GPT: AllocAndRead");
410 /* Call GptRepair() with input indicating primary GPT is valid */
414 "Fix Secondary GPT: WriteAndFreeGptData");
422 0, "Fix Secondary GPT: Secondary header is valid");
456 /* If legacy signature, don't modify GPT header/entries 1 */
553 "Bad GPT");
558 "GPT size = 0");
579 TEST_EQ(gpt_flag_external, 0, "GPT was internal");
766 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Succeed external GPT");
767 TEST_EQ(gpt_flag_external, 1, "GPT was external");