blob: 6ee6bb4d97f4eb98b694095c20f50d54fc383536 [file] [log] [blame]
Victor Kaplansky4e082562016-02-14 18:59:27 +02001/*
2 * QEMU boot sector testing helpers.
3 *
4 * Copyright (c) 2016 Red Hat Inc.
5 *
6 * Authors:
7 * Michael S. Tsirkin <mst@redhat.com>
Eric Blake8b19f2b2017-09-11 12:20:07 -05008 * Victor Kaplansky <victork@redhat.com>
Victor Kaplansky4e082562016-02-14 18:59:27 +02009 *
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
12 */
13
Markus Armbruster2a6a4072016-06-29 13:47:03 +020014#ifndef TEST_BOOT_SECTOR_H
15#define TEST_BOOT_SECTOR_H
Victor Kaplansky4e082562016-02-14 18:59:27 +020016
Eric Blake8b19f2b2017-09-11 12:20:07 -050017#include "libqtest.h"
18
Thomas Huth3e353772016-10-11 17:19:36 +020019/* Create boot disk file. fname must be a suitable string for mkstemp() */
20int boot_sector_init(char *fname);
Victor Kaplansky4e082562016-02-14 18:59:27 +020021
22/* Loop until signature in memory is OK. */
Eric Blake8b19f2b2017-09-11 12:20:07 -050023void boot_sector_test(QTestState *qts);
Victor Kaplansky4e082562016-02-14 18:59:27 +020024
25/* unlink boot disk file. */
26void boot_sector_cleanup(const char *fname);
27
Markus Armbruster2a6a4072016-06-29 13:47:03 +020028#endif /* TEST_BOOT_SECTOR_H */