CN109669827B - Automatic test method for BIOS module TurboMode function - Google Patents
Automatic test method for BIOS module TurboMode function Download PDFInfo
- Publication number
- CN109669827B CN109669827B CN201811535646.4A CN201811535646A CN109669827B CN 109669827 B CN109669827 B CN 109669827B CN 201811535646 A CN201811535646 A CN 201811535646A CN 109669827 B CN109669827 B CN 109669827B
- Authority
- CN
- China
- Prior art keywords
- turbomode
- cpu
- current
- automatic
- function
- 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.)
- Active
Links
- 238000010998 test method Methods 0.000 title claims abstract description 7
- 238000012360 testing method Methods 0.000 claims abstract description 51
- 238000000034 method Methods 0.000 claims abstract description 19
- 241000282326 Felis catus Species 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 12
- 230000006870 function Effects 0.000 abstract description 9
- 238000012795 verification Methods 0.000 abstract description 6
- 238000011161 development Methods 0.000 abstract description 3
- 230000008859 change Effects 0.000 abstract description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000009849 deactivation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses an automatic testing method of a BIOS module TurboMode function, which depends on an AMI general tool SCE, a script takes JAVA as a main development language to realize the automatic testing of a TurboMode option, the model of a current machine is automatically obtained aiming at the starting and closing of the TurboMode option, and the corresponding CPU core number and the frequency information of each core number under different instruction sets are obtained from a configuration library according to the model to carry out automatic change and verification. The script is an automatic test script, the test method is simple and convenient, and the test process result is displayed in the whole process, so that the verification of the functional module is changed from the traditional manual operation into the automatic operation, the labor test cost can be greatly saved after the popularization and the application, and the productivity operation of departments is improved.
Description
Technical Field
The invention relates to the technical field of computer system testing, in particular to an automatic testing method for a Basic Input Output System (BIOS) module TurboMode function.
Background
Turbo Mode is a dynamic acceleration switch setting, also called overclocking technology. The main principle is as follows: by analyzing the load condition of the current CPU, intelligently and completely closing some cores which cannot be used, reserving energy sources for the cores which are in use, and enabling the cores to operate at higher frequency, thereby further improving the performance; on the contrary, when a plurality of cores are needed, the corresponding cores are dynamically started, and the frequency is intelligently adjusted.
The traditional TurboMode functional test is basically performed manually, because all the core numbers of a CPU need to be traversed, and meanwhile, the test needs to be performed under different instruction set pressures under each core number, so that repeated and multi-cycle frequent tests for the option are required by testers, the test is time-consuming and labor-consuming, no log is used as a record in the whole process, the subsequent disk replication is difficult, and the multiplexing among multiple projects is very difficult.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide an automatic testing method for the TurboMode function of a BIOS module, which relies on an AMI generic tool SCE, and a script is based on JAVA language to implement an automatic test for the TurboMode option.
In order to achieve the purpose, the invention is realized by the following technical scheme: an automatic test method for a BIOS module TurboMode function comprises the following steps:
step 1: defining an automation project configuration file in an automation framework of a current system, wherein the automation project configuration file is used for recording configuration information under the current system;
step 2: obtaining the CPU model of the computer to be tested by checking the/proc/CPU info file;
and step 3: modifying the TurboMode option through the SCE tool;
and 4, step 4: obtaining the latest value of the current TurboMode option through an SCE tool;
and 5: checking whether the current TurboMode option is successfully modified, if so, turning to the next step, and if not, failing the test;
step 6: restarting the system;
and 7: setting the running core number of the current CPU through an SCE tool;
and 8: pressurizing the CPU through a PTU tool, and acquiring the frequency of the pressurized CPU;
and step 9: acquiring the CPU frequency under the current pressure from the automatic project configuration file through the CPU model and the running core number of the current CPU;
step 10: comparing the pressurized CPU frequency with the CPU frequency under the current pressure, and if the pressurized CPU frequency is consistent with the CPU frequency under the current pressure, successfully testing; if not, the test fails.
Further, the step 2 comprises:
step 21: executing a command for acquiring the CPU model of the machine to be tested: the cat/proc/cpuinfo | grep 'model name' | uniq to obtain the CPU model of the computer to be tested;
step 22: and acquiring the maximum core number of the CPU from the automation project configuration file.
Further, the step 3 specifically includes: and modifying the TurboMode option value from Disabled to Enabled through the SCE tool.
Further, the step 3 is followed by: and restarting the system.
Further, the step 4 comprises: the TurboMode option value is led to a bios.
Further, the step 5 specifically includes: txt file is checked to see if the current TurboMode option value is Enabled, if yes, go to the next step, if no, the test fails.
Further, the automatic project configuration file is an Excel form file.
Further, the current system adopts a Linux system.
Compared with the prior art, the invention has the beneficial effects that: the invention provides an automatic testing method of a BIOS module TurboMode function, which depends on an AMI general tool SCE, a script takes JAVA as a main development language to realize the automatic testing of a TurboMode option, the model of a current machine is automatically obtained aiming at the starting and closing of the TurboMode option, and the corresponding CPU core number and the frequency information of each core number under different instruction sets are obtained from a configuration library according to the model to carry out automatic change and verification. The script is an automatic test script, the test method is simple and convenient, and the test process result is displayed in the whole process, so that the verification of the functional module is changed from the traditional manual operation into the automatic operation, the labor test cost can be greatly saved after the popularization and the application, and the productivity operation of departments is improved.
The invention realizes that the script can be automatically tested in the whole process after the tester inputs the parameters, the whole testing process can be displayed in real time, and log records are provided to reduce the consumption of manpower. The manual test is changed into the automatic test, only the script needs to be operated, the test can be started, log is stored in the whole test process or the result, the test is convenient to check, one set of script is maintained, the multiplexing of a plurality of projects can be realized, the test efficiency is improved, the human resources are saved, and the product quality is ensured.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
FIG. 1 is a flow chart of a method according to a first embodiment of the present invention.
FIG. 2 is a flow chart of a method of a second embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings.
The first embodiment is as follows:
as shown in fig. 1, an automatic testing method for the turbo mode function of the BIOS module includes the following steps:
step 1: defining an automation project configuration file in an automation framework of a current system, wherein the automation project configuration file is used for recording configuration information under the current system;
step 2: obtaining the CPU model of the computer to be tested by checking the/proc/CPU info file;
and step 3: modifying the TurboMode option through the SCE tool;
and 4, step 4: obtaining the latest value of the current TurboMode option through an SCE tool;
and 5: checking whether the current TurboMode option is successfully modified, if so, turning to the next step, and if not, failing the test;
step 6: restarting the system;
and 7: setting the running core number of the current CPU through an SCE tool;
and 8: pressurizing the CPU through a PTU tool, and acquiring the frequency of the pressurized CPU;
and step 9: acquiring the CPU frequency under the current pressure from the automatic project configuration file through the CPU model and the running core number of the current CPU;
step 10: comparing the pressurized CPU frequency with the CPU frequency under the current pressure, and if the pressurized CPU frequency is consistent with the CPU frequency under the current pressure, successfully testing; if not, the test fails.
Example two:
as shown in fig. 2, an automatic testing method for the turbo mode function of the BIOS module includes the following steps:
step 1: an automation project configuration file is defined in an automation framework of the current Linux system, and the automation project configuration file is used for recording configuration information under the current system.
Step 2: executing a command for acquiring the CPU model of the machine to be tested: and (3) obtaining the CPU model of the computer to be tested by cat/proc/cpuinfo | grep 'model name' | uniq.
And step 3: and acquiring the maximum core number of the CPU from the automation project configuration file.
And 4, step 4: and modifying the TurboMode option value from Disabled to Enabled through the SCE tool.
The specific program implementation process and content of the step 4 are as follows:
and 5: and restarting the system.
Step 6: the TurboMode option value is led to a bios.
The specific program implementation process and content of step 6 are as follows:
and 7: txt file is checked to see if the current TurboMode option value is Enabled, if yes, go to the next step, if no, the test fails.
And 8: and restarting the system.
And step 9: and setting the running core number of the current CPU through the SCE tool.
Step 10: and pressurizing the CPU through the PTU tool, and acquiring the pressurized CPU frequency.
Step 11: and acquiring the CPU frequency under the current pressure from the automatic project configuration file through the CPU model and the current running core number of the CPU.
Step 12: comparing the pressurized CPU frequency with the CPU frequency under the current pressure, and if the pressurized CPU frequency is consistent with the CPU frequency under the current pressure, successfully testing; if not, the test fails.
The automatic project configuration file is an Excel table file.
In the method for automatically testing the turbo mode function of the BIOS module, which is provided by this embodiment, by relying on an AMI universal tool SCE, a script uses JAVA as a main development language to implement an automatic test of a turbo mode option, a model of a current machine is automatically obtained for activation and deactivation of the turbo mode option, and a CPU core number corresponding to the model and frequency information of each core number under different instruction sets are obtained from a configuration library according to the model, so as to perform automatic modification and verification. The script is an automatic test script, the test method is simple and convenient, and the test process result is displayed in the whole process, so that the verification of the functional module is changed from the traditional manual operation into the automatic operation, the labor test cost can be greatly saved after the popularization and the application, and the productivity operation of departments is improved.
The invention is further described with reference to the accompanying drawings and specific embodiments. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the present application.
Claims (7)
1. An automatic test method for a BIOS module TurboMode function is characterized by comprising the following steps:
step 1: defining an automation project configuration file in an automation framework of a current system, wherein the automation project configuration file is used for recording configuration information under the current system;
step 2: obtaining the CPU model of the computer to be tested by checking the/proc/CPU info file;
and step 3: changing the TurboMode option value from Disabled to Enenabled through the SCE tool;
and 4, step 4: obtaining the latest value of the current TurboMode option through an SCE tool;
and 5: checking whether the current TurboMode option is successfully modified, if so, turning to the next step, and if not, failing the test;
step 6: restarting the system;
and 7: setting the running core number of the current CPU through an SCE tool;
and 8: pressurizing the CPU through a PTU tool, and acquiring the frequency of the pressurized CPU;
and step 9: acquiring the CPU frequency under the current pressure from the automatic project configuration file through the CPU model and the running core number of the current CPU;
step 10: comparing the pressurized CPU frequency with the CPU frequency under the current pressure, and if the pressurized CPU frequency is consistent with the CPU frequency under the current pressure, successfully testing; if not, the test fails.
2. The method for automatically testing the TurboMode function of the BIOS module of claim 1, wherein the step 2 comprises:
step 21: executing a command for acquiring the CPU model of the machine to be tested: the cat/proc/cpuinfo | grep 'model name' | uniq to obtain the CPU model of the computer to be tested;
step 22: and acquiring the maximum core number of the CPU from the automation project configuration file.
3. The method for automatically testing the TurboMode function of the BIOS module of claim 1, further comprising after the step 3: and restarting the system.
4. The method for automatically testing the TurboMode function of the BIOS module of claim 3, wherein the step 4 comprises: the TurboMode option value is led to a bios.
5. The method for automatically testing the TurboMode function of the BIOS module of claim 4, wherein the step 5 comprises: txt file is checked to see if the current TurboMode option value is Enabled, if yes, go to the next step, if no, the test fails.
6. The automatic testing method of the BIOS module TurboMode function of claim 1, wherein: the automatic project configuration file is an Excel form file.
7. The automatic testing method of the BIOS module TurboMode function of claim 1, wherein: the current system adopts a Linux system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535646.4A CN109669827B (en) | 2018-12-14 | 2018-12-14 | Automatic test method for BIOS module TurboMode function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535646.4A CN109669827B (en) | 2018-12-14 | 2018-12-14 | Automatic test method for BIOS module TurboMode function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109669827A CN109669827A (en) | 2019-04-23 |
CN109669827B true CN109669827B (en) | 2021-10-29 |
Family
ID=66143803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811535646.4A Active CN109669827B (en) | 2018-12-14 | 2018-12-14 | Automatic test method for BIOS module TurboMode function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669827B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113032229B (en) * | 2021-02-24 | 2022-09-20 | 山东英信计算机技术有限公司 | JAVA performance test method, system and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101676879A (en) * | 2008-09-17 | 2010-03-24 | 鸿富锦精密工业(深圳)有限公司 | Over-frequency capability test system and method |
CN102479135A (en) * | 2010-11-26 | 2012-05-30 | 英业达集团(天津)电子技术有限公司 | Overclocking test method for multiple core processors |
TW201227274A (en) * | 2010-12-22 | 2012-07-01 | Inventec Corp | Overclock test method for core processors |
CN107729193A (en) * | 2017-09-14 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of Linpack test Automatic Optimal collocation methods and system based on Purley platforms |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8086940B2 (en) * | 2008-04-28 | 2011-12-27 | Newport Media, Inc. | Iterative decoding between turbo and RS decoders for improving bit error rate and packet error rate |
US20140136823A1 (en) * | 2012-11-15 | 2014-05-15 | Daniel J. Ragland | Enabling A User And/Or Software To Dynamically Control Performance Tuning Of A Processor |
-
2018
- 2018-12-14 CN CN201811535646.4A patent/CN109669827B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101676879A (en) * | 2008-09-17 | 2010-03-24 | 鸿富锦精密工业(深圳)有限公司 | Over-frequency capability test system and method |
CN102479135A (en) * | 2010-11-26 | 2012-05-30 | 英业达集团(天津)电子技术有限公司 | Overclocking test method for multiple core processors |
TW201227274A (en) * | 2010-12-22 | 2012-07-01 | Inventec Corp | Overclock test method for core processors |
CN107729193A (en) * | 2017-09-14 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of Linpack test Automatic Optimal collocation methods and system based on Purley platforms |
Non-Patent Citations (1)
Title |
---|
基于FPGA/MCU的电化学阻抗测试设备开发;唐校兵;《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》;20111215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109669827A (en) | 2019-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111950212A (en) | Efficient multi-mode verification platform and method | |
CN111782265A (en) | Software resource system based on field level blood relationship and establishment method thereof | |
CN105760296A (en) | Automation testing control method, device and terminal | |
CN110908894B (en) | Visual report tool automatic testing method and device based on vuex | |
CN106919612A (en) | A kind of processing method and processing device of SQL script of reaching the standard grade | |
CN101262681A (en) | Automatic testing mobile terminal and its implementation method | |
CN106484613A (en) | A kind of interface automated test frame based on fitnese | |
CN101174237B (en) | Automatic test method, system and test device | |
CN102495790A (en) | Version change difference identifier and version change identification method | |
CN108459951A (en) | test method and device | |
CN102486748B (en) | Method and device for performance test | |
CN107590037A (en) | A kind of method that EDPP tests are carried out to server GPU | |
CN109669827B (en) | Automatic test method for BIOS module TurboMode function | |
CN114281694A (en) | ETL framework-based data warehouse operation scheduling method, system and computer readable medium | |
CN112216340A (en) | Hard disk test method and device, storage medium and electronic equipment | |
CN101458653A (en) | Automatic test method for tax controller of cash register | |
CN112256576A (en) | Man-machine dialogue corpus testing method, device, equipment and storage medium | |
CN115794639B (en) | Visual test based on flow and visual simulation test system and method | |
CN102521124B (en) | Method and system for outputting failure reasons | |
CN115827636A (en) | Method for storing and reading simulation data of logic system design from waveform database | |
CN116069628A (en) | Intelligent-treatment software automatic regression testing method, system and equipment | |
CN111814415A (en) | Efficient regression testing method for chip verification | |
CN112052181A (en) | Embedded software automatic test system based on software engineering | |
CN111061749A (en) | Database transaction concurrent redo method and device based on transaction sequence analysis | |
CN116414610B (en) | Method, device, equipment and storage medium for acquiring abnormal log fragments |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |