CN117850914A - Basic input/output system configuration option test method, device, equipment and medium - Google Patents

Basic input/output system configuration option test method, device, equipment and medium Download PDF

Info

Publication number
CN117850914A
CN117850914A CN202410026201.2A CN202410026201A CN117850914A CN 117850914 A CN117850914 A CN 117850914A CN 202410026201 A CN202410026201 A CN 202410026201A CN 117850914 A CN117850914 A CN 117850914A
Authority
CN
China
Prior art keywords
configuration
options
parameter values
option
output system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410026201.2A
Other languages
Chinese (zh)
Inventor
陆慧琴
韩琳琳
吕东波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Computer Technology Co Ltd
Original Assignee
Inspur Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Computer Technology Co Ltd filed Critical Inspur Computer Technology Co Ltd
Priority to CN202410026201.2A priority Critical patent/CN117850914A/en
Publication of CN117850914A publication Critical patent/CN117850914A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a basic input/output system configuration option test method, a device, equipment and a medium, which relate to the technical field of computers and comprise the following steps: calling an intelligent platform management interface instruction through a baseboard management controller to obtain various options and parameter values of a basic input/output system firmware program; combining configuration options and parameter values in each option and parameter value to obtain a plurality of first configuration files; sequentially writing the first configuration file into a firmware program of the basic input/output system, restarting the firmware program of the basic input/output system, and then acquiring a startup self-checking code; and acquiring configuration options and parameter values of the current basic input/output system firmware program, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently. According to the method and the device, the traversal test is carried out on the configuration options of the firmware program of the basic input/output system based on the baseboard management controller, so that the comprehensiveness and stability of the test are improved.

Description

Basic input/output system configuration option test method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for testing configuration options of a basic input/output system.
Background
A basic input output system (BIOS, basic Input Output System) firmware program is a set of programs that are cured onto a ROM (Read-Only Memory) chip on the motherboard within the computer. Whether the configuration options of the firmware program of the basic input/output system are reasonable, advanced and compatible determines whether the performance of the server is superior to a great extent, and meanwhile, the stability of the firmware program of the basic input/output system also determines the operation basis of the server equipment.
In the existing test method, the test of the firmware program configuration options of the basic input/output system mainly comprises function verification and pressure stability. For function verification, one is to manually modify relevant parameters of firmware program configuration options of the basic input output system and then verify relevant functions, and the other is to use relevant tools or commands to modify relevant parameters of firmware program configuration options of the basic input output system in an operating system or DOS (Disk Operating System ) Shell environment and then verify relevant functions. For the pressure stability test, the firmware program of the basic input/output system is circularly updated in different modes. The test method only has the advantages that the basic functions of option parameters and the stability of basic firmware update are verified through simple and shallow display, but the deep compatibility and stability of the firmware program configuration options of the basic input/output system are not tested, the method is easily influenced by environment and manual operation, the risk of missing the options exists, and the test is incomplete and has low efficiency.
For this reason, the above-mentioned problems are to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, a device, and a medium for testing configuration options of a basic input/output system, which can improve the comprehensiveness, stability, and efficiency of testing, and the specific scheme is as follows:
in a first aspect, the present application discloses a method for testing configuration options of a basic input/output system, including:
calling an intelligent platform management interface instruction through a baseboard management controller to obtain each option of a basic input/output system firmware program and a parameter value of the option;
determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files;
sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process;
Obtaining the configuration options of the current basic input and output system firmware program and parameter values of the configuration options, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently.
Optionally, after the step of calling the intelligent platform management interface instruction by the baseboard management controller to obtain each option of the basic input/output system firmware program and the parameter value of the option, the method further includes:
and preprocessing the options and the parameter values of the options so that the preprocessed options and the parameter values of the options meet the preset data specification criteria.
Optionally, in determining a number of configuration options and parameter values of the configuration options from the options and parameter values of the options based on a preset option classification rule, the method further includes:
determining a plurality of information options and parameter values of the information options from the options and parameter values of the options based on the preset option classification rule;
dividing a plurality of information options and parameter values of the information options into a plurality of different information categories according to a preset information option classification rule to obtain a first information file.
Optionally, the combining parameter values of a plurality of configuration options according to a preset configuration option combining rule to obtain a plurality of first configuration files includes:
dividing a plurality of configuration options and parameter values of the configuration options into a plurality of different configuration categories according to a preset configuration option classification rule;
respectively arranging and combining a plurality of configuration options under each configuration category and parameter values of the configuration options to obtain a plurality of arrangement and combination corresponding to each configuration category;
and constructing the first configuration files corresponding to each configuration category according to a plurality of permutation and combination corresponding to each configuration category, and obtaining a plurality of first configuration files.
Optionally, in the process of obtaining the configuration options of the current bios firmware program and the parameter values of the configuration options, the method further includes:
acquiring the information options of the current basic input/output system firmware program and parameter values of the information options to obtain a second information file;
correspondingly, the analyzing the test result based on the first configuration file, the second configuration file and the startup self-checking code which are written currently comprises
Comparing the first configuration file with the second configuration file which is written currently to obtain a first comparison result, and judging whether the current writing operation is successful or not according to the first comparison result;
analyzing the boot self-checking code to obtain an analysis result, and judging whether the first configuration file written currently affects the stability of the basic input/output system firmware program according to the analysis result;
comparing the information options in the first information file and the parameter values of the information options with the information options in the second information file and the parameter values of the information options to obtain a second comparison result;
and judging whether the first configuration file written currently affects the information options of the basic input and output system firmware program and the parameter values of the information options according to the second comparison result.
Optionally, the basic input/output system configuration option testing method further includes:
and storing the first configuration file, the first information file, the startup self-checking code, the first comparison result, the analysis result and the second comparison result to a target storage space.
Optionally, the basic input/output system configuration option testing method further includes:
receiving a data export instruction initiated by a user;
and determining corresponding data to be exported from the target storage space according to the data export instruction, and exporting the data to be exported.
In a second aspect, the present application discloses a bios configuration option test device, including:
the option obtaining module is used for calling the intelligent platform management interface instruction through the baseboard management controller to obtain each option of the basic input/output system firmware program and the parameter value of the option;
the configuration file generation module is used for determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the plurality of configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files;
the configuration file writing module is used for writing a plurality of first configuration files into the basic input and output system firmware program in sequence, restarting the basic input and output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process;
And the test result analysis module is used for acquiring the configuration options of the current basic input/output system firmware program and parameter values of the configuration options to obtain a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently.
In a third aspect, the present application discloses an electronic device comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the basic input/output system configuration option testing method disclosed by the prior art.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; the computer program, when executed by the processor, implements the basic input/output system configuration option test method disclosed in the foregoing.
As can be seen, the present application proposes a method for testing configuration options of a basic input/output system, including: calling an intelligent platform management interface instruction through a baseboard management controller to obtain each option of a basic input/output system firmware program and a parameter value of the option; determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files; sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process; obtaining the configuration options of the current basic input and output system firmware program and parameter values of the configuration options, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently. In summary, the present application firstly calls the intelligent platform management interface instruction by using the baseboard management controller to obtain each option of the bios firmware program and the parameter value of the option. Further, the application determines the configuration options to be tested and the parameter values of the configuration options from all the options and the parameter values of the options based on the preset option classification rules. Further, the method and the device combine the parameter values of a plurality of configuration options based on the preset configuration option combination rule to obtain a plurality of first configuration files, and then sequentially write the plurality of first configuration files into the basic input/output system firmware program, so that the method and the device realize automatic circulation write operation of the configuration options and the parameter values of the configuration options, solve the problem that the configuration options are incomplete when the basic input/output system firmware program is verified, and improve the stability, compatibility and test efficiency of testing the configuration options of the basic input/output system firmware program.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for testing configuration options of a basic input/output system disclosed in the present application;
FIG. 2 is a flowchart of a specific BIOS configuration option test method disclosed in the present application;
FIG. 3 is a flowchart of another exemplary BIOS configuration option test method disclosed herein;
FIG. 4 is a sub-flowchart of a first basic input/output system configuration option test method disclosed herein;
FIG. 5 is a sub-flowchart of a second basic input output system configuration option test method disclosed herein;
FIG. 6 is a flowchart of another exemplary BIOS configuration option test method disclosed herein;
FIG. 7 is a sub-flowchart of a third basic input output system configuration option test method disclosed herein;
FIG. 8 is a schematic diagram of a basic input/output system configuration option test device disclosed in the present application;
fig. 9 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The existing basic input/output system configuration option testing method only simply and shallowly verifies the basic functions of option parameters and the stability of basic firmware update, but does not test the deep compatibility and stability of the basic input/output system firmware program configuration options, is easily influenced by environment and manual operation, has the risk of missing options, and is incomplete in testing and low in efficiency.
Therefore, the embodiment of the application provides a basic input/output system configuration option test scheme which can improve the comprehensiveness, stability and test efficiency of the test.
The embodiment of the application discloses a basic input/output system configuration option test method, which is shown in fig. 1 and comprises the following steps:
step S11: and calling an intelligent platform management interface instruction through the baseboard management controller to obtain each option of the basic input/output system firmware program and a parameter value of the option.
In this embodiment, the baseboard management controller (Baseboard Management Controller, BMC) invokes the intelligent platform management interface command (Intelligent Platform Management Interface, IPMI) to obtain each option of the bios firmware program and the parameter value of the option.
Further, in this embodiment, the options and the parameter values of the options are preprocessed, so that the preprocessed options and the parameter values of the options meet a preset data specification criterion. Wherein the preprocessing includes, but is not limited to, data cleansing, data processing, and data conversion, specifically, data cleansing includes deleting irrelevant data, data processing includes filling in missing data, data conversion includes converting text data into numeric data, and the like.
Step S12: determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files.
In a specific embodiment, firstly, dividing a plurality of configuration options and parameter values of the configuration options into a plurality of different configuration categories according to a preset configuration option classification rule, respectively arranging and combining the plurality of configuration options and the parameter values of the configuration options under each configuration category to obtain a plurality of arrangement combinations corresponding to each configuration category, and further, constructing the first configuration file corresponding to each configuration category according to the plurality of arrangement combinations corresponding to each configuration category to obtain a plurality of first configuration files.
It should be noted that, the configuration options are configurable, and the configuration categories include, but are not limited to, a startup configuration category, a memory configuration category, and the like, and assuming that the startup configuration category includes 3 configuration options of A, B and C, each configuration option includes any parameter value, the preset configuration option combination rule is: determining a parameter value from the configuration options A, determining a parameter value from the configuration options B, determining a parameter value from the configuration options C, and combining the three parameter values to obtain a first configuration file.
Step S13: and sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process.
In this embodiment, a plurality of first configuration files are sequentially written into the bios firmware program, and after each write operation is finished, the bios firmware program is restarted, and then a power-on self-test Code (POST Code) generated in the restart process is obtained.
Step S14: obtaining the configuration options of the current basic input and output system firmware program and parameter values of the configuration options, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently.
In this embodiment, the second configuration file stores the configuration options of the current bios firmware program and the parameter values of the configuration options, that is, after restarting the bios firmware program, the embodiment obtains the parameter values of the configuration options of the current bios firmware program and the parameter values of the configuration options to obtain a second configuration file, further, in this embodiment, the first configuration file and the second configuration file are compared, if the comparison results are consistent, the current writing is successful, and if the comparison results are inconsistent, the current writing is failed. In summary, the present application realizes automatic cyclic writing of firmware program configuration options and parameter values of the bios, and further, the present application can quickly locate configuration options and parameter values that may cause machine failure based on the boot self-test code and the success or failure of current writing in the restarting process, thereby improving stability, compatibility and test efficiency of the bios firmware program configuration option test.
As can be seen, the present application proposes a method for testing configuration options of a basic input/output system, including: calling an intelligent platform management interface instruction through a baseboard management controller to obtain each option of a basic input/output system firmware program and a parameter value of the option; determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files; sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process; obtaining the configuration options of the current basic input and output system firmware program and parameter values of the configuration options, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently. In summary, the present application firstly calls the intelligent platform management interface instruction by using the baseboard management controller to obtain each option of the bios firmware program and the parameter value of the option. Further, the application determines the configuration options to be tested and the parameter values of the configuration options from all the options and the parameter values of the options based on the preset option classification rules. Further, the method and the device combine the parameter values of a plurality of configuration options based on the preset configuration option combination rule to obtain a plurality of first configuration files, and then sequentially write the plurality of first configuration files into the basic input/output system firmware program, so that the method and the device realize automatic circulation write operation of the configuration options and the parameter values of the configuration options, solve the problem that the configuration options are incomplete when the basic input/output system firmware program is verified, and improve the stability, compatibility and test efficiency of testing the configuration options of the basic input/output system firmware program.
The embodiment of the application discloses a specific testing method for configuration options of a basic input/output system, and in comparison with the previous embodiment, the embodiment further describes and optimizes step S12, step S13 and step S14. Referring to fig. 2, the method specifically includes:
step S21: and determining a plurality of information options and parameter values of the information options from the options and the parameter values of the options based on the preset option classification rules, and dividing the plurality of information options and the parameter values of the information options into a plurality of different information categories according to the preset information option classification rules to obtain a first information file.
In this embodiment, in determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on a preset option classification rule, the method further includes: and determining a plurality of information options and parameter values of the information options from the options and parameter values of the options based on the preset option classification rule, and obtaining the first information file.
It should be noted that the information options are options that need not be configured and tested, but need to be displayed, and the information options include, but are not limited to, firmware information, memory information, PCIE information (peripheral component interconnect express, high-speed serial computer expansion bus standard), and the like.
In summary, the present application divides the options and parameter values of the options into configuration options and parameter values of the configuration options and parameter values of information options and parameter values of the information options.
Step S22: and sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process.
The more specific process of step S22 is shown in the foregoing steps, and will not be described herein.
Step S23: obtaining the configuration options of the current basic input output system firmware program and the parameter values of the configuration options to obtain a second configuration file, and obtaining the information options of the current basic input output system firmware program and the parameter values of the information options to obtain a second information file.
In this embodiment, after restarting the bios firmware program, the configuration options of the bios firmware program and the parameter values of the configuration options are obtained, so as to obtain a second configuration file. And further acquiring the information options of the current basic input/output system firmware program and parameter values of the information options to obtain a second information file.
Step S24: comparing the first configuration file with the second configuration file which is written currently to obtain a first comparison result, and judging whether the current writing operation is successful or not according to the first comparison result.
As can be seen from the above analysis, in this embodiment, the first configuration file and the second configuration file are compared, if the comparison results are consistent, the current writing is successful, and if the comparison results are inconsistent, the current writing is failed.
Step S25: analyzing the boot self-checking code to obtain an analysis result, and judging whether the first configuration file written currently affects the stability of the basic input/output system firmware program according to the analysis result.
As can be seen from the above analysis, in this embodiment, the boot self-test code is parsed to obtain a parsing result, and whether the stability of the bios firmware program is affected by the first configuration file currently written is determined according to the parsing result.
Step S26: and comparing the information options in the first information file and the parameter values of the information options with the information options in the second information file and the parameter values of the information options to obtain a second comparison result.
Step S27: and judging whether the first configuration file written currently affects the information options of the basic input and output system firmware program and the parameter values of the information options according to the second comparison result.
In this embodiment, the parameter values of the information options in the first information file and the parameter values of the information options in the second information file are compared with each other, if the comparison results are consistent, it is indicated that the currently written first configuration file does not affect the parameter values of the information options and the information options of the bios firmware program, and if the comparison results are inconsistent, it is indicated that the currently written first configuration file affects the parameter values of the information options and the information options of the bios firmware program.
Further, in this embodiment, the first configuration file, the first information file, the boot self-checking code, the first comparison result, the analysis result, and the second comparison result may be stored in a target storage space. And then receiving a data export instruction initiated by a user, determining corresponding data to be exported from the target storage space according to the data export instruction, and exporting the data to be exported. In this way, the user can intuitively analyze and view the image.
Furthermore, the embodiment can realize remote multi-machine batch verification management and can also be suitable for verification of other firmware programs. In addition, the embodiment can automatically generate a data analysis report, a chart and the like so as to obtain the related result more simply and intuitively.
The following describes the testing method of the firmware program configuration options of the basic input/output system according to a specific embodiment:
it should be noted first that this application mainly includes eight modules: the system comprises a BMC processing module, a classification module, an information processing module, a configuration processing module, a data running module, a data analysis module, a storage module and a data export module.
The functions of each module include: (1) a BMC processing module: the IPMI command is responsible for calling IPMI command to acquire/write BIOS firmware program options and parameter values, acquiring a startup self-checking code generated in the starting process of the BIOS firmware program, acquiring log information, realizing restarting of the machine and the like; (2) a classification module: the method comprises the steps of classifying acquired BIOS firmware program options to obtain information display items (namely information options) and configuration options, and transmitting related classification results to corresponding processing modules after classification; (3) an information processing module: the method is responsible for further classifying the received information display items, and the classified information display items are transmitted to the storage module after the classification processing is completed; (4) configuring a processing module: classifying received configuration options according to corresponding rules, combining parameter values of the configuration options to generate corresponding configuration files, and transmitting the configuration files to a storage module; (5) a data operation module: responsible for performing a recurring write operation on the received configuration file; (6) a data analysis module: the system is responsible for carrying out comparison analysis on various information stored in the storage module; (7) a storage module: the method is used for storing information display items, configuration files, log files and the like after classification processing; (8) a data deriving module: the method is mainly used for leading out various information in the storage module by a tester.
It should be further noted that, the general flow of the method for testing the bios firmware program configuration options described in the present application is as follows:
referring to fig. 3, after the program starts to execute, the BMC processing module obtains options, and classifies the options to obtain information options and configuration options. Further, the information option part is further classified and stored, the configuration options are classified and combined to obtain a configuration file, then the configuration file is executed, and corresponding execution result data are stored for data comparison analysis.
In summary, the method flow in the present application mainly includes 5 parts: the BMC processing part, the information processing part, the configuration execution part, the data analysis part and the data export part specifically comprise:
1. BMC processing section:
referring to fig. 4, a user selects a start task, where the task is to execute a test of BIOS configuration options, and at this time, the BMC processing module is called, and calls a corresponding IPMI instruction according to a requirement to obtain all option names and parameter values in the BIOS firmware program, and sends the option names and parameter values to the classification module. The classifying module classifies the obtained options and parameter values and sends the classified options and parameter values to the corresponding processing module, namely, the information options and parameter values are sent to the information processing module, and the configuration options and parameter values are sent to the configuration processing module.
2. An information processing section:
referring to fig. 5, the information processing module receives the information options and parameter values transferred from the classification module, classifies the information options and parameter values, and then transfers the classified information options and parameter values to the storage module. The configuration processing module receives the configuration options and parameter values transmitted by the classification module, classifies and combines the configuration options and parameter values to generate different configuration files, and then transmits the configuration files to the storage module.
3. A configuration execution section:
referring to fig. 6, when a configuration option test instruction initiated by a user is received, the data running module firstly calls a configuration file in the storage module, and then calls a firmware option write command in the BMC processing module, so that the configuration file is written into the BIOS firmware program in sequence. Further, after the write operation of one configuration file is executed, the BMC processing module is accessed, the corresponding IPMI instruction is called to execute the restarting operation, and in the restarting operation process, the BMC can automatically record the startup self-checking code of the machine. After the restart is completed, the firmware program processing part (i.e. the BMC processing part) and the information processing part are executed, specifically, the firmware program processing part is executed to obtain the configuration options and parameter values of the current BIOS firmware program, and the information processing part is executed to obtain the information options and parameter values of the current BIOS firmware program, so that the analysis of the currently written configuration file is facilitated. Meanwhile, the BMC processing module can call a corresponding command and write the boot self-checking code generated in the starting process into the storage module, and it can be understood that the whole writing operation process is automatically circulated until all configuration files are written.
4. A data analysis section:
referring to fig. 7, the data analysis module mainly processes three types of data stored in the storage module:
information processing section data (i.e., information options and parameter values): the BMC processing module calls a corresponding command, acquires information options and parameter values of the current BIOS firmware program, and compares the information options and parameter values with the information options and parameter values stored in the storage module in advance.
POST Code log (i.e., boot self-test Code): and analyzing the POST Code in the storage module, and outputting an analysis result so as to feed back problematic configuration options.
Configuration file: and comparing the configuration file written in each time with the configuration file obtained after the corresponding restarting so as to judge whether the writing is successful or not, and outputting the result to the storage module.
5. A data deriving section:
after the operation is finished, the tester selects the export operation and designates the export position, and the data in the storage module is called and exported to the designated position.
It should be noted that, the tester can obtain the problematic configuration file according to the analysis result of the POST Code and the comparison result of the configuration file, and then quickly locate the configuration options and parameter values that can cause the machine failure, and quickly locate incompatible parameter values of the configuration options.
In a specific embodiment, the rules and algorithms adopted in classifying and combining the collected BIOS firmware program options in the present application are algorithms of a rule-based expert system. In the algorithm of the rule-based expert system, the rule generally adopts the structure of IF (condition) THEN (action), and when the condition part of the rule is satisfied, the rule is excited, and the action part of the rule is executed, which is expressed as follows:
IF condition THEN action
where the condition represents a condition of the rule and the action represents an action of the rule. When the condition is satisfied, an action is performed.
Further, classifying BIOS firmware program configuration options by the rule-based expert system algorithm mainly includes the following:
1. option pretreatment:
data=data.dropna () # delete deletion value
data=data.replace ({ "Processor": labelEncoder (). Fit_transform (data [ "Processor" ]) }) # converts Processor class variables to numerical variables
data=data.replace ({ "Memory": labelEncoder (). Fit_transform [ "Memory" ]) } ] # converts Memory class variables into numerical variables
data=data.replace ({ "Hard Drive": labelEncoder (). Fit_transform (data [ "Hard Drive" ]) }) # converts Hard Drive class variables to numerical variables
2. Formulating classification rules:
{ "name": "classifies a configuration item as a configuration processing option" } according to parameter type "," condition ": parameter type= editable", "action": ",
{ "name": "classifies the configuration item as a configuration processing option" } according to the parameter type "," condition ":" parameter source= error management "," action ":",
{ "name": "classifies configuration items as information display" } according to parameter type "," condition ":" parameter source= homepage "," action "
3. Applying classification rules: classification rules are applied to data preprocessed using the data by the programming language.
4. Outputting a classification result: and outputting the classification result to a text file, an Excel file or a database.
Further, when the classified configuration options are combined, a full-arrangement algorithm may be used, that is, the configuration options are numbered first, for example, the first type is numbered 1, the second type is numbered 2, and the third type is numbered 3, further, for the number 1, a plurality of configuration options are included, each configuration option further includes a plurality of parameter values, a parameter value is determined from each configuration option, and then full arrangement is performed.
In summary, the present application realizes automatic cyclic writing of firmware program configuration options and parameter values of the basic input/output system, and further, the present application can quickly locate configuration options and parameter values that may cause machine failure based on the boot self-test code and the success or failure of current writing in the restarting process, thereby improving stability, compatibility and test efficiency of testing the firmware program configuration options of the basic input/output system, and improving stability, test quality and running stability of server products.
Correspondingly, the embodiment of the application also discloses a testing device for the firmware program configuration options of the basic input/output system, and referring to fig. 8, the device comprises:
the option obtaining module 11 is configured to call an intelligent platform management interface instruction through the baseboard management controller to obtain each option of the basic input/output system firmware program and a parameter value of the option;
a configuration file generating module 12, configured to determine a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on a preset option classification rule, and combine the parameter values of the plurality of configuration options according to a preset configuration option combination rule to obtain a plurality of first configuration files;
a configuration file writing module 13, configured to sequentially write a plurality of first configuration files into the bios firmware program, restart the bios firmware program after each writing operation is finished, and then obtain a boot self-checking code generated in a restarting process;
and the test result analysis module 14 is configured to obtain the configuration options of the current bios firmware program and parameter values of the configuration options, obtain a second configuration file, and perform test result analysis based on the first configuration file, the second configuration file, and the boot self-test code that are written currently.
The more specific working process of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
As can be seen, the present application proposes a method for testing configuration options of a basic input/output system, including: calling an intelligent platform management interface instruction through a baseboard management controller to obtain each option of a basic input/output system firmware program and a parameter value of the option; determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files; sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process; obtaining the configuration options of the current basic input and output system firmware program and parameter values of the configuration options, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently. In summary, the present application firstly calls the intelligent platform management interface instruction by using the baseboard management controller to obtain each option of the bios firmware program and the parameter value of the option. Further, the application determines the configuration options to be tested and the parameter values of the configuration options from all the options and the parameter values of the options based on the preset option classification rules. Further, the method and the device combine the parameter values of a plurality of configuration options based on the preset configuration option combination rule to obtain a plurality of first configuration files, and then sequentially write the plurality of first configuration files into the basic input/output system firmware program, so that the method and the device realize automatic circulation write operation of the configuration options and the parameter values of the configuration options, solve the problem that the configuration options are incomplete when the basic input/output system firmware program is verified, and improve the stability, compatibility and test efficiency of testing the configuration options of the basic input/output system firmware program.
Further, the embodiment of the application also provides electronic equipment. Fig. 9 is a block diagram of an electronic device 20, according to an exemplary embodiment, and nothing in the figure should be taken as limiting the scope of use of the present application.
Fig. 9 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 for realizing the following steps:
calling an intelligent platform management interface instruction through a baseboard management controller to obtain each option of a basic input/output system firmware program and a parameter value of the option;
determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files;
Sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process;
obtaining the configuration options of the current basic input and output system firmware program and parameter values of the configuration options, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently.
In some embodiments, the processor may further implement the following steps by executing the computer program stored in the memory:
and preprocessing the options and the parameter values of the options so that the preprocessed options and the parameter values of the options meet the preset data specification criteria.
In some embodiments, the processor may further implement the following steps by executing the computer program stored in the memory:
determining a plurality of information options and parameter values of the information options from the options and parameter values of the options based on the preset option classification rule;
Dividing a plurality of information options and parameter values of the information options into a plurality of different information categories according to a preset information option classification rule to obtain a first information file.
In some embodiments, the processor may further implement the following steps by executing the computer program stored in the memory:
dividing a plurality of configuration options and parameter values of the configuration options into a plurality of different configuration categories according to a preset configuration option classification rule;
respectively arranging and combining a plurality of configuration options under each configuration category and parameter values of the configuration options to obtain a plurality of arrangement and combination corresponding to each configuration category;
and constructing the first configuration files corresponding to each configuration category according to a plurality of permutation and combination corresponding to each configuration category, and obtaining a plurality of first configuration files.
In some embodiments, the processor may further implement the following steps by executing the computer program stored in the memory:
acquiring the information options of the current basic input/output system firmware program and parameter values of the information options to obtain a second information file;
Correspondingly, the analyzing the test result based on the first configuration file, the second configuration file and the startup self-checking code which are written currently comprises
Comparing the first configuration file with the second configuration file which is written currently to obtain a first comparison result, and judging whether the current writing operation is successful or not according to the first comparison result;
analyzing the boot self-checking code to obtain an analysis result, and judging whether the first configuration file written currently affects the stability of the basic input/output system firmware program according to the analysis result;
comparing the information options in the first information file and the parameter values of the information options with the information options in the second information file and the parameter values of the information options to obtain a second comparison result;
and judging whether the first configuration file written currently affects the information options of the basic input and output system firmware program and the parameter values of the information options according to the second comparison result.
In some embodiments, the processor may further implement the following steps by executing the computer program stored in the memory:
And storing the first configuration file, the first information file, the startup self-checking code, the first comparison result, the analysis result and the second comparison result to a target storage space.
In some embodiments, the processor may further implement the following steps by executing the computer program stored in the memory:
receiving a data export instruction initiated by a user;
and determining corresponding data to be exported from the target storage space according to the data export instruction, and exporting the data to be exported.
In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 26 is used to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 24 is used for obtaining external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application needs, which is not limited herein.
The memory 22 may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or the like, and the resources stored thereon may include the computer program 221, which may be stored in a temporary or permanent manner. The computer program 221 may further include a computer program for performing other specific tasks in addition to the computer program for performing the bios configuration option test method performed by the electronic device 20 as disclosed in any of the foregoing embodiments.
Further, the embodiment of the application also discloses a computer readable storage medium for storing a computer program; the computer program, when executed by the processor, implements the basic input/output system configuration option test method disclosed in the foregoing.
For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this application, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and the same or similar parts between the embodiments refer to the devices disclosed in the embodiments, so that the description is relatively simple because it corresponds to the method disclosed in the embodiments, and the relevant parts refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above describes in detail a method, apparatus, device, and storage medium for testing configuration options of a basic input/output system provided in the present application, and specific examples are applied to illustrate principles and embodiments of the present application, where the descriptions of the above examples are only used to help understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for testing configuration options of a basic input/output system, comprising:
calling an intelligent platform management interface instruction through a baseboard management controller to obtain each option of a basic input/output system firmware program and a parameter value of the option;
determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files;
Sequentially writing a plurality of first configuration files into the basic input/output system firmware program, restarting the basic input/output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process;
obtaining the configuration options of the current basic input and output system firmware program and parameter values of the configuration options, obtaining a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently.
2. The method for testing the configuration options of the bios according to claim 1, wherein after the step of calling the intelligent platform management interface command by the baseboard management controller to obtain each option of the bios firmware program and the parameter values of the options, the method further comprises:
and preprocessing the options and the parameter values of the options so that the preprocessed options and the parameter values of the options meet the preset data specification criteria.
3. The bios configuration option test method according to claim 1 or 2, wherein in determining a number of configuration options and parameter values of the configuration options from each of the options and parameter values of the options based on a preset option classification rule, further comprising:
Determining a plurality of information options and parameter values of the information options from the options and parameter values of the options based on the preset option classification rule;
dividing a plurality of information options and parameter values of the information options into a plurality of different information categories according to a preset information option classification rule to obtain a first information file.
4. The bios configuration option test method according to claim 3, wherein the combining parameter values of a plurality of configuration options according to a preset configuration option combining rule to obtain a plurality of first configuration files includes:
dividing a plurality of configuration options and parameter values of the configuration options into a plurality of different configuration categories according to a preset configuration option classification rule;
respectively arranging and combining a plurality of configuration options under each configuration category and parameter values of the configuration options to obtain a plurality of arrangement and combination corresponding to each configuration category;
and constructing the first configuration files corresponding to each configuration category according to a plurality of permutation and combination corresponding to each configuration category, and obtaining a plurality of first configuration files.
5. The bios configuration option test method as claimed in claim 4, wherein in obtaining the configuration option of the bios firmware program and the parameter value of the configuration option, obtaining a second configuration file further comprises:
acquiring the information options of the current basic input/output system firmware program and parameter values of the information options to obtain a second information file;
correspondingly, the analyzing the test result based on the first configuration file, the second configuration file and the startup self-checking code which are written currently comprises
Comparing the first configuration file with the second configuration file which is written currently to obtain a first comparison result, and judging whether the current writing operation is successful or not according to the first comparison result;
analyzing the boot self-checking code to obtain an analysis result, and judging whether the first configuration file written currently affects the stability of the basic input/output system firmware program according to the analysis result;
comparing the information options in the first information file and the parameter values of the information options with the information options in the second information file and the parameter values of the information options to obtain a second comparison result;
And judging whether the first configuration file written currently affects the information options of the basic input and output system firmware program and the parameter values of the information options according to the second comparison result.
6. The bios configuration option test method of claim 5, further comprising:
and storing the first configuration file, the first information file, the startup self-checking code, the first comparison result, the analysis result and the second comparison result to a target storage space.
7. The bios configuration option test method of claim 6, further comprising:
receiving a data export instruction initiated by a user;
and determining corresponding data to be exported from the target storage space according to the data export instruction, and exporting the data to be exported.
8. A basic input output system configuration option test device, comprising:
the option obtaining module is used for calling the intelligent platform management interface instruction through the baseboard management controller to obtain each option of the basic input/output system firmware program and the parameter value of the option;
The configuration file generation module is used for determining a plurality of configuration options and parameter values of the configuration options from the options and parameter values of the options based on preset option classification rules, and combining the parameter values of the plurality of configuration options according to preset configuration option combination rules to obtain a plurality of first configuration files;
the configuration file writing module is used for writing a plurality of first configuration files into the basic input and output system firmware program in sequence, restarting the basic input and output system firmware program after each writing operation is finished, and then acquiring a starting self-checking code generated in the restarting process;
and the test result analysis module is used for acquiring the configuration options of the current basic input/output system firmware program and parameter values of the configuration options to obtain a second configuration file, and analyzing test results based on the first configuration file, the second configuration file and the startup self-checking code which are written currently.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the basic input output system configuration option test method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the basic input output system configuration option test method of any one of claims 1 to 7.
CN202410026201.2A 2024-01-05 2024-01-05 Basic input/output system configuration option test method, device, equipment and medium Pending CN117850914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410026201.2A CN117850914A (en) 2024-01-05 2024-01-05 Basic input/output system configuration option test method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410026201.2A CN117850914A (en) 2024-01-05 2024-01-05 Basic input/output system configuration option test method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117850914A true CN117850914A (en) 2024-04-09

