VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestData.c@ 103262

Last change on this file since 103262 was 103262, checked in by vboxsync, 9 months ago

IPRT,VMMDev,Bs3Kit: Added support for sub-sub-tests to better deal with bs3-cpu-generated-1 and others with too many sub-tests for the test manager.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1/* $Id: bs3-cmn-TestData.c 103262 2024-02-08 00:00:32Z vboxsync $ */
2/** @file
3 * BS3Kit - Test Data.
4 */
5
6/*
7 * Copyright (C) 2007-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * The contents of this file may alternatively be used under the terms
26 * of the Common Development and Distribution License Version 1.0
27 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
28 * in the VirtualBox distribution, in which case the provisions of the
29 * CDDL are applicable instead of those of the GPL.
30 *
31 * You may elect to license modified versions of this file under the
32 * terms and conditions of either the GPL or the CDDL or both.
33 *
34 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35 */
36
37
38/*********************************************************************************************************************************
39* Header Files *
40*********************************************************************************************************************************/
41#include "bs3kit-template-header.h"
42#include "bs3-cmn-test.h"
43
44
45/*********************************************************************************************************************************
46* Global Variables *
47*********************************************************************************************************************************/
48/** The test name. */
49const char BS3_FAR *BS3_CMN_NM(g_pszBs3Test) = NULL;
50
51#if ARCH_BITS == 16
52
53/** Indicates whether the VMMDev is operational. */
54bool g_fbBs3VMMDevTesting = true;
55
56/** Alignment padding. */
57bool g_fTestDataPadding0 = true;
58
59/** The number of tests that have failed. */
60uint16_t g_cusBs3TestErrors = 0;
61
62/** The start error count of the current sub-sub-test. */
63uint16_t g_cusBs3SubSubTestAtErrors = 0;
64/** Whether we've reported the sub-sub-test result or not. */
65bool g_fbBs3SubSubTestReported = true;
66/** Whether the sub-sub-test has been skipped or not. */
67bool g_fbBs3SubSubTestSkipped = false;
68/** The number of sub-sub-tests. */
69uint16_t g_cusBs3SubSubTests = 0;
70/** The number of sub-sub-tests that failed. */
71uint16_t g_cusBs3SubSubTestsFailed = 0;
72
73/** The start error count of the current subtest. */
74uint16_t g_cusBs3SubTestAtErrors = 0;
75/** Whether we've reported the sub-test result or not. */
76bool g_fbBs3SubTestReported = true;
77/** Whether the sub-test has been skipped or not. */
78bool g_fbBs3SubTestSkipped = false;
79/** The number of sub-tests. */
80uint16_t g_cusBs3SubTests = 0;
81/** The number of sub-tests that failed. */
82uint16_t g_cusBs3SubTestsFailed = 0;
83
84/** The current test step. */
85uint16_t g_usBs3TestStep;
86
87/** VMMDEV_TESTING_UNIT_XXX -> string */
88char const g_aszBs3TestUnitNames[][12] =
89{
90 "inv",
91 "%",
92 "bytes",
93 "bytes/s",
94 "KB",
95 "KB/s",
96 "MB",
97 "MB/s",
98 "packets",
99 "packets/s",
100 "frames",
101 "frames/",
102 "occ",
103 "occ/s",
104 "rndtrp",
105 "calls",
106 "calls/s",
107 "s",
108 "ms",
109 "ns",
110 "ns/call",
111 "ns/frame",
112 "ns/occ",
113 "ns/packet",
114 "ns/rndtrp",
115 "ins",
116 "ins/s",
117 "", /* none */
118 "pp1k",
119 "pp10k",
120 "ppm",
121 "ppb",
122 "ticks",
123 "ticks/call",
124 "ticks/occ",
125 "pages",
126 "pages/s",
127 "ticks/page",
128 "ns/page",
129 "ps",
130 "ps/call",
131 "ps/frame",
132 "ps/occ",
133 "ps/packet",
134 "ps/rndtrp",
135 "ps/page",
136};
137
138
139/** The subtest name. */
140char g_szBs3SubTest[64];
141/** The subsubtest name. */
142char g_szBs3SubSubTest[64];
143
144#endif /* ARCH_BITS == 16 */
145
Note: See TracBrowser for help on using the repository browser.

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