Efficient firmware testing
By executing full regression testing in the information processing system, the optimized test cases and resource combinations are determined, solving the trade-off problem between firmware testing time and coverage, and achieving efficient test coverage and time optimization, which is suitable for information processing systems. Firmware and software testing.
Patent Information
- Application Number
- CN202310359243.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-15
AI Technical Summary
Existing information processing system firmware testing is difficult to complete within a reasonable time, especially when different hardware configurations and shared test resources are scarce, resulting in a difficult trade-off between test coverage and time.
By identifying trace points and test cases, perform full regression testing to generate test information, determine optimized test cases and test resource tuples (TCTR), to achieve efficient test coverage and time optimization, including defining test resources, coverage and Time matrix, calculate coverage score and duration, select the TCTR tuple with maximum coverage or minimum time within the specified time.
It achieves high coverage of full regression testing in a shorter time, reduces testing time, improves testing efficiency, and is suitable for firmware and software testing of information processing systems.
Smart Images

Figure CN118779203A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to information handling systems, and more particularly to testing of firmware for information handling systems. Background Art
[0002] As the value and use of information continue to increase, individuals and businesses seek additional ways to process and store information. One option available to users is an information handling system. An information handling system typically processes, compiles, stores and / or communicates information or data for commercial, personal or other purposes, allowing users to exploit the value of information. Because technology and information handling needs and requirements vary between different users or applications, information handling systems may also differ in what information to handle, how to handle information, how much information to process, store or communicate, and how quickly and efficiently information can be processed, stored or communicated. Changes in information handling systems allow information handling systems to be general or configured for specific users or specific purposes (such as financial transaction processing, flight reservations, enterprise data storage or global communications). In addition, an information handling system may include a variety of hardware and software components that can be configured to process, store and communicate information, and may include one or more computer systems, data storage systems and networking systems.
[0003] Many information handling systems can be characterized as state machines in which the state of the system changes from one state to the next in a consistent and predictable manner in response to changes in system inputs. Such systems can load and execute firmware to initialize the system to a known initial state. Therefore, it is necessary to fully test the firmware functionality before the firmware is released and deployed to the end-user system. However, the large number of theoretically possible states and input combinations that may be experienced by the firmware release of even a medium-complexity system is usually too large to be fully tested within any reasonable time limit. Therefore, firmware testing generally involves a trade-off between test coverage (indicating the percentage of tested states) and test time. For example, the time required to verify firmware releases across different platforms and system types on an actual test bench with different hardware configurations can be measured in days. In addition, due to the scarcity of shared test resources (including (as an illustrative example) pre-boot execution environment (PXE) servers, debug tool kits (DTKs), oscilloscopes, test rooms, etc.), test time may be further affected. Summary of the invention
[0004] The technical advantages of the present disclosure will be apparent to those skilled in the art from the drawings, descriptions and claims included herein. The objects and advantages of the embodiments will be realized and achieved at least by the elements, features and combinations particularly pointed out in the claims.
[0005] In at least one aspect, the disclosed method for testing information handling system software identifies tracking points, test cases, and test resources for testing firmware or another type of software, and performs a full regression of the software to obtain test information, the test information including coverage information indicating the tracking points reached by each test case and test duration information indicating the time required to execute each test case, wherein the full test includes executing each test case on each test resource. Based on the test information, an optimized test case test resource (TCTR) tuple is determined for efficient testing of the software. The optimized TCTR tuple achieves greater coverage per time interval when executed than the full test. Performing a full regression test may include: executing each test case on each test resource. Determining the optimized TCTR tuple may include: defining a matrix representation of test resources, test coverage, and test duration, calculating a coverage score and a test duration for each TCTR tuple, and identifying the optimized TCTR information based on the coverage score and the test duration. Determining the optimized TCTR tuple includes determining the TCTR tuple that produces the highest coverage score within a specified maximum duration. Determining an optimized TCTR tuple includes determining a TCTR tuple that produces a minimum test duration for a specified minimum test coverage.
[0006] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the present disclosure, as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] A more complete understanding of the present embodiment and its advantages may be obtained by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numerals indicate like features, and in which:
[0008] Figure 1 a flow chart showing the testing method;
[0009] Figure 2 Describes exemplary data structures for efficient testing methods;
[0010] Figure 3 Describing methods that facilitate determination of optimized TCTR tuples Figure 2 Data structure;
[0011] Figure 4 showing exemplary test resources;
[0012] Figure 5 shows the equation used to generate the test coverage score;
[0013] Figure 6 shows the equation used to generate the test duration value;
[0014] Figure 7Describes the maximum duration determination; and
[0015] Figure 8 Describes the determination of test coverage scores;
[0016] Fig. 9 shows constrained bounded optimization of test coverage and test duration according to the disclosed teachings;
[0017] Fig.10 Shown suitable for combining Figures 1 to 9 the information processing systems used; and
[0018] Fig.11 shows a test configuration that employs shared test resources; and
[0019] Fig.12 Shown for Fig.11 A test resource matrix for shared test resource configuration. DETAILED DESCRIPTION
[0020] Exemplary embodiments and their advantages are described by reference Figures 1 to 12 A better understanding is obtained wherein like reference numerals are used to indicate identical and corresponding parts unless expressly indicated otherwise.
[0021] For purposes of this disclosure, an information handling system may include any tool or collection of tools that is operable to compute, classify, process, transmit, receive, retrieve, originate, switch, store, display, indicate, detect, record, reproduce, dispose of, or utilize any form of information, intelligence, or data for commercial, scientific, control, entertainment, or other purposes. For example, an information handling system may be a personal computer, a personal digital assistant (PDA), a consumer electronic device, a network storage device, or any other suitable device, and may vary in size, shape, performance, functionality, and price. An information handling system may include memory, one or more processing resources (such as a central processing unit ("CPU"), a microprocessor, or hardware) or software control logic. Additional components of an information handling system may include one or more storage devices, one or more communication ports for communicating with external devices, and various input / output ("I / O") devices (such as a keyboard, a mouse, and a video display). An information handling system may also include one or more buses operable to transmit communications between various hardware components.
[0022] In addition, the information handling system may include firmware for controlling, for example, hard drives, network circuits, memory devices, I / O devices, and other peripheral devices and / or communicating with them. For example, a hypervisor and / or other components may include firmware. As used in the present disclosure, firmware includes software embedded in information handling system components for performing predefined tasks. Firmware is typically stored in a non-volatile memory or in a memory that does not lose stored data when power is off. In certain embodiments, firmware associated with information handling system components is stored in a non-volatile memory accessible to one or more information handling system components. In the same or alternative embodiments, firmware associated with information handling system components is stored in a non-volatile memory dedicated to the component and including a portion of the component.
[0023] For purposes of this disclosure, a computer-readable medium may include a tool or collection of tools that can retain data and / or instructions for a period of time. Computer-readable media may include, but are not limited to: storage media such as direct access storage devices (e.g., hard drives or floppy disks), sequential access storage devices (e.g., tape disk drives), compact discs, CD-ROMs, DVDs, random access memories (RAM), read-only memories (ROM), electrically erasable programmable read-only memories (EEPROM), and / or flash memories; and communication media such as wires, optical fibers, microwaves, radio waves, and other electromagnetic and / or optical carrier waves; and / or any combination of the foregoing.
[0024] For purposes of this disclosure, information handling resources may broadly refer to any component system, device or equipment of an information handling system, including but not limited to a processor, a service processor, a basic input / output system (BIOS), a bus, a memory, an I / O device and / or interface, a storage resource, a network interface, a motherboard and / or any other component and / or element of an information handling system.
[0025] In the following description, details are set forth by way of examples to facilitate discussion of the disclosed subject matter. However, it should be understood by those of ordinary skill in the art that the disclosed embodiments are exemplary and not exhaustive of all possible embodiments.
[0026] Throughout this disclosure, hyphenated forms of reference numerals refer to specific instances of an element, and non-hyphenated forms of reference numerals refer to the element generally. Thus, for example, "device 12-1" refers to an instance of a class of devices, which may be collectively referred to as "device 12", and any one of which may be referred to generally as "device 12".
[0027] As used herein, when two or more elements are referred to as being "coupled" to each other, such terms indicate that the two or more elements are in electronic communication, mechanical communication, including thermal and fluid communication, thermal communication or mechanical communication, where applicable, whether indirectly or directly, with or without intervening elements.
[0028] Now referring to the accompanying drawings, Figure 1 A flow chart depicting a method 100 for testing information handling system software, including but not limited to regression testing firmware for an information handling system platform. For the sake of clarity and brevity, the following description may refer primarily or only to firmware, but one of ordinary skill in the art should readily appreciate that the disclosed features are also applicable to other types of software.
[0029] Figure 1 The method shown begins by identifying (operation 102) trace points, test cases, and test resources for testing firmware or another type of software product. Trace points and test cases may be identified or otherwise determined in any suitable form, and the specific details of how to identify trace points are outside the scope of this disclosure.
[0030] Figure 1 The illustrated method 100 also includes performing (operation 104) a full regression test (also referred to herein as a complete test) to obtain test information, based on which optimized test cases and test resource tuples can be determined for subsequent deployment. In at least some embodiments, the full regression test includes executing each test case on each available test resource. The test resources may include a fully configured test bench that can independently execute test cases and does not require any shared test resources. As non-limiting examples, the shared test resources include Intel Debug Toolkit (IDT), a Pre-Boot Execution Environment (PXE) server, an oscilloscope, a test room, etc. The use of shared resources is described below with reference to Fig.11 and Fig.12 Detailed description is provided and discussed in greater detail. However, for greater clarity and brevity, at least some of the figures and corresponding descriptions illustrate exemplary implementations in which each test resource is an independent and fully functional test bed, where each test bed can execute any desired test case. For deployments that employ only fully functional test beds, the number of TCTR tuples is equal to the product of the number of test resources and the number of test cases.
[0031] The test information generated during full regression may include: test duration information indicating the duration of each instance of a test run, where a test run refers to an instance of a test case run on a specific test resource; coverage score information indicating that each test run successfully implements a predetermined set of tracking points; and test resource information indicating the test resources that execute a specific test run.
[0032] Figure 1 The method 100 shown also includes determining (operation 106) an optimized TCTR tuple for efficiently testing firmware or other software based on the test information. In some implementations, the optimized TCTR tuple corresponds to a test case and test resource combination that achieves the highest test coverage score under the constraints of a specified test time duration limit. In some implementations, the optimized TCTR pair may correspond to a test case and test resource combination that achieves a coverage score equal to or equivalent to that of a full regression while requiring significantly less test time. After determining the optimized TCTR tuple, the method 100 shown then deploys the identified tuple (operation 110) as a selective regression test. For example, the selective regression test may be performed weekly or even daily.
[0033] Now turn to Figure 2 , depicting Figure 1 The exemplary data structure aspects of the optimized TCTR process. Figure 1 The test information obtained by executing full regression tests is discussed in Figure 2 The regression test data 201 is shown in Figure 2 Depicted in FIG. 2 are a plurality of regression test entries 202, each of which includes a test run identifier 203, test resource information 204, a test case identifier 205, test coverage information 206 indicating implemented tracking points, and duration information 207 indicating the time required to complete the test run.
[0034] Figure 2 Regression test data 201 is further depicted as a source for creating a matrix representation of regression tests. The matrix representation facilitates identifying TCTR tuples, as described in more detail below. Figure 2 The matrices shown include a test resource matrix 210 , a test coverage matrix 220 , a test run duration matrix 230 , and a trace point weighting matrix 240 . Figure 2 The test resource matrix 210 shown is an nxb matrix, i.e., n rows and b columns, where n indicates the number of test runs and b indicates the number of test resources. The test coverage matrix 220 shown is an nxp matrix, where p represents the number of trace points. The test case duration matrix 230 shown is shown as an nx 1 matrix, i.e., a vector of dimension n, and the trace point weight vector 240 is a px 1 matrix, i.e., a vector of dimension p. For implementations in which the test resources do not include shared resources, i.e., independent functional test benches, the value of the number of test runs n is equal to the product of the number of test cases C and the number of test resources b. That is, n=bxc.
[0035] Figure 3The diagram includes test resource matrices 210, 210, 220, 230, and 240. Figure 2 The regression test matrix of the test resource matrix is used to determine the matrix representation of the optimized TCTR tuple 301. Figure 3 The TCTR matrix 301 shown is an n x 1 matrix, ie, a vector of dimension n.
[0036] In at least some embodiments, test resource matrix 210, test coverage matrix 220, and TCTR matrix 301 are binary matrices in which each element has a value of 1 or 0. For TCTR matrix 301, each element of the n-dimensional vector indicates whether an applicable test run is included in the TCTR tuple. For test coverage matrix 220, each element of the matrix indicates whether a particular test run (indicated by the row number) was able to reach a particular trace point indicated by the column number. Each element ( Figure 4 ) indicates whether a particular test resource (indicated by the column number) is used during a particular test run (indicated by the row number). Figure 4 A specific example is shown in which three independent functional test benches (b=3) are used in regression testing involving five test cases. Each test case is executed on each of the three test resources and then proceeds to the next test case. In this example, the number of test runs is 15, and the test resource 210 is a 15 x 3 matrix. Each of the three test resources is represented as a one-hot vector of dimension 3, i.e., a vector of dimension 3, where one element of the vector is equal to 1 and the other elements of the vector are 0.
[0037] To determine the TCTR vector 301, the matrix representation of the regression test data is used to determine the test coverage score and total duration for any of all possible TCTR tuples. The test coverage score is based on Figure 5 The test coverage is determined by the test coverage equation 501 shown, where the auxiliary function b(Y) is defined as the binarized matrix Y: if Y_ij>0, then b(Y)_ij=1, otherwise b(Y)_ij=0.
[0038] The total duration is based on Figure 6 The duration of the test is determined by equation 601, where the value U is a vector of dimension n (number of test runs), and the final test duration is t(X)=max(U).
[0039] Figure 7 Show use Figure 6 Equation 601 shows an exemplary determination of a test duration, where scalar values d1, d2, etc. represent the duration of a corresponding test run.
[0040] Figure 8 Show according to Figure 5Equation 501 for determination of the coverage score f(x), where the optional weighting matrix W is omitted.
[0041] Fig. 9 The constrained finite optimization of test coverage and test duration according to the disclosed teachings is shown. Equation 901 indicates the optimization of the TCTR tuple that achieves the maximum test coverage value f(x) within a specified maximum test duration (L), while equation 902 indicates the optimization of the TCTR tuple that achieves the minimum test time t(x) given a specified minimum test coverage value M.
[0042] Reference now Fig.10 , Figures 1 to 9 Any one or more of the elements shown are implemented as Fig.10 The illustrated information handling system 1000 is an example of an information handling system or may be implemented within the illustrated information handling system. The illustrated information handling system includes one or more general purpose processors or central processing units (CPUs) 1001 communicatively coupled to memory resources 1010 and an input / output hub 1020 to which various I / O resources and / or components are communicatively coupled. Fig.10 Explicitly depicted I / O resources include a network interface 1040 (commonly referred to as a NIC (network interface card)), storage resources 1030, and additional I / O devices, components, or resources 1050, which include, as non-limiting examples, a keyboard, mouse, display, printer, speaker, microphone, etc. The illustrated information handling system 1000 includes a baseboard management controller (BMC) 1060, which provides out-of-band management resources that can be coupled to a management server (not depicted), as well as other features and services. In at least some embodiments, the BMC 1060 can manage the information handling system 1000, even when the information handling system 1000 is powered off or powered on to a standby state. The BMC 1060 may include a processor, memory, an out-of-band network interface that is separate and physically isolated from the in-band network interface of the information handling system 1000, and / or other embedded information handling resources. In certain embodiments, BMC 1060 may include, or may be a component of, a remote access controller (eg, a Dell Remote Access Controller or an Integrated Dell Remote Access Controller) or a chassis management controller.
[0043] Reference now Fig.11 and Fig.12 , shows an example test configuration depicting the use of shared test resources. Fig.11As shown, the test platform 1100 includes five test resources 1101-1 to 1101-5, including a first test bed 1101-1, a second test bed 1101-2, a third test bed 1101-3, an ITP 1101-4, and a PE server 1101-5. In the depicted configuration, the ITP 1101-4 is shared with the first test bed 1101-1 and the second test bed 1101-2, while the PE server 1101-5 is shared with the second test bed 1101-2 and the third test bed 1101-3.
[0044] Each test resource 1101-1 to 1101-5 is assigned a corresponding one-hot ID vector 1110 of dimension five, such that the ID vector 1110-1 of the first test station 1101-1 is [1 0 0 0 0], the ID vector 1110-2 of the second test station 1101-2 is [0 1 0 0 0], the ID vector 1110-3 of the third test station 1101-3, and so on.
[0045] Fig.11 and Fig.12 An example regression test is depicted in which each of three test cases (Test Case-1, Test Case-2, Test Case-3) is executed in each of three test jobs (Test Job-1, Test Job-2, and Test Job-3) including a test job corresponding to each test bench, for a total of nine test runs. Fig.12 A table 1200 is depicted, which includes a column 1201 for test run IDs, a column 1202 for test bed ID vectors, a column 1203 for ITP ID vectors, a column 1204 for PXE server ID vectors, and a shared test resource column 1205, wherein the shared test resource column is obtained by adding the ID vectors in columns 1202, 1203, and 1204. The test resource matrix of this shared resource example is a 9×5 matrix consisting of the nine shared test resource vectors in column 1205 of table 1200. The test resource matrix is Figure 2 A shared resource simulation of the test matrix 210 is provided.
[0046] The present disclosure covers all changes, substitutions, variations, alterations and modifications to the exemplary embodiments herein that would be understood by those of ordinary skill in the art. Similarly, where appropriate, the appended claims cover all changes, substitutions, variations, alterations and modifications to the exemplary embodiments herein that would be understood by those of ordinary skill in the art. In addition, references in the appended claims to a device or system or a component of a device or system that is adapted to, arranged to, capable of, configured to, enabled to, operable to, or operated to perform a specific function covers the device, system, or component, whether or not the device, system, component, or the specific function is activated, turned on, or unlocked, as long as the device, system, or component is adapted to, arranged to, capable of, configured to, enabled to, operable to, or operated to perform a specific function.
[0047] All examples and conditional language described herein are intended for teaching purposes to help readers understand the disclosure and concepts contributed by the inventors to advance the art, and are interpreted as not being limited to such specific examples and conditions. Although the embodiments of the present disclosure have been described in detail, it should be understood that various changes, substitutions and modifications may be made thereto without departing from the spirit and scope of the present disclosure.
Claims
1. A method for testing information handling system software, the method comprising: identifying trace points, test cases, and test resources used to test the software; performing a complete test of the software to obtain test information, the test information comprising test coverage information indicating trace points reached by each test case and test duration information indicating a time required to execute each test case, wherein the complete test comprises executing each test case on each test resource; An optimized test case test resource (TCTR) tuple is determined based on the test information for efficiently testing the software, wherein the optimized TCTR tuple achieves greater coverage per time interval when executed than the full test.
2. The method of claim 1, wherein executing the complete test comprises executing each test case on each test resource.
3. The method of claim 1 , wherein determining the optimized TCTR tuple comprises: defining a matrix representation of the test resources, the test coverage, and the test duration; Calculate the coverage score and test duration for each TCTR tuple; Optimized TCTR information is identified based on the coverage score and the test duration.
4. The method of claim 3, wherein defining a matrix representation comprises: For each test resource, define a one-hot vector.
5. The method of claim 3, wherein determining the optimized TCTR tuple comprises determining a TCTR tuple that produces a highest coverage score within a specified maximum duration.
6. The method of claim 3, wherein determining the optimized TCTR tuple comprises determining a TCTR tuple that produces a minimum test duration for a specified minimum test coverage.
7. An information processing system, comprising: Central Processing Unit (CPU); a memory accessible by the CPU, the memory comprising processor-executable instructions that, when executed by the CPU, cause the system to perform test operations, the test operations comprising: identifying trace points, test cases, and test resources used to test the software; performing a complete test of the software to obtain test information, the test information comprising test coverage information indicating trace points reached by each test case and test duration information indicating a time required to execute each test case, wherein the complete test comprises executing each test case on each test resource; An optimized test case test resource (TCTR) tuple is determined based on the test information for efficiently testing the software, wherein the optimized TCTR tuple achieves greater coverage per time interval when executed than the full test.
8. The information handling system of claim 7, wherein executing the complete test comprises executing each test case on each test resource.
9. The information handling system of claim 7, wherein determining the optimized TCTR tuple comprises: defining a matrix representation of the test resources, the test coverage, and the test duration; Calculate the coverage score and test duration for each TCTR tuple; Optimized TCTR information is identified based on the coverage score and the test duration.
10. The information handling system of claim 9, wherein defining the matrix representation comprises: For each test resource, define a one-hot vector.
11. The information handling system of claim 9, wherein determining the optimized TCTR tuple comprises determining a TCTR tuple that produces a highest coverage score within a specified maximum duration.
12. The information handling system of claim 9, wherein determining the optimized TCTR tuple comprises determining a TCTR tuple that produces a minimum test duration for a specified minimum test coverage.