Family

ID=90535746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410026201.2A Pending CN117850914A (en) 2024-01-05 2024-01-05 Basic input/output system configuration option test method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117850914A (en)

Similar Documents

Publication Publication Date Title
US8839107B2 (en) Context based script generation
US9069903B2 (en) Multi-platform test automation enhancement
US8713526B2 (en) Assigning runtime artifacts to software components
US20080270515A1 (en) Method and apparatus for migrating the system environment on which the applications depend
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
JPH0934723A (en) Commitment of introduction plan object for introduction of application program at network
CN109902017A (en) A kind of method and terminal based on RobotFramework test Dubbo interface
CN110750415B (en) Interface service configuration method, device, medium and computer equipment
CN110543427A (en) Test case storage method and device, electronic equipment and storage medium
CN112214227A (en) Edge server mirror image customization and deployment system and method
US11422917B2 (en) Deriving software application dependency trees for white-box testing
CN115757014A (en) Power consumption testing method and device
CN111857752A (en) PostgreSQL database installation method, device and equipment
CN112416747A (en) Test case execution method, device, equipment and medium
CN113094251A (en) Embedded system testing method and device, computer equipment and storage medium
CN117850914A (en) Basic input/output system configuration option test method, device, equipment and medium
CN115185819A (en) System testing method, device, equipment and computer readable storage medium
JP6516343B2 (en) Application user interface automatic test method, electronic device, system and storage medium
CN114297057A (en) Design and use method of automatic test case
CN114385493A (en) Performance test method and device, electronic equipment and storage medium
CN114610446A (en) Method, device and system for automatically injecting probe
CN113238901A (en) Multi-device automatic testing method and device, storage medium and computer device
CN112241141A (en) Hardware configuration method, system, device and medium of PLC control system
CN113805960B (en) YAML-based server configuration method, device, terminal and storage medium
CN114785847A (en) Network control software development and configuration method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination