• Home
  • Raw
  • Download

Lines Matching refs:TEST_EQ

254 	TEST_EQ(mock_data_key_allocated, 0, "  mock data key not allocated");  in PublicKeyToRSA()
264 TEST_EQ(mock_data_key_allocated, 1, " mock data key allocated"); in RSAPublicKeyFree()
303 TEST_EQ(AllocAndReadGptData(handle, &g), 0, "AllocAndRead"); in ReadWriteGptTest()
314 TEST_EQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree"); in ReadWriteGptTest()
323 TEST_EQ(AllocAndReadGptData(handle, &g), 0, in ReadWriteGptTest()
325 TEST_EQ(CheckHeader(mock_gpt_primary, 0, g.streaming_drive_sectors, in ReadWriteGptTest()
328 TEST_EQ(CheckHeader(mock_gpt_secondary, 1, g.streaming_drive_sectors, in ReadWriteGptTest()
342 TEST_EQ(AllocAndReadGptData(handle, &g), 0, in ReadWriteGptTest()
344 TEST_EQ(CheckHeader(mock_gpt_primary, 0, g.streaming_drive_sectors, in ReadWriteGptTest()
347 TEST_EQ(CheckHeader(mock_gpt_secondary, 1, g.streaming_drive_sectors, in ReadWriteGptTest()
362 TEST_EQ(AllocAndReadGptData(handle, &g), 1, in ReadWriteGptTest()
364 TEST_EQ(CheckHeader(mock_gpt_primary, 0, g.streaming_drive_sectors, in ReadWriteGptTest()
367 TEST_EQ(CheckHeader(mock_gpt_secondary, 1, g.streaming_drive_sectors, in ReadWriteGptTest()
383 TEST_EQ(AllocAndReadGptData(handle, &g), 0, in ReadWriteGptTest()
388 TEST_EQ(WriteAndFreeGptData(handle, &g), 0, in ReadWriteGptTest()
395 TEST_EQ(CheckHeader(mock_gpt_primary, 0, g.streaming_drive_sectors, in ReadWriteGptTest()
408 TEST_EQ(AllocAndReadGptData(handle, &g), 0, in ReadWriteGptTest()
413 TEST_EQ(WriteAndFreeGptData(handle, &g), 0, in ReadWriteGptTest()
420 TEST_EQ(CheckHeader(mock_gpt_secondary, 1, g.streaming_drive_sectors, in ReadWriteGptTest()
434 TEST_EQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree mod 1"); in ReadWriteGptTest()
450 TEST_EQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree mod all"); in ReadWriteGptTest()
463 TEST_EQ(WriteAndFreeGptData(handle, &g), 0, "WriteAndFree mod all"); in ReadWriteGptTest()
532 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_PARAMETER, in InvalidParamsTest()
537 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_PARAMETER, in InvalidParamsTest()
542 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_PARAMETER, in InvalidParamsTest()
547 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_NO_KERNEL_FOUND, in InvalidParamsTest()
552 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_NO_KERNEL_FOUND, in InvalidParamsTest()
557 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_NO_KERNEL_FOUND, in InvalidParamsTest()
563 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in InvalidParamsTest()
574 TEST_EQ(u, 0, "First kernel good"); in LoadKernelTest()
575 TEST_EQ(lkp.partition_number, 1, " part num"); in LoadKernelTest()
576 TEST_EQ(lkp.bootloader_address, 0xbeadd008, " bootloader addr"); in LoadKernelTest()
577 TEST_EQ(lkp.bootloader_size, 0x1234, " bootloader size"); in LoadKernelTest()
579 TEST_EQ(gpt_flag_external, 0, "GPT was internal"); in LoadKernelTest()
581 TEST_EQ(u, 0, " recovery request"); in LoadKernelTest()
586 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Two good kernels"); in LoadKernelTest()
587 TEST_EQ(lkp.partition_number, 1, " part num"); in LoadKernelTest()
588 TEST_EQ(mock_part_next, 1, " didn't read second one"); in LoadKernelTest()
593 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_NO_KERNEL_FOUND, "No kernels"); in LoadKernelTest()
595 TEST_EQ(u, VBNV_RECOVERY_RW_NO_OS, " recovery request"); in LoadKernelTest()
600 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, "Too small"); in LoadKernelTest()
602 TEST_EQ(u, VBNV_RECOVERY_RW_INVALID_OS, " recovery request"); in LoadKernelTest()
606 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
611 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
618 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
625 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Succeed key block dev sig"); in LoadKernelTest()
633 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
640 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
646 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
653 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
660 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
665 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
670 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
675 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Key block version roll forward"); in LoadKernelTest()
676 TEST_EQ(shared->kernel_version_tpm, 0x30001, " shared version"); in LoadKernelTest()
682 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Two kernels roll forward"); in LoadKernelTest()
683 TEST_EQ(mock_part_next, 2, " read both"); in LoadKernelTest()
684 TEST_EQ(shared->kernel_version_tpm, 0x30001, " shared version"); in LoadKernelTest()
689 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Key version ignored in dev mode"); in LoadKernelTest()
694 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Key version ignored in rec mode"); in LoadKernelTest()
698 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
703 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
708 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
714 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Kernel version ignored in dev mode"); in LoadKernelTest()
719 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Kernel version ignored in rec mode"); in LoadKernelTest()
723 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
728 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
735 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Get load address from preamble"); in LoadKernelTest()
738 TEST_EQ(lkp.kernel_buffer_size, 70144, " size"); in LoadKernelTest()
742 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
747 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
752 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Kernel tiny"); in LoadKernelTest()
756 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, in LoadKernelTest()
761 TEST_EQ(LoadKernel(&lkp, &cparams), VBERROR_INVALID_KERNEL_FOUND, "Bad data"); in LoadKernelTest()
766 TEST_EQ(LoadKernel(&lkp, &cparams), 0, "Succeed external GPT"); in LoadKernelTest()
767 TEST_EQ(gpt_flag_external, 1, "GPT was external"); in LoadKernelTest()