Lines Matching full:backup
545 TestVbInit(0, 0, "normal mode, no backup"); in VbInitTestBackup()
564 TestVbInit(0, 0, "normal mode, some backup"); in VbInitTestBackup()
585 /* So we should have written the backup */ in VbInitTestBackup()
586 TEST_EQ(backup_write_called, 1, " Backup written once"); in VbInitTestBackup()
587 /* And the backup should reflect the persisent flags. */ in VbInitTestBackup()
589 TEST_EQ(0, RestoreNvFromBackup(&tmp_vnc), "read from backup"); in VbInitTestBackup()
608 * again, we shouldn't need to backup again. in VbInitTestBackup()
615 TestVbInit(0, 0, "normal mode, expect no backup"); in VbInitTestBackup()
618 TEST_EQ(backup_write_called, 1, " Backup still only written once"); in VbInitTestBackup()
631 TEST_EQ(backup_write_called, 1, " Still only one backup"); in VbInitTestBackup()
652 TEST_EQ(backup_write_called, 1, " Once more, one backup"); in VbInitTestBackup()
654 /* But if we explictly request a backup, they'll get saved. */ in VbInitTestBackup()
675 TEST_EQ(0, RestoreNvFromBackup(&tmp_vnc), "read from backup"); in VbInitTestBackup()
692 /* If we lose the NV storage, the backup bits will be restored */ in VbInitTestBackup()
705 TEST_EQ(backup_read_called, bu_r + 1, " One more backup read"); in VbInitTestBackup()
737 TEST_EQ(backup_read_called, bu_r + 2, " Two more backup reads"); in VbInitTestBackup()
738 TEST_EQ(backup_write_called, 3, " Backup write due clearing DEV_*"); in VbInitTestBackup()