[go: up one dir, main page]

CN118409920B - Method, apparatus, electronic device and storage medium for testing processor - Google Patents

Method, apparatus, electronic device and storage medium for testing processor Download PDF

Info

Publication number
CN118409920B
CN118409920B CN202410874033.2A CN202410874033A CN118409920B CN 118409920 B CN118409920 B CN 118409920B CN 202410874033 A CN202410874033 A CN 202410874033A CN 118409920 B CN118409920 B CN 118409920B
Authority
CN
China
Prior art keywords
test
tested
frequency
cbd
voltage point
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
Application number
CN202410874033.2A
Other languages
Chinese (zh)
Other versions
CN118409920A (en
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.)
Shanghai Bi Ren Technology Co ltd
Original Assignee
Shanghai Bi Ren 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 Shanghai Bi Ren Technology Co ltd filed Critical Shanghai Bi Ren Technology Co ltd
Priority to CN202410874033.2A priority Critical patent/CN118409920B/en
Publication of CN118409920A publication Critical patent/CN118409920A/en
Application granted granted Critical
Publication of CN118409920B publication Critical patent/CN118409920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection 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
    • G06F11/2236Detection 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 to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application provides a method, a device, electronic equipment and a storage medium for testing a processor.A test platform of the tested processor stores a CBD test script, a CBD test case, a VAL test script, a VAL test case and a configuration file and is started through a startup and shutdown module; calling and executing a CBD test script through a startup file, and executing a CBD test case based on a configuration file to complete CBD test of the tested processor; after the CBD test is determined to be completed, calling a VAL test script and executing the VAL test script, and executing a VAL test case based on the CBD test result file to complete the VAL test of the tested processor; the CBD test result file is a test result file recorded in the CBD test process. The method can realize automatic testing of the processor under the condition of not being influenced by the network, thereby ensuring the accuracy and the persistence of the testing processor.

Description

用于测试处理器的方法、装置、电子设备和存储介质Method, device, electronic device and storage medium for testing a processor

技术领域Technical Field

本申请涉及处理器测试技术领域,具体涉及用于测试处理器的方法、装置、电子设备和存储介质。The present application relates to the field of processor testing technology, and in particular to a method, device, electronic device and storage medium for testing a processor.

背景技术Background Art

随着处理器低功耗设计电压和频率的动态调节(DVFS)的普及,需要对大量的处理器做电压和频率关系的剖析,以用于建模。With the popularization of dynamic voltage and frequency adjustment (DVFS) for processor low-power design, it is necessary to analyze the relationship between voltage and frequency of a large number of processors for modeling.

相关技术中提出了通过服务器控制被测处理器的测试平台来实现对处理器的自动化测试,在测试过程中,服务器需要反复ping(拼)当前测试平台,或需测试平台通过网络向服务器反馈,来判断测试平台是否宕机;且服务器需通过发送网络命令的方式,以控制测试平台跑测试用例。可见相关技术方案的实现完全依赖于测试平台和服务器之间的网络情况,若网络不稳定,或网络在维护,这种依赖网络进行测试的方案则不能保证测试的准确性,以及持续性。The related technology proposes to realize the automated testing of the processor by controlling the test platform of the tested processor through the server. During the test process, the server needs to repeatedly ping the current test platform, or the test platform needs to feedback to the server through the network to determine whether the test platform is down; and the server needs to control the test platform to run the test case by sending network commands. It can be seen that the implementation of the related technical solution is completely dependent on the network conditions between the test platform and the server. If the network is unstable or the network is under maintenance, this solution that relies on the network for testing cannot guarantee the accuracy and continuity of the test.

发明内容Summary of the invention

有鉴于此,本申请提供一种用于测试处理器的方法、装置、电子设备和存储介质,能够在不受网络影响的情况下实现对处理器的自动化测试,进而保证了测试处理器的准确性,以及持续性。In view of this, the present application provides a method, apparatus, electronic device and storage medium for testing a processor, which can realize automated testing of the processor without being affected by the network, thereby ensuring the accuracy and continuity of testing the processor.

为解决上述技术问题,本申请的技术方案是这样实现的:To solve the above technical problems, the technical solution of this application is implemented as follows:

在一个实施例中,提供了一种用于测试处理器的方法,应用于被测处理器的测试平台上,所述测试平台存储CBD测试脚本、CBD测试用例、VAL测试脚本、VAL测试用例和配置文件;所述方法包括:In one embodiment, a method for testing a processor is provided, which is applied to a test platform of the processor under test, wherein the test platform stores a CBD test script, a CBD test case, a VAL test script, a VAL test case, and a configuration file; the method comprises:

通过开关机模块启动所述测试平台;所述开关机模块与所述测试平台通过硬件相连,用于监测到所述测试平台未启动时,启动所述测试平台;The test platform is started by a power on/off module; the power on/off module is connected to the test platform by hardware and is used to start the test platform when it is detected that the test platform is not started;

通过开机启动文件调用所述CBD测试脚本并执行,基于所述配置文件执行所述CBD测试用例完成对所述被测处理器的CBD测试;Calling and executing the CBD test script through the boot-up file, and executing the CBD test case based on the configuration file to complete the CBD test of the processor under test;

在确定完成所述CBD测试后,调用所述VAL测试脚本并执行,基于CBD测试结果文件执行所述VAL测试用例完成对所述被测处理器的VAL测试;After determining that the CBD test is completed, calling and executing the VAL test script, and executing the VAL test case based on the CBD test result file to complete the VAL test of the processor under test;

其中,所述CBD测试结果文件为在所述CBD测试过程中记录的测试结果文件。The CBD test result file is a test result file recorded during the CBD test process.

其中,in,

所述基于所述配置文件执行所述CBD测试用例完成对所述被测处理器的CBD测试,包括:The executing the CBD test case based on the configuration file to complete the CBD test of the processor under test includes:

根据所述配置文件和CBD测试结果文件确定待测电压点和待测频率;Determine the voltage point and frequency to be tested according to the configuration file and the CBD test result file;

基于所述待测电压点和所述待测频率执行所述CBD测试用例对所述被测处理器进行测试,获得测试结果,并根据所述测试结果维护所述CBD测试结果文件;Executing the CBD test case to test the processor under test based on the voltage point to be tested and the frequency to be tested, obtaining a test result, and maintaining the CBD test result file according to the test result;

所述基于CBD测试结果文件执行所述VAL测试用例完成对所述被测处理器的VAL测试,包括:The executing the VAL test case based on the CBD test result file to complete the VAL test on the processor under test includes:

根据所述CBD测试结果文件和VAL测试结果文件确定待压测电压点和待压测频率;Determine the voltage point to be tested and the frequency to be tested according to the CBD test result file and the VAL test result file;

基于所述待压测电压点和所述待压测频率执行所述VAL测试用例对所述被测处理器进行压测,获得压测结果,并根据所述压测结果维护所述VAL测试结果文件。The VAL test case is executed based on the voltage point to be stress tested and the frequency to be stress tested to perform stress testing on the processor under test, a stress testing result is obtained, and the VAL test result file is maintained according to the stress testing result.

其中,所述配置文件中指定测试电压点,以及所述测试电压点对应的初始测试频率;所述根据所述配置文件和所述CBD测试结果文件确定待测电压点和待测频率,包括:The configuration file specifies a test voltage point and an initial test frequency corresponding to the test voltage point; and the step of determining the voltage point to be tested and the frequency to be tested according to the configuration file and the CBD test result file includes:

按照所述配置文件中指定的测试电压点的顺序对每个所述测试电压点进行如下判断:The following judgment is performed on each of the test voltage points according to the order of the test voltage points specified in the configuration file:

若所述测试电压点在所述CBD测试结果文件中无测试记录,则确定所述测试电压点为所述待测电压点,所述测试电压点对应的初始测试频率为所述待测频率;If there is no test record for the test voltage point in the CBD test result file, determining that the test voltage point is the voltage point to be tested, and the initial test frequency corresponding to the test voltage point is the frequency to be tested;

若所述测试电压点在所述CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试过程中,上一次测试的测试结果为成功,则确定所述测试电压点为待测电压点,并将用于上一次测试的待测频率增加第一预设步长作为当前次测试的所述待测频率;If there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in the testing process, and the test result of the last test is successful, the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the last test is increased by a first preset step size as the frequency to be tested for the current test;

若所述测试电压点在所述CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试过程中,上一次测试的测试结果为不成功,则确定所述测试电压点为待测电压点,并将用于上一次测试的待测频率减少第二预设步长作为当前次测试的所述待测频率;If there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in the testing process, and the test result of the last test is unsuccessful, then the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the last test is reduced by a second preset step size as the frequency to be tested for the current test;

若所述测试电压点在所述CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试已完成,则对所述配置文件中指定的下一个测试电压点进行判断。If there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is that the test is completed, then the next test voltage point specified in the configuration file is determined.

其中,所述配置文件中针对每个测试电压点设置频率测试最大值和频率测试最小值;Wherein, the configuration file sets a maximum frequency test value and a minimum frequency test value for each test voltage point;

所述根据所述配置文件和所述CBD测试结果文件确定待测电压点和待测频率之后,所述基于所述待测电压点和所述待测频率执行所述CBD测试用例对所述被测处理器进行测试之前,所述方法进一步包括:After determining the voltage point to be tested and the frequency to be tested according to the configuration file and the CBD test result file, and before executing the CBD test case to test the processor under test based on the voltage point to be tested and the frequency to be tested, the method further includes:

比较确定的所述待测频率与所述频率测试最大值和频率测试最小值的大小:Compare the determined frequency to be tested with the maximum value of the frequency test and the minimum value of the frequency test:

若确定所述待测频率小于所述频率测试最小值,且上一次测试结果为不成功,则在所述CBD测试结果文件中记录测试结果为完全失败,测试状态为已完成测试;并使用关机命令关机;If it is determined that the frequency to be tested is less than the minimum value of the frequency test, and the last test result is unsuccessful, then the test result is recorded as complete failure in the CBD test result file, and the test status is completed test; and the shutdown command is used to shut down;

若确定所述待测频率不小于所述频率测试最小值,且不大于所述频率测试最大值,则执行所述基于所述待测电压点和所述待测频率执行所述CBD测试用例对所述被测处理器进行测试步骤;If it is determined that the frequency to be tested is not less than the minimum value of the frequency test and not greater than the maximum value of the frequency test, executing the CBD test case based on the voltage point to be tested and the frequency to be tested to test the processor to be tested;

若确定所述待测频率大于所述频率测试最大值,则在所述CBD测试结果文件中记录测试结果为成功,测试状态为测试已完成,且完成测试的频率为所述频率测试最大值,并使用关机命令关机。If it is determined that the frequency to be tested is greater than the maximum frequency test value, the test result is recorded as success in the CBD test result file, the test status is that the test is completed, and the frequency of the completed test is the maximum frequency test value, and the shutdown command is used to shut down.

其中,所述基于所述待测电压点和所述待测频率执行所述CBD测试用例对所述被测处理器进行测试之前,所述方法进一步包括:在所述CBD测试结果文件中针对所述待测电压点和所述待测频率对应的测试结果预记录为不成功;Before executing the CBD test case to test the processor under test based on the voltage point to be tested and the frequency to be tested, the method further comprises: pre-recording the test result corresponding to the voltage point to be tested and the frequency to be tested as unsuccessful in the CBD test result file;

所述基于所述待测电压点和所述待测频率执行所述CBD测试用例对所述被测处理器进行测试,获得测试结果时,所述方法进一步包括:When the CBD test case is executed based on the voltage point to be tested and the frequency to be tested to test the processor to be tested and the test result is obtained, the method further comprises:

若测试结果为宕机,则通过所述开关机模块重启;If the test result is downtime, restart through the power on/off module;

若测试结果为失败或超时,则使用关机命令关机;If the test result is failure or timeout, use the shutdown command to shut down the machine;

若测试结果为成功,则将所述CBD测试结果文件中的测试结果由不成功更新为成功;并确定所述待测电压对应的上一次测试的测试状态是否为成功;If the test result is successful, the test result in the CBD test result file is updated from unsuccessful to successful; and it is determined whether the test status of the last test corresponding to the voltage to be tested is successful;

若为成功,则将当前次的所述待测频率增加第一预设步长;If successful, the current frequency to be tested is increased by a first preset step size;

若为不成功,则在所述CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为测试成功的最大频率,并使用关机命令关机。If it is unsuccessful, the test status is recorded in the CBD test result file as the test completed, and the frequency of completing the test is the maximum frequency of successful test, and the shutdown command is used to shut down.

其中,所述将当前次的所述待测频率增加第一预设步长之后,所述方法进一步包括:Wherein, after increasing the current frequency to be measured by a first preset step length, the method further comprises:

判断增加第一预设步长后的所述待测频率是否大于所述频率测试最大值,如果是,在所述CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为频率测试最大值,并使用关机命令关机;否则,执行所述基于所述待测电压点和待测频率执行所述CBD测试用例对所述被测处理器进行测试步骤。Determine whether the frequency to be tested after increasing the first preset step size is greater than the maximum frequency test value. If so, record the test status in the CBD test result file as the test completed, and the frequency of the completed test is the maximum frequency test value, and use the shutdown command to shut down; otherwise, execute the CBD test case based on the voltage point to be tested and the frequency to be tested to test the processor under test.

其中,所述根据所述CBD测试结果文件和VAL测试结果文件确定待压测电压点和待压测频率,包括:Wherein, determining the voltage point to be stress tested and the frequency to be stress tested according to the CBD test result file and the VAL test result file includes:

按照CBD测试结果文件中记录的待测电压点的顺序对每个所述待测电压点进行如下判断:According to the order of the voltage points to be tested recorded in the CBD test result file, the following judgment is made on each voltage point to be tested:

若确定所述CBD测试结果文件中所述待测电压点对应的测试结果为完全失败,则在所述VAL测试结果文件中记录所述待压测电压点对应的压测结果为失败,且压测状态为压测已完成;若存在下一个待测电压点,则对所述CBD测试结果文件中的下一个待测电压点进行判断;否则,确定完成VAL测试;If it is determined that the test result corresponding to the voltage point to be tested in the CBD test result file is a complete failure, then the pressure test result corresponding to the voltage point to be tested is recorded as a failure in the VAL test result file, and the pressure test status is that the pressure test is completed; if there is a next voltage point to be tested, then the next voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed;

若确定所述VAL测试结果文件中不存在所述待测电压点对应的压测记录,且在所述CBD测试结果文件中所述待测电压点对应的测试结果为成功,则确定所述待测电压点为待压测电压点,完成测试的频率为待压测频率;If it is determined that there is no stress test record corresponding to the voltage point to be tested in the VAL test result file, and the test result corresponding to the voltage point to be tested in the CBD test result file is successful, then the voltage point to be tested is determined to be the voltage point to be stress tested, and the frequency of completing the test is the frequency to be stress tested;

若确定所述VAL测试结果文件中存在所述待测电压点对应的压测记录,且压测结果为不成功,则将上一次压测不成功的待压测频率减少第三步长作为当前次压测的所述待压测频率;If it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result is unsuccessful, the stress test frequency to be tested of the last unsuccessful stress test is reduced by a third step length as the stress test frequency to be tested of the current stress test;

若确定所述VAL测试结果文件中存在所述待测电压点对应的压测记录,且上一次压测的压测结果为成功,则在所述VAL测试结果文件中记录压测状态为压测已完成,且完成压测的频率为上一次压测的待压测频率;若存在下一个待测电压点,则对所述CBD测试结果文件中的下一个待测电压点进行判断;否则,确定完成VAL测试;If it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result of the last stress test is successful, then the stress test status is recorded in the VAL test result file as the stress test completed, and the frequency of the completed stress test is the stress test frequency of the last stress test; if there is a next voltage point to be tested, then the next voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed;

其中,所述根据所述CBD测试结果文件和VAL测试结果文件确定待压测电压点和待压测频率之后,所述基于所述待压测电压点和所述待压测频率执行所述VAL测试用例对所述被测处理器进行压测之前,所述方法进一步包括:Wherein, after determining the voltage point to be stress tested and the frequency to be stress tested according to the CBD test result file and the VAL test result file, and before executing the VAL test case to stress test the processor under test based on the voltage point to be stress tested and the frequency to be stress tested, the method further includes:

确定所述待压测频率是否小于所述频率测试最小值,如果是,在所述VAL测试结果文件中记录压测结果为完全失败,且所述待压测电压点的压测状态为压测已完成;否则,执行所述基于所述待压测电压点和所述待压测频率执行所述VAL测试用例对所述被测处理器进行压测步骤。Determine whether the frequency to be stress tested is less than the minimum value of the frequency test. If so, record the stress test result as complete failure in the VAL test result file, and the stress test status of the voltage point to be stress tested is that the stress test is completed; otherwise, execute the VAL test case based on the voltage point to be stress tested and the frequency to be stress tested to perform stress testing on the processor under test.

其中,所述基于所述待压测电压点和所述待压测频率执行所述VAL测试用例对所述被测处理器进行压测之前,所述方法进一步包括:在所述VAL测试结果文件中针对所述待压测频率点和所述待压测频率对应的压测结果预记录为不成功;Before executing the VAL test case to stress test the processor under test based on the voltage point to be stress tested and the frequency to be stress tested, the method further comprises: pre-recording in the VAL test result file the stress test result corresponding to the frequency point to be stress tested and the frequency to be stress tested as unsuccessful;

所述基于所述待压测电压点和所述待压测频率执行所述VAL测试用例对所述被测处理器进行压测获得压测结果时,所述方法进一步包括:When the VAL test case is executed based on the voltage point to be stress tested and the frequency to be stress tested to perform stress testing on the processor to be tested to obtain a stress testing result, the method further includes:

若确定压测结果为宕机,则通过开关机模块重启;If the stress test result is confirmed to be a downtime, restart it through the power on/off module;

若确定压测结果为失败或超时,则使用关机命令关机;If the stress test result is determined to be a failure or timeout, use the shutdown command to shut down the system.

若确定压测结果为成功,则将所述VAL测试结果文件中的压测结果由不成功更新为成功;并记录压测状态为压测已完成,以及通过压测的频率为压测成功的所述待压测频率;若存在下一个待测电压点,则使用关机命令关机;否则,确定完成VAL测试。If the stress test result is determined to be successful, the stress test result in the VAL test result file is updated from unsuccessful to successful; and the stress test status is recorded as the stress test completed, and the frequency that passed the stress test is the stress test frequency to be tested successfully; if there is a next voltage point to be tested, use the shutdown command to shut down; otherwise, it is determined that the VAL test is completed.

在另一个实施例中,提供了一种用于测试处理器的装置,应用于被测处理器的测试平台上,所述装置包括:In another embodiment, a device for testing a processor is provided, which is applied to a test platform of a processor under test, and the device includes:

存储单元,用于存储CBD测试脚本、CBD测试用例、VAL测试脚本、VAL测试用例和配置文件;A storage unit, used for storing CBD test scripts, CBD test cases, VAL test scripts, VAL test cases and configuration files;

启动单元,用于通过开关机模块启动所述测试平台;所述开关机模块与所述测试平台通过硬件相连,用于监测到所述测试平台未启动时,启动所述测试平台;A starting unit, used to start the test platform through a power on/off module; the power on/off module is connected to the test platform through hardware, and is used to start the test platform when it is detected that the test platform is not started;

测试单元,用于通过开机启动文件调用所述CBD测试脚本并执行,基于所述配置文件执行所述CBD测试用例完成对所述被测处理器的CBD测试;A testing unit, configured to call and execute the CBD test script through a startup file, and execute the CBD test case based on the configuration file to complete the CBD test of the processor under test;

压测单元,用于在确定完成所述CBD测试后,调用所述VAL测试脚本并执行,基于CBD测试结果文件执行所述VAL测试用例完成对所述被测处理器的VAL测试;其中,所述CBD测试结果文件为在所述CBD测试过程中记录的测试结果文件。The stress testing unit is used to call and execute the VAL test script after determining that the CBD test is completed, and execute the VAL test case based on the CBD test result file to complete the VAL test of the processor under test; wherein the CBD test result file is a test result file recorded during the CBD test process.

在另一个实施例中,提供了一种电子设备,包括:In another embodiment, an electronic device is provided, comprising:

处理器;processor;

用于存储所述处理器的可执行指令的存储器;a memory for storing executable instructions for the processor;

其中,所述处理器被配置为执行所述可执行指令,以实现如上任一项所述的用于测试处理器的方法。The processor is configured to execute the executable instructions to implement the method for testing a processor as described in any one of the above items.

在另一个实施例中,提供了一种计算机可读存储介质,当所述计算机可读存储介质中的至少一条指令被电子设备的处理器执行时,使得所述电子设备能够实现如上任一项所述的用于测试处理器的方法。In another embodiment, a computer-readable storage medium is provided. When at least one instruction in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device can implement any of the above methods for testing a processor.

由上面的技术方案可见,上述实施例中将用于测试的CBD测试脚本、CBD测试用例、VAL测试脚本、VAL测试用例和配置文件存储在被测处理器的测试平台上;通过与测试平台硬件相连的开关机模块来对未启动(宕机或关机)的测试平台进行启动来协助测试平台实现自动化测试;并通过测试平台的启动文件调用测试脚本启动测试;基于本地存储的测试用例和配置文件完成对被测处理器的CBD测试和VAL测试。该方案能够在不受网络影响的情况下实现对处理器的自动化测试,进而保证了测试处理器的准确性,以及持续性。It can be seen from the above technical scheme that in the above embodiment, the CBD test script, CBD test case, VAL test script, VAL test case and configuration file used for testing are stored on the test platform of the processor under test; the unstarted (downtime or shut down) test platform is started through the power on/off module connected to the test platform hardware to assist the test platform in realizing automated testing; and the test script is called through the startup file of the test platform to start the test; the CBD test and VAL test of the processor under test are completed based on the locally stored test cases and configuration files. This solution can realize automated testing of the processor without being affected by the network, thereby ensuring the accuracy and continuity of the processor test.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

图1为本申请实施例中用于测试处理器的方法流程示意图;FIG1 is a schematic flow chart of a method for testing a processor in an embodiment of the present application;

图2为本申请实施例中基于配置文件执行CBD测试用例完成对被测处理器的CBD测试的流程示意图;FIG2 is a schematic diagram of a process of executing a CBD test case based on a configuration file to complete a CBD test on a processor under test in an embodiment of the present application;

图3为本申请实施例中基于CBD测试结果文件执行VAL测试用例完成对被测处理器的VAL测试的流程示意图;3 is a schematic diagram of a flow chart of executing VAL test cases based on a CBD test result file to complete a VAL test on a processor under test in an embodiment of the present application;

图4为本申请实施例中CBD测试流程示意图;FIG4 is a schematic diagram of a CBD test process in an embodiment of the present application;

图5为本申请实施例中VAL测试流程示意图;FIG5 is a schematic diagram of a VAL test flow in an embodiment of the present application;

图6为本申请实施例中用于测试处理器的装置结构示意图;FIG6 is a schematic diagram of the structure of a device for testing a processor in an embodiment of the present application;

图7是本申请实施例提供的一种电子设备的结构示意图。FIG. 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述目标的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe the order or precedence of the objects. It should be understood that the data used in this way can be interchanged where appropriate, so that the implementation of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

相关技术中,针对处于硅后状态的处理器的测试大多是通过手动测试的,测试人员须实时在测试平台实验室,随时可能需要测试人员操作;这样每个测试人员同时操作测试平台的数量就会受到限制,如1-3台。因此,这种测试方式效率低下,且人力成本较高;In the related art, the testing of processors in the post-silicon state is mostly done manually, and the testers must be in the test platform laboratory in real time, and the testers may be required to operate at any time; thus, the number of test platforms that each tester can operate at the same time is limited, such as 1-3. Therefore, this testing method is inefficient and has high labor costs;

随着处理器低功耗设计DVFS的普及应用,其中,DVFS的普及应用主要是用于进行DVFS的建模;需要对大量的处于硅后状态的处理器进行测试,获得的测试结果用于DVFS建模;进而逐渐提出了自动化测试处理器的方法。With the popularization of DVFS for processor low power design, the popularization of DVFS is mainly used for DVFS modeling. A large number of processors in the post-silicon state need to be tested, and the obtained test results are used for DVFS modeling. Then, methods for automated testing of processors are gradually proposed.

在对处理器进行测试的内容主要包括:指定处理器几个电压点,找到其在最差应用场景下,所能跑到的最高频率。The content of testing the processor mainly includes: specifying several voltage points of the processor and finding the highest frequency it can run in the worst application scenario.

在这个测试过程中,分为了两个阶段:CBD(Clock Break Down,频率找点)测试和VAL(Validation,压力)测试;In this testing process, there are two stages: CBD (Clock Break Down) test and VAL (Validation) test;

其中,CBD测试:被测处理器的电压设置在某个指定电压点后,在最差应用场景下,通过一系列的升频或降频,快速找到其所能通过测试的最高频率,并记录。Among them, CBD test: After the voltage of the processor under test is set to a certain specified voltage point, in the worst application scenario, through a series of frequency increases or decreases, the highest frequency that can pass the test is quickly found and recorded.

VAL测试,也可称为“保障性的压力测试”:被测处理器的电压点设置为与CBD测试获得的通过测试的电压点后,在最差应用场景下,对CBD测试找到的频率进行长时间压力测试,以确保CBD阶段找到的最高频率能稳定运行,如果出现测试失败,则降低频率继续进行压力测试,直到找到一个能稳定通过压力测试的频率,此频率即为此电压点对应的最高频率,并记录。VAL test, also known as "safety stress test": after the voltage point of the processor under test is set to the voltage point obtained by the CBD test, a long-term stress test is performed on the frequency found by the CBD test under the worst application scenario to ensure that the highest frequency found in the CBD stage can run stably. If the test fails, the frequency is reduced and the stress test is continued until a frequency that can stably pass the stress test is found. This frequency is the highest frequency corresponding to this voltage point and is recorded.

针对VAL测试记录的内容可以用于DVFS建模,但并不限于DVFS建模。The contents recorded for the VAL test can be used for DVFS modeling, but are not limited to DVFS modeling.

如通过服务器控制被测处理器的测试平台来实现对处理器的自动化测试,在测试过程中,服务器需要反复ping当前测试平台,或需测试平台通过网络向服务器反馈,来判断测试平台是否宕机;且服务器需通过发送网络命令的方式,以控制测试平台跑测试用例。可见相关技术方案的实现完全依赖于测试平台和服务器之间的网络情况,若网络不稳定,或网络在维护,这种依赖网络进行测试的方案则不能保证测试的准确性,以及持续性。For example, to realize the automated testing of the processor by controlling the test platform of the tested processor through the server, during the test, the server needs to repeatedly ping the current test platform, or the test platform needs to feedback to the server through the network to determine whether the test platform is down; and the server needs to control the test platform to run the test case by sending network commands. It can be seen that the implementation of the relevant technical solution is completely dependent on the network conditions between the test platform and the server. If the network is unstable or the network is under maintenance, this solution that relies on the network for testing cannot guarantee the accuracy and continuity of the test.

基于上述技术问题,本申请实施例中公开了一种用于测试处理器的方法,将用于测试的CBD(Clock Breakdown,频率快速找点阶段)测试脚本、CBD测试用例、VAL(Validation,压力测试阶段)测试脚本、VAL测试用例和配置文件存储在被测处理器的测试平台上;通过与测试平台硬件相连的开关机模块来对未启动(宕机或关机)的测试平台进行启动来协助测试平台实现自动化测试;并通过测试平台的启动文件调用测试脚本启动测试;基于本地存储的测试用例和配置文件完成对被测处理器的CBD测试和VAL测试。该方案能够在不受网络影响的情况下实现对处理器的自动化测试,进而保证了测试处理器的准确性,以及持续性。Based on the above technical problems, a method for testing a processor is disclosed in an embodiment of the present application, wherein the CBD (Clock Breakdown, frequency fast point finding phase) test script, CBD test case, VAL (Validation, stress testing phase) test script, VAL test case and configuration file used for testing are stored on the test platform of the processor under test; the unstarted (downtime or shut down) test platform is started by the power on/off module connected to the test platform hardware to assist the test platform in realizing automated testing; and the test script is called to start the test through the startup file of the test platform; the CBD test and VAL test of the processor under test are completed based on the locally stored test cases and configuration files. This solution can realize automated testing of the processor without being affected by the network, thereby ensuring the accuracy and continuity of the processor test.

本申请实施例中的被测处理器可以为下述处理器中的任一种:The processor under test in the embodiment of the present application may be any one of the following processors:

CPU(Central Processing Unit,中央处理器)、GPU(Graphics Processing Unit,图形处理器)、TPU(Tensor Processing Unit,张量处理器)、NPU(Neural networkProcessing Unit,神经网络处理器)、DPU(Deep learning Processing Unit,深度学习处理器)、APU(Accelerated Processing Unit,加速处理器),以及GPGPU(General-Purposecomputing on Graphics Processing Unit,通用图形处理器)。CPU (Central Processing Unit), GPU (Graphics Processing Unit), TPU (Tensor Processing Unit), NPU (Neural network Processing Unit), DPU (Deep learning Processing Unit), APU (Accelerated Processing Unit), and GPGPU (General-Purpose computing on Graphics Processing Unit).

进行测试之前的准备工作如下,且对各条准备工作的先后顺序不进行限制:The preparations before testing are as follows, and there is no restriction on the order of the preparations:

1、将被测处理器安装在测试平台上,测试平台可以为SUT(System Under Test,被测试平台或机台)等,本申请实施例中不限于具体安装方式,如按压插卡式、焊接方式等。1. The processor under test is installed on a test platform, which may be a SUT (System Under Test) or a test platform or a machine, etc. The embodiment of the present application is not limited to a specific installation method, such as a press-on card type, a welding method, etc.

2、预先生成用于测试的测试脚本、测试用例和配置文件;并存储到测试平台上。2. Generate test scripts, test cases and configuration files for testing in advance; and store them on the test platform.

对被测处理器的测试包括CBD测试和VAL测试,因此,用于测试的测试脚本包括CBD测试脚本和VAL测试脚本,这两个测试脚本可以合并在一个脚本文件中,也可以分成两个脚本文件,对此不进行限制;用于测试的测试用例包括CBD测试用例和VAL测试用例,这两个测试用例可以合并在一个用例文件中,也可以分成两个测试用例,对此不进行限制;用于测试的配置文件包括CBD配置文件和VAL配置文件,这两个配置文件可以合并成一个配置文件,也可以分开成两个配置文件。The tests on the processor under test include CBD tests and VAL tests. Therefore, the test scripts used for testing include CBD test scripts and VAL test scripts. These two test scripts can be merged into one script file or divided into two script files. There is no restriction on this. The test cases used for testing include CBD test cases and VAL test cases. These two test cases can be merged into one case file or divided into two test cases. There is no restriction on this. The configuration files used for testing include CBD configuration files and VAL configuration files. These two configuration files can be merged into one configuration file or separated into two configuration files.

测试脚本的相关内容中包括调用配置文件执行测试用例,还包括在测试过程中需要关机时发送关机命令使得测试平台正常关机。The relevant contents of the test script include calling the configuration file to execute the test case, and also include sending a shutdown command when shutdown is required during the test process to make the test platform shut down normally.

在具体实现时,由于CBD测试和VAL测试过程中使用的配置文件中的配置信息会有相同的部分,因此,本申请实施例中具体实现时,将用于CBD测试的配置文件和用于VAL测试的配置文件通过一个配置文件实现,将测试脚本和测试用例都分别通过两个文件实现,这仅是本申请实施例中为了描述方便和清楚的一种举例实现方案,具体实施时不限于该种实现方式。In the specific implementation, since the configuration information in the configuration files used in the CBD test and the VAL test will have the same part, therefore, in the specific implementation in the embodiment of the present application, the configuration file used for the CBD test and the configuration file used for the VAL test are implemented through one configuration file, and the test script and the test case are implemented through two files respectively. This is only an example implementation scheme for the convenience and clarity of description in the embodiment of the present application, and the specific implementation is not limited to this implementation method.

其中,配置文件需配置的内容如下:The contents of the configuration file to be configured are as follows:

指定测试电压点,以及每个测试电压点对应的初始测试频率;这里指定的测试电压点为一个或多个,如果是多个,后续会按照指定顺序进行测试;Specify the test voltage point and the initial test frequency corresponding to each test voltage point; the test voltage point specified here is one or more. If there are multiple test voltage points, the subsequent tests will be performed in the specified order;

针对每个测试电压点设置频率测试最大值和频率测试最小值,用于定义频率测试范围,也可以称为频率测试范围,也可以称为频率搜索范围;具体实现时,针对每个测试电压点设置的频率测试最大值和频率测试最小值可以相同也可以不同,具体实现时根据实际需要设置,对此不进行限制;A maximum frequency test value and a minimum frequency test value are set for each test voltage point to define a frequency test range, which may also be referred to as a frequency test range or a frequency search range. In specific implementation, the maximum frequency test value and the minimum frequency test value set for each test voltage point may be the same or different. In specific implementation, the values are set according to actual needs and are not limited thereto.

安全设置,用于在测试平台初始化时,对测试平台进行安全运行设置;Security settings are used to set up safe operation of the test platform when the test platform is initialized;

CBD测试中的用于升频率的第一预设步长,以及用于降频率的第二预设步长;VAL测试中用于降频率的第三预设步长;这里的各个步长的大小关系不进行限制。The first preset step length for increasing the frequency in the CBD test, and the second preset step length for decreasing the frequency; the third preset step length for decreasing the frequency in the VAL test; the size relationship of each step length here is not limited.

通常VAL测试过程中使用的步长与CBD测试过程中使用的步长是不同的,且一般VAL测试过程中使用的步长要小于CBD测试过程中使用的步长,也就是说CBD测试的相对粗略,VAL测试的相对更精细。Usually the step size used in the VAL test process is different from the step size used in the CBD test process, and generally the step size used in the VAL test process is smaller than the step size used in the CBD test process, that is to say, the CBD test is relatively rough, and the VAL test is relatively more precise.

CBD测试过程中的循环条件,以及VAL测试过程中的循环条件,具体的循环条件内容在下文执行过程中通过测试过程中的判断执行详细给出;The loop conditions in the CBD test process and the loop conditions in the VAL test process are described in detail in the following execution process through the judgment execution in the test process;

设置电压和频率所用到的Tool的路径,VAL测试中保存VAL测试结果文件,以及日志文件的存储路径,CBD测试中保存CBD测试文件的路径等。Set the path of the tool used for voltage and frequency, the path to save the VAL test result file and log file in the VAL test, the path to save the CBD test file in the CBD test, etc.

在测试脚本、测试用例和配置文件都生成完成后存储到被测设备上即可,对于在测试平台存储的存储位置不进行限制,只要在进行测试时,能够调用即可。本申请实施例中以存储CBD测试脚本、CBD测试用例、VAL测试脚本、VAL测试用例和配置文件为例。After the test script, test case and configuration file are generated, they can be stored on the device under test. There is no restriction on the storage location of the test platform, as long as they can be called during the test. In the embodiment of the present application, the storage of CBD test scripts, CBD test cases, VAL test scripts, VAL test cases and configuration files is taken as an example.

3、通过硬件连接开关机模块;该开关机模块用于监控测试平台,在测试平台未启动的时候,启动该测试平台;这样的开机方式不受网络限制。3. Connect the power on/off module through hardware; the power on/off module is used to monitor the test platform and start the test platform when it is not started; this startup method is not restricted by the network.

测试平台未启动的情况包括初始未启动、测试过程中的自动关机,以及测试过程中的宕机。The situations where the test platform fails to start include initial failure to start, automatic shutdown during the test, and downtime during the test.

4、在测试平台的开机启动文件中加入启动CBD测试的命令,使得测试平台在运行开机启动文件时,开始启动CBD测试,具体的实现为调用并执行CBD测试脚本来启动CBD测试文件。4. Add a command to start the CBD test in the startup file of the test platform so that the test platform starts the CBD test when running the startup file. The specific implementation is to call and execute the CBD test script to start the CBD test file.

至此完成测试平台的相关准备工作,若测试平台处于开机状态,则将其置于关机状态,开始准备测试。At this point, the relevant preparations for the test platform are completed. If the test platform is in the power-on state, turn it off and start preparing for the test.

下面结合附图,详细说明本发明实施例中实现用于测试处理器的方法的过程。The process of implementing the method for testing a processor in an embodiment of the present invention is described in detail below with reference to the accompanying drawings.

参见图1,图1为本申请实施例中用于测试处理器的方法流程示意图。具体步骤为:See Figure 1, which is a schematic flow chart of a method for testing a processor in an embodiment of the present application. The specific steps are:

步骤101,通过开关机模块启动测试平台。Step 101, start the test platform through the power on/off module.

开关机模块通过硬件与测试平台连接,来对测试平台进行启动或重启操作,以实现测试的完全自动化。The power on/off module is connected to the test platform through hardware to start or restart the test platform to achieve full automation of the test.

在准备开始进行处理器测试时,可以手动或其他设备启动开关机模块,开关机模块监测测试平台,若确定该测试平台宕机,则重启测试平台;若确定该测试平台正常关机,则启动测试平台。When preparing to start the processor test, the power on/off module can be started manually or by other devices. The power on/off module monitors the test platform. If it is determined that the test platform is down, the test platform is restarted; if it is determined that the test platform is shut down normally, the test platform is started.

步骤102,通过开机启动文件调用CBD测试脚本并执行,基于配置文件执行CBD测试用例完成对被测处理器的CBD测试。Step 102, calling and executing the CBD test script through the startup file, and executing the CBD test case based on the configuration file to complete the CBD test of the processor under test.

通过开机启动文件调用CBD测试脚本并执行使得测试平台开启CBD测试,在执行CBD测试脚本时,基于配置文件执行CBD测试用例来完成对被测处理器的CBD测试。The CBD test script is called and executed by the boot-up file to enable the test platform to start the CBD test. When the CBD test script is executed, the CBD test case is executed based on the configuration file to complete the CBD test of the processor under test.

步骤103,在确定完成CBD测试后,调用VAL测试脚本并执行,基于CBD测试结果文件执行VAL测试用例完成对被测处理器的VAL测试。Step 103, after determining that the CBD test is completed, call and execute the VAL test script, and execute the VAL test case based on the CBD test result file to complete the VAL test of the processor under test.

配置文件中的所有测试电压点测试完成时,确定CBD测试完成。When all test voltage points in the configuration file are tested, it is determined that the CBD test is completed.

通过调用VAL测试脚本并执行启动VAL测试;执行VAL测试脚本时,基于CBD测试结果文件执行VAL测试用例来完成对被测处理器的VAL测试;其中,CBD测试结果文件为在CBD测试过程中记录的测试结果文件,并用于协助完成CBD测试和VAL测试。The VAL test is started by calling the VAL test script and executing it; when executing the VAL test script, the VAL test case is executed based on the CBD test result file to complete the VAL test of the processor under test; wherein, the CBD test result file is a test result file recorded during the CBD test process, and is used to assist in completing the CBD test and the VAL test.

本申请实施例中,将用于测试的CBD测试脚本、CBD测试用例、VAL测试脚本、VAL测试用例和配置文件存储在被测处理器的测试平台上;通过与测试平台硬件相连的开关机模块来对未启动(宕机或关机)的测试平台进行启动来协助测试平台实现自动化测试;并通过测试平台的启动文件调用测试脚本启动测试;基于本地存储的测试用例和配置文件完成对被测处理器的CBD测试和VAL测试。该方案能够在不受网络影响的情况下实现对处理器的自动化测试,进而保证了测试处理器的准确性,以及持续性。In the embodiment of the present application, the CBD test script, CBD test case, VAL test script, VAL test case and configuration file used for testing are stored on the test platform of the processor under test; the unstarted (downtime or shut down) test platform is started by the switch module connected to the test platform hardware to assist the test platform in realizing automated testing; and the test script is called to start the test through the startup file of the test platform; the CBD test and VAL test of the processor under test are completed based on the locally stored test cases and configuration files. This solution can realize automated testing of the processor without being affected by the network, thereby ensuring the accuracy and continuity of the test processor.

在一个实施方式中,In one embodiment,

步骤102中基于配置文件执行CBD测试用例完成对被测处理器的CBD测试的具体实现是由多组电压点和频率的测试组成,针对每组电压点和频率的测试具体实现参见图2。The specific implementation of executing the CBD test case based on the configuration file in step 102 to complete the CBD test of the processor under test is composed of multiple groups of voltage point and frequency tests. For the specific implementation of each group of voltage point and frequency tests, see FIG. 2 .

图2为本申请实施例中基于配置文件执行CBD测试用例完成对被测处理器的CBD测试的流程示意图。具体步骤为:FIG2 is a flow chart of executing CBD test cases based on a configuration file to complete the CBD test of the processor under test in an embodiment of the present application. The specific steps are:

步骤201,根据配置文件和CBD测试结果文件确定待测电压点和待测频率。Step 201, determining a voltage point to be tested and a frequency to be tested according to a configuration file and a CBD test result file.

在确定待测电压点和待测频率时,若当前次测试是初次测试,则该CBD测试结果文件的内容为空;若当前次测试不是初次测试,则该CBD测试结果文件的内容为从开始进行CBD测试记录的所有内容。When determining the voltage point and frequency to be tested, if the current test is the first test, the content of the CBD test result file is empty; if the current test is not the first test, the content of the CBD test result file is all the contents recorded from the beginning of the CBD test.

在具体实现时,可以通过预先生成一个内容为空的CBD测试结果文件,用于对首次CBD测试的待测电压点和待测频率的确定;In specific implementation, a CBD test result file with empty content may be generated in advance to determine the voltage point and frequency to be tested for the first CBD test;

也可以是在没有CBD测试结果文件的情况下,确定CBD测试结果文件的内容为空,来对首次CBD测试的待测电压点和待测频率进行确定。Alternatively, when there is no CBD test result file, it may be determined that the content of the CBD test result file is empty, so as to determine the voltage point to be tested and the frequency to be tested of the first CBD test.

本步骤的具体实现为:The specific implementation of this step is:

按照配置文件中指定的测试电压点的顺序对每个测试电压点进行如下判断,来确定待测电压点和待测频率:According to the order of the test voltage points specified in the configuration file, the following judgment is made for each test voltage point to determine the voltage point and frequency to be tested:

若该测试电压点在CBD测试结果文件中无测试记录,则确定该测试电压点为待测电压点,测试电压点对应的初始测试频率为待测频率;If there is no test record for the test voltage point in the CBD test result file, the test voltage point is determined to be the voltage point to be tested, and the initial test frequency corresponding to the test voltage point is the frequency to be tested;

若测试电压点在CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试过程中,上一次测试的测试结果为成功,则确定该测试电压点为待测电压点,并将用于上一次测试的待测频率增加第一预设步长作为当前次测试的待测频率;If there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in the test process, and the test result of the last test is successful, the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the last test is increased by a first preset step length as the frequency to be tested for the current test;

若该测试电压点在CBD测试结果文件中存在测试记录,且该测试记录中的测试状态为测试过程中,上一次测试的测试结果为不成功,则确定该测试电压点为待测电压点,并将用于上一次测试的待测频率减少第二预设步长作为当前次测试的待测频率;If there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in the test process, and the test result of the previous test is unsuccessful, then the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the previous test is reduced by a second preset step length as the frequency to be tested for the current test;

若该测试电压点在CBD测试结果文件中存在测试记录,且该测试记录中的测试状态为测试已完成,则对该配置文件中指定的下一个测试电压点进行判断。If there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is that the test is completed, then the next test voltage point specified in the configuration file is determined.

在步骤201中确定待测频率时,会存在升步长和降步长的情况,且由于在配置文件中针对每个测试电压点设置频率测试最大值和频率测试最小值,因此,需要进一步判断待测频率是否超过测试范围来确定是否作为真正的待测频率来进行设置并测试,具体判断过程如下:When determining the frequency to be tested in step 201, there will be cases of increasing step length and decreasing step length, and since the maximum value and minimum value of the frequency test are set for each test voltage point in the configuration file, it is necessary to further determine whether the frequency to be tested exceeds the test range to determine whether to set and test it as the real frequency to be tested. The specific judgment process is as follows:

比较确定的待测频率与频率测试最大值和频率测试最小值的大小:Compare the determined frequency to be tested with the maximum value of the frequency test and the minimum value of the frequency test:

若确定该待测频率小于频率测试最小值,且上一次测试结果为不成功,则在CBD测试结果文件中记录测试结果为完全失败,测试状态为测试已完成;并使用关机命令关机;If it is determined that the frequency to be tested is less than the minimum value of the frequency test, and the last test result is unsuccessful, the test result is recorded as complete failure in the CBD test result file, and the test status is completed; and the shutdown command is used to shut down;

若确定该待测频率大于频率测试最大值,则在CBD测试结果文件中记录测试结果为成功,测试状态为测试已完成,且完成测试的频率为频率测试最大值,并使用关机命令关机;If it is determined that the frequency to be tested is greater than the maximum value of the frequency test, the test result is recorded as successful in the CBD test result file, the test status is that the test has been completed, and the frequency of the completed test is the maximum value of the frequency test, and the shutdown command is used to shut down;

若确定该待测频率不小于频率测试最小值,且不大于频率测试最大值,则将当前确定的待测频率作为要测试的频率;也就是说在确定待测频率处于频率测试范围内,会将该待测频率作为要测试的频率;If it is determined that the frequency to be tested is not less than the minimum value of the frequency test and not greater than the maximum value of the frequency test, the currently determined frequency to be tested is used as the frequency to be tested; that is, if it is determined that the frequency to be tested is within the frequency test range, the frequency to be tested is used as the frequency to be tested;

在确定了真正要测试的待测频率后,设置待测电压和待测频率;并在CBD测试结果文件中将该待测电压和待测频率对应的测试结果预记录为不成功;After determining the actual frequency to be tested, set the voltage to be tested and the frequency to be tested; and pre-record the test result corresponding to the voltage to be tested and the frequency to be tested as unsuccessful in the CBD test result file;

设置待测电压和待测频率的工具通过配置文件中指定工具的路径获取。The tool for setting the voltage to be measured and the frequency to be measured is obtained by specifying the path of the tool in the configuration file.

这里的不成功可以涵盖宕机、失败或超时情况发生导致的测试结果;这样的记录主要是为了防止测试平台在测试过程中宕机,而没有时间来进行CBD测试结果文件的记录,进而不能对下一次测试的电压、频率,以及是否测试进行判断。The failure here can include test results caused by downtime, failure or timeout; such records are mainly to prevent the test platform from downtime during the test, and there is no time to record the CBD test result file, and thus it is impossible to judge the voltage, frequency, and whether to test the next time.

针对该待测电压点和待测频率在CBD测试结果文件中进行预记录之后,执行步骤202。After the voltage point to be tested and the frequency to be tested are pre-recorded in the CBD test result file, step 202 is executed.

步骤202,基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试,获得测试结果;并根据该测试结果维护CBD测试结果文件。Step 202: Execute the CBD test case to test the processor under test based on the voltage point to be tested and the frequency to be tested to obtain the test result; and maintain the CBD test result file according to the test result.

本步骤中的待测电压点和待测频率为步骤201中确定的待测电压点和待测频率。The voltage point to be measured and the frequency to be measured in this step are the voltage point to be measured and the frequency to be measured determined in step 201 .

这里对测试结果文件的维护包括记录,以及更新测试结果文件。The maintenance of test result files here includes recording and updating test result files.

步骤202中基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试,获得测试结果时,该方法进一步包括:In step 202, the CBD test case is executed based on the voltage point to be tested and the frequency to be tested to test the processor to be tested. When the test result is obtained, the method further includes:

若测试结果为宕机,则通过开关机模块重启;If the test result is downtime, restart it through the power on/off module;

若测试结果为失败或超时,则使用关机命令关机;If the test result is failure or timeout, use the shutdown command to shut down the machine;

若测试结果为成功,则将CBD测试结果文件中的测试结果由不成功更新为成功;并确定该待测电压点对应的上一次测试的测试结果是否为成功;If the test result is successful, the test result in the CBD test result file is updated from unsuccessful to successful; and it is determined whether the test result of the last test corresponding to the voltage point to be tested is successful;

若为成功,则将当前次的待测频率增加第一预设步长;并判断增加第一预设步长后的待测频率是否大于频率测试最大值,如果是,在CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为频率测试最大值,并使用关机命令关机;否则,再次执行步骤202,基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试。If successful, increase the current frequency to be tested by a first preset step size; and determine whether the frequency to be tested after increasing by the first preset step size is greater than the maximum frequency test value. If so, record the test status as completed in the CBD test result file, and the frequency of the completed test is the maximum frequency test value, and use the shutdown command to shut down; otherwise, execute step 202 again, and execute the CBD test case based on the voltage point to be tested and the frequency to be tested to test the processor under test.

若为不成功,则在CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为测试成功的最大频率,并使用关机命令关机。If it is unsuccessful, the test status is recorded in the CBD test result file as the test completed, and the frequency of completing the test is the maximum frequency of successful tests, and the shutdown command is used to shut down.

直到配置文件中的所有测试电压点均完成测试,则确定完成了CBD测试。The CBD test is determined to be completed until all test voltage points in the configuration file have completed the test.

该实施例中详细给出CBD测试的启动条件,以及启动过程中如果对每一个测试电压点进行测试,直到对所有测试电压点进行测试完成实现对被测处理器的CBD测试的完成。在整个测试过程中遇到被测平台宕机,或者关闭再启动执行下一个测试频率的测试,都通过开关机模块自动实现,不需要人为干预,完全实现对被测处理器的自动化测试。This embodiment provides in detail the start-up conditions of the CBD test, and how to test each test voltage point during the start-up process until all test voltage points are tested to complete the CBD test of the processor under test. During the entire test process, if the platform under test crashes, or is shut down and restarted to perform the next test frequency test, it is automatically implemented through the power on/off module without human intervention, and fully realizes the automated test of the processor under test.

在步骤103中基于CBD测试结果文件执行VAL测试用例完成对被测处理器的VAL测试的具体实现,是由多组的待测电压点和待测频率的压测组成的,针对每组待测电压点和待测频率的压测的具体实现参见图3。In step 103, the VAL test case is executed based on the CBD test result file to complete the specific implementation of the VAL test of the processor under test, which is composed of stress tests of multiple groups of voltage points to be tested and frequencies to be tested. For the specific implementation of stress tests for each group of voltage points to be tested and frequencies to be tested, see Figure 3.

图3为本申请实施例中基于CBD测试结果文件执行VAL测试用例完成对被测处理器的VAL测试的流程示意图。具体步骤为:FIG3 is a flow chart of executing VAL test cases based on CBD test result files to complete VAL testing of the processor under test in an embodiment of the present application. The specific steps are:

步骤301,根据CBD测试结果文件和VAL测试结果文件确定待压测电压点和待压测频率。Step 301, determining a voltage point to be stress tested and a frequency to be stress tested according to a CBD test result file and a VAL test result file.

在确定待压测电压点和待压测频率时,若当前次压测是初次压测,则该VAL测试结果文件的内容为空;若当前次压测不是初次压测,则该VAL测试结果文件的内容为从开始进行VAL测试记录的所有内容。When determining the voltage point and frequency to be tested, if the current stress test is the first stress test, the content of the VAL test result file is empty; if the current stress test is not the first stress test, the content of the VAL test result file is all the contents recorded from the beginning of the VAL test.

在具体实现时,可以通过预先生成一个内容为空的VAL测试结果文件,用于对首次VAL测试的待压测电压点和待压测频率的确定;In specific implementation, a VAL test result file with empty content may be generated in advance to determine the voltage point to be tested and the frequency to be tested for the first VAL test;

也可以是在没有VAL测试结果文件的情况下,确定VAL测试结果文件的内容为空,来对首次VAL测试的待压测电压点和待压测频率进行确定。Alternatively, when there is no VAL test result file, it may be determined that the content of the VAL test result file is empty, so as to determine the voltage point to be tested and the frequency to be tested for the first VAL test.

本步骤的具体实现包括:The specific implementation of this step includes:

按照CBD测试结果文件中记录的待测电压点的顺序对每个待测电压点进行如下判断,来确定待压测电压点和待压测频率点:According to the order of the voltage points to be tested recorded in the CBD test result file, the following judgment is performed on each voltage point to be tested to determine the voltage point to be tested and the frequency point to be tested:

若确定CBD测试结果文件中待测电压点对应的测试结果为完全失败,则在该VAL测试结果文件中记录该待压测电压点对应的压测结果为失败,且压测状态为压测已完成;若存在下一个待测电压点,则对该CBD测试结果文件中的下一个待测电压点进行判断;否则,确定完成VAL测试;If it is determined that the test result corresponding to the voltage point to be tested in the CBD test result file is a complete failure, then the pressure test result corresponding to the voltage point to be tested is recorded as a failure in the VAL test result file, and the pressure test status is that the pressure test is completed; if there is a next voltage point to be tested, then the next voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed;

在CBD测试过程中针对一个待测电压点若不存在通过测试的待测频率,则在VAL测试过程中,不再对该电压点进行压测,直接记录为压测完全失败。If there is no tested frequency that passes the test for a voltage point to be tested during the CBD test, then during the VAL test, no stress test will be performed on the voltage point and the stress test will be directly recorded as a complete failure.

若确定VAL测试结果文件中不存在待测电压点对应的压测记录,且在CBD测试结果文件中待测电压点对应的测试结果为成功,则确定待测电压点为待压测电压点,完成测试的频率为待压测频率;If it is determined that there is no stress test record corresponding to the voltage point to be tested in the VAL test result file, and the test result corresponding to the voltage point to be tested in the CBD test result file is successful, then the voltage point to be tested is determined to be the voltage point to be stress tested, and the frequency of completing the test is the frequency to be stress tested;

若确定VAL测试结果文件中存在待测电压点对应的压测记录,且压测结果为不成功,则将上一次压测不成功的待压测频率减少第三预设步长作为当前次压测的待压测频率;If it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result is unsuccessful, the stress test frequency to be tested of the last unsuccessful stress test is reduced by a third preset step length as the stress test frequency to be tested of the current stress test;

若确定VAL测试结果文件中存在待测电压点对应的压测记录,且上一次压测的压测结果为成功,则在VAL测试结果文件中记录压测状态为压测已完成,且完成压测的频率为上一次压测的待压测频率;若存在下一个待测电压点,则对该CBD测试结果文件中的下一个待测电压点进行判断;否则,确定完成VAL测试。If it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result of the previous stress test is successful, then the stress test status is recorded in the VAL test result file as the stress test completed, and the frequency of the completed stress test is the stress test frequency to be tested in the previous stress test; if there is a next voltage point to be tested, then the next voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed.

在步骤301中确定待压测频率时,存在降步长的情况,且由于在配置文件中针对每个测试电压点设置频率测试最大值和频率测试最小值,因此,需要进一步判断待压测频率是否超过测试范围来确定是否作为真正的待压测频率来进行设置并测试,具体判断过程如下:When determining the frequency to be stress tested in step 301, there is a case of reducing the step length, and since the maximum value and the minimum value of the frequency test are set for each test voltage point in the configuration file, it is necessary to further determine whether the frequency to be stress tested exceeds the test range to determine whether to set and test it as the real frequency to be stress tested. The specific judgment process is as follows:

确定待压测频率是否小于频率测试最小值,如果是,在VAL测试结果文件中记录压测结果为完全失败,且待压测电压点的压测状态为压测已完成;否则,执行步骤302,基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测。Determine whether the frequency to be stress tested is less than the minimum value of the frequency test. If so, record the stress test result as complete failure in the VAL test result file, and the stress test status of the voltage point to be stress tested is stress test completed; otherwise, execute step 302, and execute the VAL test case to stress test the processor under test based on the voltage point to be stress tested and the frequency to be stress tested.

在确定了真正要压测的待压测频率后,设置待压测电压和待压测频率;并在VAL测试结果文件中将该待压测电压和待压测频率对应的测试结果预记录为不成功;After determining the frequency to be tested, set the voltage and frequency to be tested; and pre-record the test results corresponding to the voltage and frequency to be tested as unsuccessful in the VAL test result file;

设置待压测电压和待压测频率的工具通过配置文件中指定工具的路径获取。The tool for setting the voltage and frequency to be tested is obtained by specifying the tool path in the configuration file.

这里的不成功可以涵盖宕机、失败或超时情况发生导致的测试结果;这样的记录主要是为了防止测试平台在压测过程中宕机,而没有时间来进行VAL测试结果文件的记录,进而不能对下一次压测的电压、频率,以及是否压测进行判断。The failure here can include test results caused by downtime, failure or timeout; such records are mainly to prevent the test platform from downtime during the stress test, and there is no time to record the VAL test result file, and thus it is impossible to judge the voltage, frequency, and whether to perform the stress test for the next time.

在预记录完成后,执行步骤302。After the pre-recording is completed, step 302 is executed.

步骤302,基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测,获得压测结果;并根据该压测结果维护VAL测试结果文件。Step 302: execute the VAL test case to perform stress testing on the processor under test based on the voltage point to be stress tested and the frequency to be stress tested, and obtain the stress testing result; and maintain the VAL test result file according to the stress testing result.

这里对VAL测试结果文件的维护包括记录、更新等。The maintenance of VAL test result files here includes recording, updating, etc.

本步骤中基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测,获得压测结果;In this step, the VAL test case is executed based on the voltage point to be tested and the frequency to be tested to perform stress testing on the processor under test and obtain the stress testing result;

若确定压测结果为宕机,则通过开关机模块重启;If the stress test result is confirmed to be a downtime, restart it through the power on/off module;

若确定压测结果为失败或超时,则使用关机命令关机;If the stress test result is determined to be a failure or timeout, use the shutdown command to shut down the system.

若确定压测结果为成功,则将VAL测试结果文件中的压测结果由不成功更新为成功;并记录压测状态为压测已完成,以及通过压测的频率;若存在下一个待测电压点,则使用关机命令关机;否则,确定完成VAL测试。If the stress test result is determined to be successful, the stress test result in the VAL test result file is updated from unsuccessful to successful; and the stress test status is recorded as completed, and the frequency of passing the stress test; if there is a next voltage point to be tested, the shutdown command is used to shut down; otherwise, the VAL test is determined to be completed.

在一个待测电压点完成压测后,判断是否存在下一个未完成压测的待测电压点,如果存在,则使用关机命令关机,进行下一个待测电压点的压测;如果不存在,说明所有待测电压点均完成压测,则完成VAL测试,结束对被测处理器的测试。After completing the stress test at a voltage point to be tested, determine whether there is a next voltage point to be tested that has not completed the stress test. If so, use the shutdown command to shut down the computer and perform the stress test on the next voltage point to be tested. If not, it means that all voltage points to be tested have completed the stress test, then the VAL test is completed and the test of the processor under test is ended.

具体结束时,需要开关机模块停止对测试平台的监测,或者直接将开关机模块关机。When the test is completed, the power on/off module needs to stop monitoring the test platform, or the power on/off module needs to be turned off directly.

本申请实施例中在具体实现VAL测试过程中,还可以进行记录日志文件,通过该日志文件进行建模,以及电压点和频率之间的关系剖析等。In the specific implementation of the VAL test process in the embodiment of the present application, a log file can also be recorded, and modeling and relationship analysis between voltage points and frequencies can be performed through the log file.

该实施例中详细给出VAL测试的启动条件,以及启动过程中如果对每一个待测电压点进行压测,直到对所有待测电压点进行压测完成实现对被测处理器的VAL测试的完成。在整个压测过程中遇到被测平台宕机,或者关闭再启动执行下一个待压测频率的压测,都通过开关机模块自动实现,不需要人为干预,完全实现对被测处理器的自动化压测。This embodiment provides in detail the start-up conditions of the VAL test, and if each voltage point to be tested is subjected to stress testing during the startup process, the VAL test of the processor under test is completed until all voltage points to be tested are subjected to stress testing. During the entire stress testing process, if the platform under test crashes, or is shut down and restarted to perform the stress test of the next stress testing frequency, it is automatically implemented through the power on/off module without human intervention, and fully realizes the automated stress testing of the processor under test.

通过对被测处理器的CBD测试和VAL测试的自动化实现,大大提高测试被测处理器的效率,并且不受限于网络情况,能够保证测试的准确性和可持续性。By automating the CBD test and VAL test of the processor under test, the efficiency of testing the processor under test is greatly improved, and it is not limited by network conditions, and the accuracy and sustainability of the test can be guaranteed.

下面结合附图,分别从CBD测试和VAL测试两个阶段的测试详细描述用于测试处理器的过程。The following describes in detail the process of testing the processor from the two stages of CBD testing and VAL testing in conjunction with the accompanying drawings.

参见图4,图4为本申请实施例中CBD测试流程示意图。具体步骤为:See Figure 4, which is a schematic diagram of the CBD test process in the embodiment of this application. The specific steps are:

步骤401,测试平台通过开关机模块启动。Step 401: The test platform is started through the power on/off module.

开关机模块会监测测试平台的启动状态,如果监测到测试平台未启动,则启动测试平台。The power on/off module monitors the startup status of the test platform, and if it detects that the test platform is not started, it starts the test platform.

这里测试平台未启动可能是测试平台正常关机未启动,也可能是测试过程中宕机导致的未启动。如果是正常关机未启动,则直接启动;如果是宕机未启动,则需要重启实现测试平台的启动。The failure of the test platform to start here may be due to normal shutdown or downtime during the test. If it is normal shutdown, start it directly; if it is downtime, restart the test platform to start it.

步骤402,测试平台通过开机启动文件调用CBD测试脚本,并执行。Step 402: The test platform calls the CBD test script through the startup file and executes it.

开机启动文件中会配置命令通过调用CBD测试脚本并执行来启动CBD测试。The startup file will configure commands to start the CBD test by calling and executing the CBD test script.

步骤403,判断测试平台上一次是否正常关机,如果是,执行步骤404;否则,执行步骤424。Step 403, determine whether the test platform was shut down normally last time, if yes, execute step 404; otherwise, execute step 424.

步骤404,基于配置文件和CBD测试结果文件确定是否完成CBD测试,如果是,执行425;否则,执行步骤405。Step 404 , determining whether the CBD test is completed based on the configuration file and the CBD test result file, if so, executing 425 ; otherwise, executing step 405 .

步骤405,初始化,并基于配置文件进行安全设置。Step 405: Initialize and perform security settings based on the configuration file.

这里的初始化包括:加载固件驱动;加载产品限制文件等;The initialization here includes: loading firmware driver; loading product restriction files, etc.;

产品在设计时会有一些限制,或者定义,这些定义或者限制会写到一个文件中,这个文件称为产品限制文件;其中包括:支持的最大频率、最小频率,最大功耗,最高温度等。There will be some limitations or definitions when designing a product. These definitions or limitations will be written into a file called a product limitation file; this file includes: the maximum supported frequency, minimum supported frequency, maximum power consumption, maximum temperature, etc.

步骤406,按照配置文件中指定的测试电压点的顺序对每个测试电压点进行判断。Step 406 , judging each test voltage point according to the order of the test voltage points specified in the configuration file.

步骤407,若该测试电压点在CBD测试结果文件中无测试记录,则确定该测试电压点为待测电压点,测试电压点对应的初始测试频率为待测频率;执行步骤411。Step 407 , if there is no test record for the test voltage point in the CBD test result file, determine that the test voltage point is the voltage point to be tested, and the initial test frequency corresponding to the test voltage point is the frequency to be tested; and execute step 411 .

说明对该测试电压点未进行过CBD测试,使用对应的初始测试频率进行测试。This indicates that the CBD test has not been performed on this test voltage point, and the test is performed using the corresponding initial test frequency.

步骤408,若该测试电压点在CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试过程中,上一次测试的测试结果为成功,则确定该测试电压点为待测电压点,并将用于上一次测试的待测频率增加第一预设步长作为当前次测试的待测频率;执行步骤411。Step 408, if there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in the test process, and the test result of the previous test is successful, then the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the previous test is increased by a first preset step size as the frequency to be tested for the current test; execute step 411.

这说明初始设置的频率比较小,需要从小到大进行频率的测试,来找到最大的频率。This means that the initially set frequency is relatively small, and it is necessary to test the frequency from small to large to find the maximum frequency.

通常这种情况不会发生,本申请实施例中如果测试通过,且未达频率测试最大值为直接进入升步长继续测试流程,不会重启设备再次测试,因此,可能是因为人为或外界原因将测试平台关闭或重启导致的。Normally this situation does not occur. In the embodiment of the present application, if the test passes and the maximum frequency test value is not reached, the test process will be continued by directly increasing the step size, and the device will not be restarted to test again. Therefore, it may be caused by human or external reasons that the test platform is shut down or restarted.

步骤409,若该测试电压点在CBD测试结果文件中存在测试记录,且该测试记录中的测试状态为测试过程中,上一次测试的测试结果为不成功,则确定该测试电压点为待测电压点,并将用于上一次测试的待测频率减少第二预设步长作为当前次测试的待测频率;执行步骤411。Step 409, if there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in the test process, and the test result of the previous test is unsuccessful, then the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the previous test is reduced by a second preset step size as the frequency to be tested for the current test; execute step 411.

这说明初始设置的频率比较大,需要从大到小进行频率的测试,来找到能够通过测试的最大频率。This means that the initially set frequency is relatively large, and it is necessary to test the frequencies from large to small to find the maximum frequency that can pass the test.

步骤410,若该测试电压点在CBD测试结果文件中存在测试记录,且该测试记录中的测试状态为测试已完成,则对该配置文件中指定的下一个测试电压点进行判断,执行步骤406。Step 410 , if there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is that the test is completed, then the next test voltage point specified in the configuration file is determined, and step 406 is executed.

这里通常是存在下一个测试电压点的,如果不存在,且未针对任一待测电压点进行过测试状态变更,是会在步骤404时直接结束CBD测试的。Usually, there is a next test voltage point. If not, and the test state has not been changed for any voltage point to be tested, the CBD test will be directly terminated at step 404 .

步骤411,比较确定的待测频率与频率测试最大值和频率测试最小值的大小。Step 411, comparing the determined frequency to be tested with the maximum value of the frequency test and the minimum value of the frequency test.

在步骤408和步骤409中确定待测频率时,会存在升步长和降步长的情况,且由于在配置文件中针对每个测试电压点设置频率测试最大值和频率测试最小值,因此,需要进一步判断待测频率是否超过测试范围来确定是否作为真正的待测频率来进行设置并测试。When determining the frequency to be tested in step 408 and step 409, there may be an increase step size and a decrease step size, and since the maximum frequency test value and the minimum frequency test value are set for each test voltage point in the configuration file, it is necessary to further determine whether the frequency to be tested exceeds the test range to determine whether it should be set and tested as the actual frequency to be tested.

步骤412,若确定该待测频率小于频率测试最小值,且上一次测试结果为不成功,则在CBD测试结果文件中记录测试结果为完全失败,测试状态为已完成测试;执行步骤424。Step 412, if it is determined that the frequency to be tested is less than the minimum value of the frequency test, and the last test result is unsuccessful, then the test result is recorded as complete failure in the CBD test result file, and the test status is completed test; execute step 424.

说明将待测频率已降到频率测试最小值的时候,也没能测试通过,因此,不再对其进行测试。This means that when the frequency to be tested has been reduced to the minimum value of the frequency test, the test still fails, so it is no longer tested.

步骤413,若确定该待测频率大于频率测试最大值,则在CBD测试结果文件中记录测试结果为成功,测试状态为测试已完成,且完成测试的频率为频率测试最大值,执行步骤424。Step 413, if it is determined that the frequency to be tested is greater than the maximum value of the frequency test, the test result is recorded as success in the CBD test result file, the test status is that the test has been completed, and the frequency of the completed test is the maximum value of the frequency test, and step 424 is executed.

本申请实施例在升降频率步长时,通常设置频率步长会使得存在与频率测试最大值和频率测试最小值相同的情况,因此,测试通过的最大频率为频率测试最大值;不通过测试的频率,测试到频率测试最小值;不会存在之前的频率小于频率最大值,升步长后就大于频率测试最大值的情况,以及之前的频率大于频率最小值,降步长后就小于频率测试最小值的情况。In the embodiment of the present application, when increasing or decreasing the frequency step, the frequency step is usually set so that there is a situation where the frequency test maximum value and the frequency test minimum value are the same. Therefore, the maximum frequency that passes the test is the maximum frequency test value; the frequency that fails the test is tested to the minimum frequency test value. There will not be a situation where the previous frequency is less than the maximum frequency value, but becomes greater than the maximum frequency test value after increasing the step size, and there will not be a situation where the previous frequency is greater than the minimum frequency value, but becomes less than the minimum frequency test value after decreasing the step size.

步骤414,若确定该待测频率不小于频率测试最小值,且不大于频率测试最大值,则确定当前确定的待测频率作为要测试的频率。Step 414: If it is determined that the frequency to be tested is not less than the minimum value of the frequency test and not greater than the maximum value of the frequency test, the currently determined frequency to be tested is determined as the frequency to be tested.

也就是说在确定待测频率处于测试频率范围内,会将该待测频率作为要测试的频率。That is to say, when it is determined that the frequency to be tested is within the test frequency range, the frequency to be tested will be used as the frequency to be tested.

步骤415,设置待测电压点和待测频率,并在CBD测试结果文件中对该待测电压和待测频率对应的测试结果预记录为不成功。Step 415, setting the voltage point to be tested and the frequency to be tested, and pre-recording the test result corresponding to the voltage to be tested and the frequency to be tested as unsuccessful in the CBD test result file.

这里的不成功包括测试结果为宕机、失败和超时;这样的记录主要是为了防止测试平台在测试过程中宕机,而没有时间来进行CBD测试结果文件的记录,进而不能对下一次测试的电压、频率,以及是否测试进行判断。The failure here includes the test results of downtime, failure and timeout; such records are mainly to prevent the test platform from downtime during the test, and there is no time to record the CBD test result file, and then it is impossible to judge the voltage, frequency and whether to test the next time.

步骤416,基于确定的待测电压点和待测频率执行CBD测试用例对被测处理器进行测试,获得测试结果。Step 416: Execute the CBD test case based on the determined voltage point to be tested and the frequency to be tested to test the processor to obtain a test result.

步骤417,若测试结果为宕机,则通过开关机模块重启,执行步骤402。Step 417, if the test result is downtime, restart through the power on/off module and execute step 402.

步骤418,若测试结果为失败或超时,则执行步骤424。Step 418: If the test result is failure or timeout, execute step 424.

步骤419,若测试结果为成功,则将CBD测试结果文件中的测试状态由不成功更新为成功。Step 419: If the test result is successful, the test status in the CBD test result file is updated from unsuccessful to successful.

步骤420,确定该待测电压点对应的上一次测试的测试结果是否为成功,如果是,执行步骤421;否则,执行步骤423。Step 420 , determining whether the test result of the last test corresponding to the voltage point to be tested is successful, if yes, executing step 421 ; otherwise, executing step 423 .

步骤421,将当前次的待测频率增加第一预设步长,并判断增加第一预设步长后的待测频率是否大于频率测试最大值,如果是,执行步骤422;否则,执行步骤415。Step 421, increase the current frequency to be tested by a first preset step length, and determine whether the frequency to be tested after increasing by the first preset step length is greater than the maximum frequency test value. If yes, execute step 422; otherwise, execute step 415.

步骤422,在CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为频率测试最大值,执行步骤424。Step 422 , record in the CBD test result file that the test status is completed, and the frequency of the completed test is the maximum value of the frequency test, and execute step 424 .

步骤423,在CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为测试成功的最大频率。Step 423, record in the CBD test result file that the test status is completed, and the frequency of completed test is the maximum frequency of successful test.

步骤424,使用关机命令关机。执行步骤401。Step 424: Shut down the computer using a shutdown command. Execute step 401.

步骤425,启动VAL测试。Step 425, start the VAL test.

启动VAL测试说明CBD测试已完成。Starting the VAL test indicates that the CBD test has been completed.

参见图5,图5为本申请实施例中VAL测试流程示意图。具体步骤为:See Figure 5, which is a schematic diagram of the VAL test process in the embodiment of the present application. The specific steps are:

步骤501,测试平台通过开关机模块启动。Step 501: The test platform is started through the power on/off module.

开关机模块会监测测试平台的启动状态,如果监测到测试平台未启动,则启动测试平台。The power on/off module monitors the startup status of the test platform, and if it detects that the test platform is not started, it starts the test platform.

这里测试平台未启动可能是测试平台正常关机未启动,也可能是测试过程中宕机导致的未启动,如果是正常关机未启动,则直接启动;如果是宕机未启动,则需要重启实现测试平台的启动。The failure to start the test platform here may be due to normal shutdown or failure to start the test platform during the test. If it is due to normal shutdown, start it directly; if it is due to a crash, you need to restart to start the test platform.

步骤502,通过开机启动文件调用CBD测试脚本,并执行。Step 502, calling the CBD test script through the startup file and executing it.

开机启动文件中会配置命令通过调用CBD测试脚本并执行来启动CBD测试。The startup file will configure commands to start the CBD test by calling and executing the CBD test script.

步骤503,判断测试平台上一次是否正常关机,如果是,执行步骤504;否则,执行步骤520。Step 503, determine whether the test platform was shut down normally last time, if yes, execute step 504; otherwise, execute step 520.

步骤504,若基于配置文件和CBD测试结果文件确定已完成CBD测试,则调用VAL测试脚本并执行。Step 504: If it is determined based on the configuration file and the CBD test result file that the CBD test has been completed, the VAL test script is called and executed.

在具体实现时,若已进入VAL测试,则说明必定已完成CBD测试,因此,本实施例中仅给出CBD测试已完成,进行VAL测试的过程。In specific implementation, if the VAL test has been entered, it means that the CBD test must have been completed. Therefore, this embodiment only provides the process of completing the CBD test and performing the VAL test.

CBD测试结果文件记录了每个待测电压点的测试结果,每个待测电压点的测试结果包括:The CBD test result file records the test results of each voltage point to be tested. The test results of each voltage point to be tested include:

待测电压点、测试结果和测试状态;其中,测试结果包括:成功和完全失败,以及成功通过测试的待测频率;测试状态为测试过程中和测试已完成。在VAL测试过程中,待测电压点对应的测试状态为测试已完成。The voltage point to be tested, the test result and the test status; the test results include: success and complete failure, and the tested frequency that successfully passed the test; the test status is in the test process and the test has been completed. During the VAL test process, the test status corresponding to the voltage point to be tested is the test has been completed.

当配置文件中的测试电压点在CBD中对应的待测电压点的测试状态均为测试已完成,则确定已完成CBD测试。When the test statuses of the voltage points to be tested corresponding to the test voltage points in the configuration file in the CBD are all completed, it is determined that the CBD test is completed.

步骤505,基于CBD测试结果文件和VAL测试结果文件确定是否已完成VAL测试,如果是,执行步骤521;否则,执行步骤506。Step 505 , determining whether the VAL test has been completed based on the CBD test result file and the VAL test result file, if so, executing step 521 ; otherwise, executing step 506 .

VAL测试结果文件记录了每个待压测电压点的测试结果,每个待压测电压的测试结果包括:The VAL test result file records the test results of each voltage point to be tested. The test results of each voltage to be tested include:

待压测电压、压测结果和压测状态:其中,压测结果包括:成功和完全失败;压测状态包括:压测过程中和压测已完成,若是压测已完成,还记录成功通过压测的待压测频率。Voltage to be tested, test results, and status: The test results include success and complete failure. The test status includes during and completed. If the test is completed, the frequency of the test to be tested that has successfully passed the test is also recorded.

若CBD测试结果文件中的待测电压点在VAL测试结果文件中对应的压测状态均为压测完成,则确定已完成VAL测试;否则,确定未完成VAL测试。If the pressure test statuses corresponding to the voltage points to be tested in the CBD test result file in the VAL test result file are all pressure test completed, it is determined that the VAL test has been completed; otherwise, it is determined that the VAL test has not been completed.

在配置文件中的测试电压点、CBD测试结果文件中的待测电压点和VAL测试结果文件中的待压测电压点均为对应的电压点,在不同文件中使用不同的名称,仅是为了避免描述时发生混淆情况。The test voltage points in the configuration file, the voltage points to be tested in the CBD test result file, and the voltage points to be tested in the VAL test result file are all corresponding voltage points. Different names are used in different files only to avoid confusion during description.

步骤506,初始化,并基于配置文件进行安全设置。Step 506: Initialize and perform security settings based on the configuration file.

这里的初始化包括:加载固件驱动;加载产品限制文件等。The initialization here includes: loading firmware driver; loading product restriction file, etc.

步骤507,按照CBD测试结果文件中记录的待测电压点的顺序对每个待测电压点进行判断。Step 507 , judging each voltage point to be tested according to the order of the voltage points to be tested recorded in the CBD test result file.

如CBD测试结果文件中记录的测试电压点为:A、B、C、D,则从待测电压点A开始判断,若在VAL测试结果文件中对应的压测结果为测试已完成,则进行下一个待测电压点B的判断,针对压测结果为压测过程中,或不存在压测记录,则对该待测电压点A进行是否压测的相关判断。If the test voltage points recorded in the CBD test result file are: A, B, C, D, then the judgment starts from the voltage point A to be tested. If the corresponding stress test result in the VAL test result file is that the test is completed, the judgment of the next voltage point B to be tested is carried out. If the stress test result is that the stress test is in progress, or there is no stress test record, then the relevant judgment on whether the voltage point A to be tested is stress tested is carried out.

步骤508,若确定CBD测试结果文件中待测电压点对应的测试结果为完全失败,则在VAL测试结果文件中记录该待压测电压点对应的压测结果为失败,且压测状态为压测已完成;执行步骤519。Step 508, if it is determined that the test result corresponding to the voltage point to be tested in the CBD test result file is a complete failure, then the stress test result corresponding to the voltage point to be stress tested is recorded in the VAL test result file as failure, and the stress test status is that the stress test has been completed; execute step 519.

本步骤确定该待测电压点在CBD测试过程中就未搜索到可以完成测试的频率,则也不对其进行压测。This step determines that the voltage point to be tested has not found a frequency that can complete the test during the CBD test, so no pressure test is performed on it.

步骤509,若确定VAL测试结果文件中不存在待测电压点对应的压测记录,且在CBD测试结果文件中待测电压点对应的测试结果为成功,则确定待测电压点为待压测电压点,完成测试的频率为待压测频率;执行步骤512。Step 509, if it is determined that there is no stress test record corresponding to the voltage point to be tested in the VAL test result file, and the test result corresponding to the voltage point to be tested in the CBD test result file is successful, then the voltage point to be tested is determined to be the voltage point to be stress tested, and the frequency of the completed test is the frequency to be stress tested; execute step 512.

说明这个待测电压点还未进行过压测,且在CBD测试过程中是测试成功,因此,需针对该待测电压点进行压测操作。This indicates that the voltage point to be tested has not been stress tested and the test was successful during the CBD test. Therefore, a stress test operation needs to be performed on the voltage point to be tested.

步骤510,若确定VAL测试结果文件中存在待测电压点对应的压测记录,且压测结果为不成功,则将上一次压测不成功的待压测频率减少第三步长作为当前次压测的待压测频率;执行步骤512。Step 510, if it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result is unsuccessful, then the stress test frequency to be tested of the last unsuccessful stress test is reduced by a third step length as the stress test frequency to be tested of the current stress test; and step 512 is executed.

说明这个待测电压点在CBD测试过程获得的最大频率在VAL测试过程中未通过压测,需要降频率步长来继续压测。This indicates that the maximum frequency obtained by the voltage point to be tested during the CBD test process did not pass the stress test during the VAL test process, and the frequency step size needs to be reduced to continue the stress test.

步骤511,若确定VAL测试结果文件中存在待测电压点对应的压测记录,且上一次压测的压测结果为成功,则在VAL测试结果文件中记录压测状态为压测已完成,且完成压测的频率为上一次压测的待压测频率,执行步骤519。Step 511, if it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result of the previous stress test is successful, then the stress test status is recorded in the VAL test result file as the stress test completed, and the frequency of the completed stress test is the frequency to be tested of the previous stress test, and step 519 is executed.

这种情况的发生不是常规情况,可能是某次成功测试时,测试平台被人为或外界原因进行了重启导致的。This situation is not a common occurrence. It may be caused by the test platform being restarted manually or for external reasons during a successful test.

步骤512,确定待压测频率是否小于频率测试最小值,如果是,执行步骤513;否则,执行步骤514。Step 512, determine whether the frequency to be stress-tested is less than the minimum value of the frequency test, if so, execute step 513; otherwise, execute step 514.

因为在确定待压测频率时,存在降步长的情况,因此需要执行此步骤来确定是否进行继续对降步长后的频率进行压测;并且在VAL阶段待压测频率不会超过频率测试最大值,且不存在升步长的情况,因此,这里不再对待压测频率是否超过频率测试最大值进行判断。Because when determining the frequency to be stress tested, there is a situation where the step size is reduced, so this step needs to be performed to determine whether to continue stress testing the frequency after the step size is reduced; and in the VAL stage, the frequency to be stress tested will not exceed the maximum value of the frequency test, and there is no situation where the step size is increased. Therefore, here, it is no longer judged whether the frequency to be stress tested exceeds the maximum value of the frequency test.

步骤513,在VAL测试结果文件中记录压测结果为完全失败,且待压测电压点的压测状态为压测已完成。执行步骤519。Step 513 , record in the VAL test result file that the stress test result is completely failed, and the stress test status of the voltage point to be stress tested is that the stress test is completed. Execute step 519 .

步骤514,在VAL测试结果文件中针对该待压测电压点和该待压测频率对应的测试结果预记录为不成功,并开始进行日志收集。Step 514: pre-record the test result corresponding to the voltage point to be stress tested and the frequency to be stress tested as unsuccessful in the VAL test result file, and start to collect logs.

不成功包括宕机、失败、超时对应的测试结果。Unsuccessful tests include downtime, failure, and timeout.

步骤515,基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测,获得测试结果。Step 515: Execute the VAL test case to perform stress testing on the processor under test based on the voltage point to be stress tested and the frequency to be stress tested to obtain a test result.

步骤516,若确定压测结果为宕机,则通过开关机模块重启,执行步骤502。Step 516, if it is determined that the stress test result is a shutdown, restart the system through the power on/off module and execute step 502.

步骤517,若确定压测结果为失败或超时,则执行步骤520。Step 517: If it is determined that the stress test result is a failure or a timeout, execute step 520.

步骤518,若确定压测结果为成功,则将VAL测试结果文件中的压测结果由不成功更新为成功,记录压测状态为压测已完成,以及通过压测的频率,并停止日志记录。Step 518, if it is determined that the stress test result is successful, the stress test result in the VAL test result file is updated from unsuccessful to successful, the stress test status is recorded as completed, and the frequency of passing the stress test, and log recording is stopped.

步骤519,判断当前待压测电压点是否为最后一个待测电压点,如果是,执行步骤521;否则,执行步骤520。Step 519 , determining whether the current voltage point to be tested is the last voltage point to be tested, if so, executing step 521 ; otherwise, executing step 520 .

步骤520,使用关机命令关机,执行步骤501。Step 520, shut down using a shutdown command, and execute step 501.

步骤521,停止CBD测试脚本和VAL测试脚本的执行。Step 521, stop the execution of the CBD test script and the VAL test script.

停止脚本的执行,即不再进行测试,是否对测试平台进行关机处理,本申请实施例中对此不进行限制。Stopping the execution of the script means that no more testing is performed. Whether the test platform is shut down is not restricted in the embodiments of the present application.

本申请实施例中提供的用于测试处理器的方案相对于手动测试,可以完全释放测试人员,夜间和假日都可持续测试,并且同时测试被测处理器的个数不受限制,可以根据实际需要同时测试,大大提高测试效率;Compared with manual testing, the solution for testing processors provided in the embodiments of the present application can completely free up testers, and continuous testing is possible at night and on holidays. In addition, the number of processors tested at the same time is not limited, and tests can be performed simultaneously according to actual needs, greatly improving test efficiency.

并且由于本申请实施例中提供的测试方案不依赖网络,可以排除网络不稳的影响,保证测试结果的准确性;并且在网络维护时,依然可以进行测试,保证了测试的可持续性;Furthermore, since the test solution provided in the embodiment of the present application does not rely on the network, the influence of network instability can be eliminated to ensure the accuracy of the test results; and during network maintenance, the test can still be performed to ensure the sustainability of the test;

本申请实施例中提供的测试方案只要将测试脚本、测试用例和对应的配置文件存储到对应的被测处理器的测试平台上即可,维护起来更方便,也不会误操作其他被测设备。The test solution provided in the embodiment of the present application only needs to store the test scripts, test cases and corresponding configuration files on the test platform of the corresponding processor under test, which is more convenient to maintain and will not cause misoperation of other devices under test.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.

基于同样的发明构思,本申请实施例中还提供一种用于测试处理器的装置,应用于被测处理器的测试平台上。参见图6,图6为本申请实施例中用于测试处理器的装置结构示意图。该装置包括:Based on the same inventive concept, an embodiment of the present application also provides a device for testing a processor, which is applied to a test platform of a processor under test. Referring to FIG. 6 , FIG. 6 is a schematic diagram of the structure of a device for testing a processor in an embodiment of the present application. The device includes:

存储单元601,用于存储CBD测试脚本、CBD测试用例、VAL测试脚本、VAL测试用例和配置文件;Storage unit 601, used to store CBD test scripts, CBD test cases, VAL test scripts, VAL test cases and configuration files;

启动单元602,用于通过开关机模块启动;开关机模块与测试平台通过硬件相连,用于监测到测试平台未启动时,启动测试平台;The startup unit 602 is used to start the test platform through the power-on/off module; the power-on/off module is connected to the test platform through hardware, and is used to start the test platform when it is detected that the test platform is not started;

测试单元603,用于通过开机启动文件调用CBD测试脚本并执行,基于配置文件执行CBD测试用例完成对被测处理器的CBD测试;The testing unit 603 is used to call and execute the CBD test script through the boot file, and execute the CBD test case based on the configuration file to complete the CBD test of the processor under test;

压测单元604,用于在确定完成CBD测试后,调用VAL测试脚本并执行,基于CBD测试结果文件执行VAL测试用例完成对被测处理器的VAL测试;其中,CBD测试结果文件为在CBD测试过程中记录的测试结果文件。The stress testing unit 604 is used to call and execute the VAL test script after determining that the CBD test is completed, and execute the VAL test case based on the CBD test result file to complete the VAL test of the processor under test; wherein the CBD test result file is a test result file recorded during the CBD test process.

在一个实施方式中,In one embodiment,

测试单元603,具体用于基于配置文件执行CBD测试用例完成对被测处理器的CBD测试时,根据配置文件和CBD测试结果文件确定待测电压点和待测频率;基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试,获得测试结果,并根据测试结果维护CBD测试结果文件;The test unit 603 is specifically used to execute the CBD test case based on the configuration file to complete the CBD test of the processor under test, determine the voltage point and the frequency to be tested according to the configuration file and the CBD test result file; execute the CBD test case based on the voltage point and the frequency to be tested to test the processor under test, obtain the test result, and maintain the CBD test result file according to the test result;

压测单元604,具体用于基于CBD测试结果文件执行VAL测试用例完成对被测处理器的VAL测试时,根据CBD测试结果文件和VAL测试结果文件确定待压测电压点和待压测频率;基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测,获得压测结果,并根据压测结果维护VAL测试结果文件。The stress testing unit 604 is specifically used to execute the VAL test case based on the CBD test result file to complete the VAL test of the processor under test, determine the voltage point to be stress tested and the frequency to be stress tested according to the CBD test result file and the VAL test result file; execute the VAL test case based on the voltage point to be stress tested and the frequency to be stress tested to stress test the processor under test, obtain the stress testing result, and maintain the VAL test result file according to the stress testing result.

在一个实施方式中,In one embodiment,

存储单元601,具体用于存储的配置文件中指定测试电压点,以及测试电压点对应的初始测试频率;The storage unit 601 is specifically used to store the test voltage point specified in the configuration file and the initial test frequency corresponding to the test voltage point;

测试单元603,具体用于根据配置文件和CBD测试结果文件确定待测电压点和待测频率时,按照配置文件中指定的测试电压点的顺序对每个测试电压点进行如下判断:若测试电压点在CBD测试结果文件中无测试记录,则确定测试电压点为待测电压点,测试电压点对应的初始测试频率为待测频率; 若测试电压点在CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试过程中,上一次测试的测试结果为成功,则确定测试电压点为待测电压点,并将用于上一次测试的待测频率增加第一预设步长作为当前次测试的待测频率;若测试电压点在CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试过程中,上一次测试的测试结果为不成功,则确定测试电压点为待测电压点,并将用于上一次测试的待测频率减少第二预设步长作为当前次测试的待测频率;若测试电压点在CBD测试结果文件中存在测试记录,且测试记录中的测试状态为测试已完成,则对配置文件中指定的下一个测试电压点进行判断。The test unit 603 is specifically used to determine the voltage point to be tested and the frequency to be tested according to the configuration file and the CBD test result file, and to make the following judgment on each test voltage point according to the order of the test voltage points specified in the configuration file: if there is no test record of the test voltage point in the CBD test result file, then determine the test voltage point as the voltage point to be tested, and the initial test frequency corresponding to the test voltage point is the frequency to be tested; If there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in test process, and the test result of the previous test is successful, then the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the previous test is increased by a first preset step size as the frequency to be tested for the current test; if there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is in test process, and the test result of the previous test is unsuccessful, then the test voltage point is determined to be the voltage point to be tested, and the frequency to be tested used for the previous test is reduced by a second preset step size as the frequency to be tested for the current test; if there is a test record for the test voltage point in the CBD test result file, and the test status in the test record is that the test is completed, then the next test voltage point specified in the configuration file is judged.

在一个实施方式中,In one embodiment,

存储单元601,具体用于存储的配置文件中针对每个测试电压点设置频率测试最大值和频率测试最小值;The storage unit 601 is specifically used to set the maximum value and the minimum value of the frequency test for each test voltage point in the stored configuration file;

测试单元603,具体用于根据配置文件和CBD测试结果文件确定待测电压点和待测频率之后,基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试之前,比较确定的待测频率与频率测试最大值和频率测试最小值的大小:若确定待测频率小于频率测试最小值,且上一次测试结果为不成功,则在CBD测试结果文件中记录测试结果为完全失败,测试状态为已完成测试;并使用关机命令关机;若确定待测频率不小于频率测试最小值,且不大于频率测试最大值,则执行基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试步骤;若确定待测频率大于频率测试最大值,则在CBD测试结果文件中记录测试结果为成功,测试状态为测试已完成,且完成测试的频率为频率测试最大值,并使用关机命令关机。The test unit 603 is specifically used to determine the voltage point to be tested and the frequency to be tested according to the configuration file and the CBD test result file, and before executing the CBD test case to test the processor under test based on the voltage point to be tested and the frequency to be tested, compare the determined frequency to be tested with the maximum value of the frequency test and the minimum value of the frequency test: if it is determined that the frequency to be tested is less than the minimum value of the frequency test, and the previous test result is unsuccessful, then the test result is recorded in the CBD test result file as a complete failure, and the test status is that the test has been completed; and the shutdown command is used to shut down; if it is determined that the frequency to be tested is not less than the minimum value of the frequency test, and not greater than the maximum value of the frequency test, then the CBD test case is executed based on the voltage point to be tested and the test step of the processor under test is performed; if it is determined that the frequency to be tested is greater than the maximum value of the frequency test, then the test result is recorded in the CBD test result file as success, the test status is that the test has been completed, and the frequency of the completed test is the maximum value of the frequency test, and the shutdown command is used to shut down.

在一个实施方式中,In one embodiment,

存储单元601,进一步用于在CBD测试结果文件中针对待测电压点和待测频率对应的测试结果预记录为不成功;The storage unit 601 is further used to pre-record the test result corresponding to the voltage point to be tested and the frequency to be tested as unsuccessful in the CBD test result file;

测试单元603,进一步用于基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试,获得测试结果时,若测试结果为宕机,则通过开关机模块重启;若测试结果为失败或超时,则使用关机命令关机;若测试结果为成功,则将CBD测试结果文件中的测试结果由不成功更新为成功;并确定待测电压对应的上一次测试的测试状态是否为成功;若为成功,则将当前次的待测频率增加第一预设步长;若为不成功,则在CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为测试成功的最大频率,并使用关机命令关机。The test unit 603 is further used to execute the CBD test case to test the processor under test based on the voltage point to be tested and the frequency to be tested. When obtaining the test result, if the test result is a downtime, the power on/off module is used to restart; if the test result is a failure or a timeout, the shutdown command is used to shut down; if the test result is successful, the test result in the CBD test result file is updated from unsuccessful to successful; and it is determined whether the test status of the last test corresponding to the voltage to be tested is successful; if it is successful, the current frequency to be tested is increased by a first preset step size; if it is unsuccessful, the test status is recorded in the CBD test result file as the test completed, and the frequency of the completed test is the maximum frequency of the successful test, and the shutdown command is used to shut down.

在一个实施方式中,In one embodiment,

测试单元603,进一步用于将待测频率增加第一预设步长之后,判断增加第一预设步长后的待测频率是否大于频率测试最大值,如果是,在CBD测试结果文件中记录测试状态为测试已完成,且完成测试的频率为频率测试最大值,并使用关机命令关机;否则,执行基于待测电压点和待测频率执行CBD测试用例对被测处理器进行测试的操作。The test unit 603 is further used to determine whether the frequency to be tested after increasing the first preset step length is greater than the maximum frequency test value after the frequency to be tested is increased by the first preset step length. If so, the test status is recorded in the CBD test result file as the test completed, and the frequency of the completed test is the maximum frequency test value, and the shutdown command is used to shut down; otherwise, the operation of executing the CBD test case based on the voltage point to be tested and the frequency to be tested is performed to test the processor to be tested.

在一个实施方式中,In one embodiment,

压测单元604,具体用于根据CBD测试结果文件和VAL测试结果文件确定待压测电压点和待压测频率时,按照CBD测试结果文件中记录的待测电压点的顺序对每个待测电压点进行如下判断:若确定CBD测试结果文件中待测电压点对应的测试结果为完全失败,则在该VAL测试结果文件中记录该待压测电压点对应的压测结果为失败,且压测状态为压测已完成;若存在下一个待测电压点,则对该CBD测试结果文件中的下一个待测电压点进行判断;否则,确定完成VAL测试;若确定VAL测试结果文件中不存在待测电压点对应的压测记录,且在CBD测试结果文件中待测电压点对应的测试结果为成功,则确定待测电压点为待压测电压点,完成测试的频率为待压测频率;若确定VAL测试结果文件中存在待测电压点对应的压测记录,且压测结果为不成功,则将上一次压测不成功的待压测频率减少第三步长作为当前次压测的待压测频率;若确定VAL测试结果文件中存在待测电压点对应的压测记录,且上一次压测的压测结果为成功,则在VAL测试结果文件中记录压测状态为压测已完成,且完成压测的频率为上一次压测的待压测频率;若存在下一个待测电压点,则对该CBD测试结果文件中的下一个待测电压点进行判断;否则,确定完成VAL测试。The stress test unit 604 is specifically used to determine the voltage point to be stress tested and the frequency to be stress tested according to the CBD test result file and the VAL test result file, and to make the following judgments on each voltage point to be tested according to the order of the voltage points to be tested recorded in the CBD test result file: if it is determined that the test result corresponding to the voltage point to be tested in the CBD test result file is completely failed, then the stress test result corresponding to the voltage point to be stress tested is recorded in the VAL test result file as failure, and the stress test status is that the stress test is completed; if there is a next voltage point to be tested, then the next voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed; if it is determined that there is no stress test record corresponding to the voltage point to be tested in the VAL test result file, and the voltage point to be tested in the CBD test result file is not completely failed, then the voltage point to be tested is recorded in the VAL test result file as failed, and the stress test status is that the stress test is completed; if there is a next voltage point to be tested, then the next voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed; if it is determined that there is no stress test record corresponding to the voltage point to be tested in the VAL test result file, and the voltage point to be tested in the CBD test result file is not completely failed, then the voltage point to be tested in the CBD test result file is not completely failed, and the voltage point to be tested in the CBD test result file is completely failed, then the voltage point to be tested in the VAL test result file is completely failed, and the stress test status is that the stress test is completed; if there is a next voltage point to be tested, then the voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed; if it is determined that there is no stress test record corresponding to the voltage point to be tested in the VAL test result file, and the voltage point to be tested in the CBD test result file is completely failed, then the voltage If the test result corresponding to the voltage point is successful, the voltage point to be tested is determined to be the voltage point to be stress tested, and the frequency of the completed test is the frequency to be stress tested; if it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result is unsuccessful, the frequency to be stress tested of the last unsuccessful stress test is reduced by the third step as the frequency to be stress tested of the current stress test; if it is determined that there is a stress test record corresponding to the voltage point to be tested in the VAL test result file, and the stress test result of the last stress test is successful, the stress test status is recorded in the VAL test result file as the stress test completed, and the frequency of the completed stress test is the frequency to be stress tested of the last stress test; if there is a next voltage point to be tested, the next voltage point to be tested in the CBD test result file is judged; otherwise, it is determined that the VAL test is completed.

在一个实施方式中,In one embodiment,

压测单元604,进一步用于根据CBD测试结果文件和VAL测试结果文件确定待压测电压点和待压测频率之后,基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测之前,确定待压测频率是否小于频率测试最小值,如果是,在VAL测试结果文件中记录压测结果为完全失败,且待压测电压点的压测状态为压测已完成;否则,执行基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测操作。The stress testing unit 604 is further used to determine the voltage point to be stress tested and the frequency to be stress tested according to the CBD test result file and the VAL test result file, and before executing the VAL test case based on the voltage point to be stress tested and the frequency to be stress tested to perform stress testing on the processor under test, determine whether the frequency to be stress tested is less than the minimum value of the frequency test; if so, record the stress testing result as complete failure in the VAL test result file, and the stress testing status of the voltage point to be stress tested is that the stress testing is completed; otherwise, execute the VAL test case based on the voltage point to be stress tested and the frequency to be stress tested to perform stress testing on the processor under test.

在一个实施方式中,In one embodiment,

存储单元601,进一步用于在VAL测试结果文件中针对待压测频率点和待压测频率对应的压测结果预记录为不成功;The storage unit 601 is further used to pre-record the stress test result corresponding to the stress test frequency point to be stress tested and the stress test frequency to be stress tested as unsuccessful in the VAL test result file;

压测单元604,进一步用于基于待压测电压点和待压测频率执行VAL测试用例对被测处理器进行压测获得压测结果时,方法进一步包括:若确定压测结果为宕机,则通过开关机模块重启;若确定压测结果为失败或超时,则使用关机命令关机;若确定压测结果为成功,则将VAL测试结果文件中的压测结果由不成功更新为成功;并记录压测状态为压测已完成,以及通过压测的频率为压测成功的待压测频率;若存在下一个待测电压点,则使用关机命令关机;否则,确定完成VAL测试。The stress testing unit 604 is further used to execute the VAL test case to perform stress testing on the processor under test based on the voltage point to be stress tested and the frequency to be stress tested to obtain the stress testing result. The method further includes: if it is determined that the stress testing result is a downtime, restarting through the power on/off module; if it is determined that the stress testing result is a failure or a timeout, shutting down using the shutdown command; if it is determined that the stress testing result is successful, updating the stress testing result in the VAL test result file from unsuccessful to successful; and recording the stress testing status as completed, and the frequency that passed the stress testing as the frequency to be tested for successful stress testing; if there is a next voltage point to be tested, shutting down using the shutdown command; otherwise, determining that the VAL test is completed.

上述实施例的单元可以集成于一体,也可以分离部署;可以合并为一个单元,也可以进一步拆分成多个子单元。The units in the above-mentioned embodiments may be integrated into one body or deployed separately; they may be combined into one unit or further divided into multiple sub-units.

图7是本申请实施例提供的一种电子设备的结构示意图。在一些实施例中,该电子设备为测试平台。该电子设备700可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(Central Processing Units,CPU)701和一个或一个以上的存储器702,其中,该存储器702中存储有至少一条程序代码,该至少一条程序代码由该处理器701加载并执行以实现上述各个实施例提供的用于测试处理器的方法。当然,该电子设备700还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该电子设备700还可以包括其它用于实现设备功能的部件,在此不做赘述。FIG7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. In some embodiments, the electronic device is a test platform. The electronic device 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, wherein the memory 702 stores at least one program code, and the at least one program code is loaded and executed by the processor 701 to implement the method for testing the processor provided in the above-mentioned various embodiments. Of course, the electronic device 700 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the electronic device 700 may also include other components for implementing device functions, which will not be repeated here.

在示例性实施例中,还提供了一种包括至少一条指令的计算机可读存储介质,例如包括至少一条指令的存储器,上述至少一条指令可由计算机设备中的处理器执行以完成上述实施例中的用于测试处理器的方法。In an exemplary embodiment, a computer-readable storage medium including at least one instruction is also provided, such as a memory including at least one instruction. The at least one instruction can be executed by a processor in a computer device to complete the method for testing the processor in the above embodiment.

可选地,上述计算机可读存储介质可以是非临时性计算机可读存储介质,例如,该非临时性计算机可读存储介质可以包括ROM(Read-Only Memory,只读存储器)、RAM(Random-Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-Only Memory,只读光盘)、磁带、软盘和光数据存储设备等。Optionally, the above-mentioned computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may include ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage device, etc.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

本申请附图中的流程图和框图,示出了按照本申请公开的各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或者代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应该注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同附图中所标准的顺序发生。例如,两个连接地表示的方框实际上可以基本并行地执行,它们有时也可以按照相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或者流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flow chart and block diagram in the accompanying drawings of the present application show the possible architecture, function and operation of the system, method and computer program product according to the various embodiments disclosed in the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in the order of the standards in different figures. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

本领域技术人员可以理解,本申请公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本申请中。特别地,在不脱离本申请精神和教导的情况下,本申请的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,所有这些组合和/或结合均落入本申请公开的范围。Those skilled in the art will appreciate that the features described in the various embodiments and/or claims disclosed in this application may be combined and/or combined in a variety of ways, even if such combinations and/or combinations are not explicitly described in this application. In particular, without departing from the spirit and teachings of this application, the features described in the various embodiments and/or claims of this application may be combined and/or combined in a variety of ways, and all of these combinations and/or combinations fall within the scope disclosed in this application.

本文中应用了具体实施例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思路,并不用于限制本申请。对于本领域的技术人员来说,可以依据本发明的思路、精神和原则,在具体实施方式及应用范围上进行改变,其所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas, and is not used to limit the present application. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of this application.

Claims (11)

1. The method for testing the processor is applied to a test platform of the processor to be tested and is characterized in that the test platform stores CBD test scripts, CBD test cases, VAL test scripts, VAL test cases and configuration files; the method comprises the following steps:
starting the test platform through a startup and shutdown module; the on-off module is connected with the test platform through hardware and is used for starting the test platform when the test platform is not started;
calling the CBD test script through a startup file and executing the CBD test script, and executing the CBD test case based on the configuration file to complete CBD test of the tested processor;
After the CBD test is determined to be completed, calling the VAL test script and executing the VAL test script, and executing the VAL test case based on the CBD test result file to complete the VAL test of the tested processor;
The CBD test result file is a test result file recorded in the CBD test process; if the CBD test result file is the primary test, the CBD test result file is empty;
The executing the CBD test case based on the configuration file completes the CBD test for the tested processor, including:
Determining a voltage point to be tested and a frequency to be tested according to the configuration file and the CBD test result file; executing the CBD test case based on the voltage point to be tested and the frequency to be tested to test the tested processor to obtain a test result, and maintaining the CBD test result file according to the test result;
The executing the VAL test case based on the CBD test result file to complete the VAL test on the tested processor includes:
Determining a voltage point to be tested and a frequency to be tested according to the CBD test result file and the VAL test result file;
Executing the VAL test case based on the voltage point to be tested and the frequency to be tested to test the tested processor to obtain a test result, and maintaining the VAL test result file according to the test result; if the primary pressure measurement is performed, the VAL test result file is empty;
The configuration file is used for designating a test voltage point and an initial test frequency corresponding to the test voltage point; the determining the voltage point to be tested and the frequency to be tested according to the configuration file and the CBD test result file comprises the following steps:
And judging each test voltage point according to the sequence of the test voltage points specified in the configuration file as follows:
If the test voltage point has no test record in the CBD test result file, determining the test voltage point as the voltage point to be tested, wherein the initial test frequency corresponding to the test voltage point is the frequency to be tested;
If the test voltage point has a test record in the CBD test result file, and the test state in the test record is that the test result of the last test is unsuccessful in the test process, determining that the test voltage point is a voltage point to be tested, and reducing the frequency to be tested for the last test by a second preset step length to be used as the frequency to be tested for the current test;
The step of determining the voltage point to be tested and the frequency to be tested according to the CBD test result file and the VAL test result file comprises the following steps:
and judging each voltage point to be tested according to the sequence of the voltage points to be tested recorded in the CBD test result file as follows:
if the fact that the voltage measurement record corresponding to the voltage point to be tested does not exist in the VAL test result file and the test result corresponding to the voltage point to be tested in the CBD test result file is successful is determined, the voltage point to be tested is determined to be the voltage point to be tested, and the frequency of completing the test is the frequency to be tested;
If the fact that the voltage measurement record corresponding to the voltage point to be measured exists in the VAL test result file and the voltage measurement result is unsuccessful is determined, reducing the frequency to be measured, which is unsuccessful in the last time of voltage measurement, by a third step length to serve as the frequency to be measured in the current time of voltage measurement.
2. The method according to claim 1, wherein the method further comprises:
If the test voltage point has a test record in the CBD test result file, and the test state in the test record is that the test result of the last test is successful in the test process, determining that the test voltage point is a voltage point to be tested, and increasing the frequency to be tested for the last test by a first preset step length to be used as the frequency to be tested for the current test;
And if the test voltage point has a test record in the CBD test result file and the test state in the test record is that the test is completed, judging the next test voltage point appointed in the configuration file.
3. The method of claim 2, wherein a frequency test maximum and a frequency test minimum are set for each test voltage point in the configuration file;
After the voltage point to be tested and the frequency to be tested are determined according to the configuration file and the CBD test result file, before the CBD test case is executed to perform the test based on the voltage point to be tested and the frequency to be tested, the method further includes:
comparing the determined frequency to be measured with the frequency test maximum value and the frequency test minimum value:
If the frequency to be tested is determined to be smaller than the frequency test minimum value and the last test result is unsuccessful, the test result is recorded in the CBD test result file as complete failure, and the test state is finished; and using a shutdown command to shutdown;
If the frequency to be tested is not smaller than the frequency test minimum value and not larger than the frequency test maximum value, executing the CBD test case based on the voltage point to be tested and the frequency to be tested to perform a test step;
If the frequency to be tested is determined to be greater than the frequency test maximum value, recording the success of the test result in the CBD test result file, wherein the test state is that the test is completed, the frequency of completing the test is the frequency test maximum value, and shutting down by using a shutdown command.
4. The method of claim 3, wherein prior to the executing the CBD test case to test the processor under test based on the voltage point under test and the frequency under test, the method further comprises: pre-recording test results corresponding to the voltage point to be tested and the frequency to be tested in the CBD test result file as unsuccessful;
When the CBD test case is executed to perform a test based on the voltage point to be tested and the frequency to be tested to obtain a test result, the method further includes:
Restarting through the on-off module if the test result is downtime;
if the test result is failure or overtime, using a shutdown command to shutdown;
If the test result is successful, updating the test result in the CBD test result file from unsuccessful to successful; determining whether the last test state corresponding to the voltage to be tested is successful or not;
If the frequency to be measured is successful, the current frequency to be measured is increased by a first preset step length;
If the test is unsuccessful, the test state is recorded in the CBD test result file to be the test completed, the frequency of completing the test is the maximum frequency of testing success, and the shutdown command is used for shutdown.
5. The method of claim 4, wherein after increasing the frequency to be measured by a first preset step, the method further comprises:
Judging whether the frequency to be tested after the first preset step length is increased is greater than the frequency test maximum value, if so, recording the test state in the CBD test result file as the test is completed, and the frequency after the test is completed is the frequency test maximum value, and powering off by using a shutdown command; otherwise, executing the CBD test case to test the tested processor based on the voltage point to be tested and the frequency to be tested.
6. The method of claim 1, wherein the step of determining the position of the substrate comprises,
If the test result corresponding to the voltage point to be tested in the CBD test result file is determined to be completely failed, recording the press test result corresponding to the voltage point to be pressed in the VAL test result file as failed, and the press test state is that the press test is completed; if the next voltage point to be tested exists, judging the next voltage point to be tested in the CBD test result file; otherwise, determining that the VAL test is completed;
if the fact that the voltage measurement record corresponding to the voltage point to be measured exists in the VAL test result file and the voltage measurement result of the last voltage measurement is successful is determined, the voltage measurement state is recorded in the VAL test result file as the voltage measurement is completed, and the frequency of completing the voltage measurement is the frequency to be measured of the last voltage measurement; if the next voltage point to be tested exists, judging the next voltage point to be tested in the CBD test result file; otherwise, it is determined that the VAL test is completed.
7. The method of claim 6, wherein a frequency test minimum is set for each test voltage point in the configuration file; after the voltage point to be measured and the frequency to be measured are determined according to the CBD test result file and the VAL test result file, before the VAL test case is executed to perform the pressure measurement on the processor to be measured based on the voltage point to be measured and the frequency to be measured, the method further includes:
Determining whether the frequency to be tested is smaller than the frequency test minimum value, if so, recording the test result in the VAL test result record file as complete failure, and determining that the test state of the voltage point to be tested is that the test is completed; otherwise, executing the VAL test case based on the voltage point to be tested and the frequency to be tested to perform the testing step.
8. The method of claim 7, wherein prior to the executing the VAL test case to crimp the processor under test based on the voltage point under test and the frequency under test, the method further comprises: pre-recording the to-be-pressed frequency point and the pressing measurement result corresponding to the to-be-pressed frequency as unsuccessful in the VAL test result file;
When the VAL test case is executed to perform the pressure measurement on the measured processor based on the to-be-measured voltage point and the to-be-measured frequency to obtain a pressure measurement result, the method further includes:
if the pressure measurement result is determined to be downtime, restarting through the on-off module;
if the pressure measurement result is determined to be failure or overtime, using a shutdown command to shutdown;
If the pressure measurement result is determined to be successful, updating the pressure measurement result in the VAL test result file from unsuccessful to successful; recording the pressure measurement state as the completion of the pressure measurement, and recording the frequency passing the pressure measurement as the frequency to be measured for successful pressure measurement; if the next voltage point to be measured exists, a shutdown command is used for shutdown; otherwise, it is determined that the VAL test is completed.
9. An apparatus for testing a processor, applied to a test platform of a processor under test, the apparatus comprising:
The storage unit is used for storing the CBD test script, the CBD test case, the VAL test script, the VAL test case and the configuration file;
The starting unit is used for starting the test platform through the on-off module; the on-off module is connected with the test platform through hardware and is used for starting the test platform when the test platform is not started;
The testing unit is used for calling the CBD testing script through a startup file and executing the CBD testing script, and executing the CBD testing case based on the configuration file to complete CBD testing of the tested processor;
The compression testing unit is used for calling the VAL test script and executing after determining that the CBD test is completed, and executing the VAL test case based on the CBD test result file to complete the VAL test of the tested processor; the CBD test result file is a test result file recorded in the CBD test process; if the CBD test result file is the primary test, the CBD test result file is empty;
The testing unit is specifically configured to determine a voltage point to be tested and a frequency to be tested according to the configuration file and the CBD test result file when the CBD test case is executed based on the configuration file to complete CBD test on the tested processor; executing the CBD test case based on the voltage point to be tested and the frequency to be tested to test the tested processor to obtain a test result, and maintaining the CBD test result file according to the test result; the configuration file is used for designating a test voltage point and an initial test frequency corresponding to the test voltage point; the determining the voltage point to be tested and the frequency to be tested according to the configuration file and the CBD test result file comprises the following steps: and judging each test voltage point according to the sequence of the test voltage points specified in the configuration file as follows: if the test voltage point has no test record in the CBD test result file, determining the test voltage point as the voltage point to be tested, wherein the initial test frequency corresponding to the test voltage point is the frequency to be tested; if the test voltage point has a test record in the CBD test result file, and the test state in the test record is that the test result of the last test is unsuccessful in the test process, determining that the test voltage point is a voltage point to be tested, and reducing the frequency to be tested for the last test by a second preset step length to be used as the frequency to be tested for the current test;
The pressure testing unit is specifically configured to determine a voltage point to be tested and a frequency to be tested according to the CBD test result file and the VAL test result file when the VAL test is performed on the basis of the CBD test result file and the VAL test result file to complete the VAL test on the tested processor; executing the VAL test case based on the voltage point to be tested and the frequency to be tested to test the tested processor to obtain a test result, and maintaining the VAL test result file according to the test result; if the primary pressure measurement is performed, the VAL test result file is empty; the determining the voltage point to be tested and the frequency to be tested according to the CBD test result file and the VAL test result file comprises the following steps: and judging each voltage point to be tested according to the sequence of the voltage points to be tested recorded in the CBD test result file as follows: if the fact that the voltage measurement record corresponding to the voltage point to be tested does not exist in the VAL test result file and the test result corresponding to the voltage point to be tested in the CBD test result file is successful is determined, the voltage point to be tested is determined to be the voltage point to be tested, and the frequency of completing the test is the frequency to be tested; if the fact that the voltage measurement record corresponding to the voltage point to be measured exists in the VAL test result file and the voltage measurement result is unsuccessful is determined, reducing the frequency to be measured, which is unsuccessful in the last time of voltage measurement, by a third step length to serve as the frequency to be measured in the current time of voltage measurement.
10. An electronic device, comprising:
A processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the executable instructions to implement the method for testing a processor according to any of claims 1 to 8.
11. A computer readable storage medium, characterized in that at least one instruction in the computer readable storage medium, when executed by a processor of an electronic device, enables the electronic device to implement the method for testing a processor according to any of claims 1 to 8.
CN202410874033.2A 2024-07-02 2024-07-02 Method, apparatus, electronic device and storage medium for testing processor Active CN118409920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410874033.2A CN118409920B (en) 2024-07-02 2024-07-02 Method, apparatus, electronic device and storage medium for testing processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410874033.2A CN118409920B (en) 2024-07-02 2024-07-02 Method, apparatus, electronic device and storage medium for testing processor

Publications (2)

Publication Number Publication Date
CN118409920A CN118409920A (en) 2024-07-30
CN118409920B true CN118409920B (en) 2024-11-01

Family

ID=92003376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410874033.2A Active CN118409920B (en) 2024-07-02 2024-07-02 Method, apparatus, electronic device and storage medium for testing processor

Country Status (1)

Country Link
CN (1) CN118409920B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107855A (en) * 2023-02-21 2023-05-12 厦门紫光展锐科技有限公司 Test method, system, chip, electronic device and storage medium
CN116107885A (en) * 2023-01-06 2023-05-12 济南浪潮数据技术有限公司 Interface testing method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766240A (en) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 UEFI Shell internal command automatic running detection methods and system
CN109815139A (en) * 2019-01-03 2019-05-28 深圳壹账通智能科技有限公司 Interface testing method, apparatus, computer equipment and storage medium
CN116302722A (en) * 2022-09-08 2023-06-23 中科可控信息产业有限公司 Multi-core processor stability testing method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107885A (en) * 2023-01-06 2023-05-12 济南浪潮数据技术有限公司 Interface testing method, device, equipment and storage medium
CN116107855A (en) * 2023-02-21 2023-05-12 厦门紫光展锐科技有限公司 Test method, system, chip, electronic device and storage medium

Also Published As

Publication number Publication date
CN118409920A (en) 2024-07-30

Similar Documents

Publication Publication Date Title
CN112948157A (en) Server fault positioning method, device and system and computer readable storage medium
CN105209925A (en) Implementing edit and update functionality within a development environment used to compile test plans for automated semiconductor device testing
CN107943643A (en) One kind is based on MOC boards hardware DC test methods and system
CN112948190B (en) A server hardware testing method, system and related device
CN107590042A (en) A kind of server method for testing open/close machine and system based on linux system
WO2017028574A1 (en) Router testing method and testing device
CN108572895B (en) A Stability Test Method for Automatically Checking Software and Hardware Configuration under Linux
CN112100027A (en) Server maintenance method, device, equipment and machine readable storage medium
CN111338698A (en) A kind of method and system for BIOS to accurately guide server to start
CN115033258A (en) A kind of camera SD card firmware automatic upgrade and stress test method
CN118409920B (en) Method, apparatus, electronic device and storage medium for testing processor
CN108089961A (en) One kind is based on MOC boards hardware reboot test methods and system
CN114265733B (en) Automatic testing method and device for abnormal power failure of solid state hard disk
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
CN114385496A (en) Test method, test device, electronic equipment and computer readable storage medium
CN108051728A (en) One kind is based on MOC boards hardware AC test methods and system
CN107451043A (en) A kind of detection method and device of server stability
CN113722212B (en) A CPLD upgrade test method, device, equipment and medium
CN115455431A (en) Automated code security detection and vulnerability repair method, device, terminal and medium
CN115757138A (en) Method and device for determining script abnormal reason, storage medium and electronic equipment
CN112231159B (en) A memory installation position testing method, system, terminal and storage medium
CN114816884B (en) A computer testing method and related components
CN113687998B (en) Control method to eliminate abnormal operation of management engine
CN114546516B (en) Automatic firmware switching method, storage medium and equipment in SSD production test
CN115129517B (en) A BIOS option failure recovery method, device, equipment 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
GR01 Patent grant
GR01 Patent grant