VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-test.h@ 59287

最後變更 在這個檔案從59287是 58675,由 vboxsync 提交於 9 年 前

bs3kit: Converted a bit more stuff and decided to got with syscalls for screen output, at least for now.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.4 KB
 
1/* $Id: bs3-cmn-test.h 58675 2015-11-12 15:47:57Z vboxsync $ */
2/** @file
3 * BS3Kit - Bs3Test internal header.
4 */
5
6/*
7 * Copyright (C) 2007-2015 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.alldomusa.eu.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 */
26
27#ifndef ___bs3_cmn_test_h
28#define ___bs3_cmn_test_h
29
30#include "bs3kit.h"
31#include <VBox/VMMDevTesting.h>
32
33
34/** Indicates whether the VMMDev is operational. */
35extern bool g_fbBs3VMMDevTesting;
36
37/** The number of tests that have failed. */
38extern uint16_t g_uscBs3TestErrors;
39
40/** The start error count of the current subtest. */
41extern uint16_t g_uscBs3SubTestAtErrors;
42
43/** Whether we've reported the sub-test result or not. */
44extern bool g_fbBs3SubTestReported;
45
46/** The number of sub tests. */
47extern uint16_t g_uscBs3SubTests;
48
49/** The number of sub tests that failed. */
50extern uint16_t g_uscBs3SubTestsFailed;
51
52/** VMMDEV_TESTING_UNIT_XXX -> string */
53extern char const g_aszBs3TestUnitNames[][16];
54
55/** The test name. */
56extern const char BS3_FAR *g_pszBs3Test_c16;
57extern const char *g_pszBs3Test_c32;
58extern const char *g_pszBs3Test_c64;
59/** The subtest name. */
60extern const char BS3_FAR *g_pszBs3SubTest_c16;
61extern const char *g_pszBs3SubTest_c32;
62extern const char *g_pszBs3SubTest_c64;
63
64
65/**
66 * Sends a command to VMMDev followed by a single string.
67 *
68 * If the VMMDev is not present or is not being used, this function will
69 * do nothing.
70 *
71 * @param uCmd The command.
72 * @param pszString The string.
73 */
74BS3_DECL(void) bs3TestSendStrCmd_c16(uint32_t uCmd, const char BS3_FAR *pszString);
75BS3_DECL(void) bs3TestSendStrCmd_c32(uint32_t uCmd, const char BS3_FAR *pszString); /**< @copydoc bs3TestSendStrCmd_c16 */
76BS3_DECL(void) bs3TestSendStrCmd_c64(uint32_t uCmd, const char BS3_FAR *pszString); /**< @copydoc bs3TestSendStrCmd_c16 */
77#define bs3TestSendStrCmd BS3_CMN_NM(bs3TestSendStrCmd) /**< Selects #bs3TestSendStrCmd_c16, #bs3TestSendStrCmd_c32 or #bs3TestSendStrCmd_c64. */
78
79
80/**
81 * Checks if the VMMDev is configured for testing.
82 *
83 * @returns true / false.
84 */
85BS3_DECL(bool) bs3TestIsVmmDevTestingPresent_c16(void);
86BS3_DECL(bool) bs3TestIsVmmDevTestingPresent_c32(void); /**< @copydoc bs3TestIsVmmDevTestingPresent_c16 */
87BS3_DECL(bool) bs3TestIsVmmDevTestingPresent_c64(void); /**< @copydoc bs3TestIsVmmDevTestingPresent_c16 */
88#define bs3TestIsVmmDevTestingPresent BS3_CMN_NM(bs3TestIsVmmDevTestingPresent) /**< Selects #bs3TestIsVmmDevTestingPresent_c16, #bs3TestIsVmmDevTestingPresent_c32 or #bs3TestIsVmmDevTestingPresent_c64. */
89
90
91#endif
92
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette