Server testing method and device, storage medium and electronic equipment

By detecting and adjusting the matching degree of the test process of multiple motherboard servers, the problem of test failure when the motherboards share a common power supply is solved, and collaborative testing and efficient testing of multiple motherboards of the server are realized.

CN118656259APending Publication Date: 2024-09-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773197.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-16
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing technology makes it difficult to effectively test servers deployed with multiple motherboards, especially when the motherboards share a power supply, which may cause test failures and the machine to fail to boot, affecting production operations.

Method used

By deploying a controller in the server, extract the test processes of each motherboard, and detect the matching degree between the test processes. If the matching degree is low, the test of the faster motherboard will be suspended, and the test of the slower motherboard will continue until the matching degree is high. to ensure consistency of the testing process.

Benefits of technology

It achieves effective testing of servers deployed with multiple motherboards, avoids test impact, ensures collaborative testing between motherboards, and ensures the consistency and success rate of the test process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656259A
    Figure CN118656259A
Patent Text Reader

Abstract

The embodiment of the invention provides a server testing method and device, a storage medium and electronic device.The method comprises the steps that in the process of conducting target testing on a first mainboard and a second mainboard, a first testing process corresponding to the first mainboard is extracted, and a second testing process corresponding to the second mainboard is extracted; detecting a first matching degree between the first test process and the second test process; when the first matching degree is smaller than a matching degree threshold value, pausing the target test executed on the target mainboard, and continuing to execute the target test on the reference mainboard; extracting an update test process corresponding to the reference mainboard, and detecting a second matching degree between the update test process and a target test process when the test of the target mainboard is suspended; and under the condition that the second matching degree is greater than or equal to the matching degree threshold value, continuing to execute the target test on the first mainboard, and continuing to execute the target test on the second mainboard.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to a server testing method and device, a storage medium, and an electronic device. Background Art

[0002] There may be multiple motherboards (for example, two) deployed in a server. The CPUs of the motherboards of the machine model run independently, and the corresponding operation mode of each motherboard is an independent server architecture. Each motherboard is independently configured with a set of CPU, memory, hard disk, hard disk backplane and other resources. At the same time, some heat dissipation and power supply resource sharing characteristics are considered during the design, so the power module and heat dissipation module can be shared.

[0003] In the related art, dual-motherboard machines cannot be tested by controlling the input of the PSU like single-motherboard models (for example, AC power-off test). For example, when the upper motherboard machine is performing operations such as refreshing the cpld, if the lower motherboard is performing AC operations, it is necessary to control the power slot corresponding to the intelligent PDU to shut down the output. Since the two motherboards share a power supply, such operations will simultaneously interrupt the refresh operations of the cpld of the upper motherboard. Such operations have a great risk of causing the refresh of the FW of the other motherboard to fail. If the failed test item is refreshing the cpld, it is very easy to cause the machine to fail to boot, which will seriously affect production operations. Summary of the invention

[0004] The embodiments of the present application provide a server testing method and device, a storage medium and an electronic device to at least solve the problem in the related art that a server with multiple motherboards cannot be tested.

[0005] According to an embodiment of the present application, a method for testing a server is provided, wherein a first mainboard, a second mainboard, a target power supply and a controller are deployed in the server, wherein the first mainboard is connected to the target power supply, the second mainboard is connected to the target power supply, and the controller is connected to the first mainboard, the second mainboard and the target power supply, respectively. The method is applied to the controller, and the method comprises: in the process of performing a target test on the first mainboard and the second mainboard, extracting a first test process corresponding to the first mainboard, and extracting a second test process corresponding to the second mainboard, wherein the target test is used to test the operating performance of the mainboard of the server when the connection between the mainboard and the power supply of the server is disconnected or when the connection between the mainboard and the power supply of the server is restored; detecting the first test process and the second test process; A first matching degree between test processes; when the first matching degree is less than a matching degree threshold, pausing the target test performed on the target mainboard, and continuing to perform the target test on the reference mainboard, wherein the test process of the target mainboard is faster than the test process of the reference mainboard, the target mainboard is one of the first mainboard and the second mainboard, and the reference mainboard is the second mainboard and the other mainboard of the first mainboard except the target mainboard; extracting the update test process corresponding to the reference mainboard, and detecting a second matching degree between the update test process and the target test process when the target mainboard is suspended; when the second matching degree is greater than or equal to the matching degree threshold, continuing to perform the target test on the first mainboard, and continuing to perform the target test on the second mainboard.

[0006] In an exemplary embodiment, a storage space is also deployed in the server, and the storage space is used to store mainboards and test processes with corresponding relationships. The extraction of the first test process corresponding to the first mainboard and the extraction of the second test process corresponding to the second mainboard include: detecting a first identifier corresponding to the first mainboard and detecting a second identifier corresponding to the second mainboard; extracting the first test process corresponding to the first identifier from the mainboards and test processes with corresponding relationships, and extracting the second test process corresponding to the second identifier from the mainboards and test processes with corresponding relationships.

[0007] In an exemplary embodiment, the detecting of the first degree of match between the first test process and the second test process includes: when the target test includes M rounds of testing, detecting the first degree of match between the first test process and the second test process by executing the following steps, wherein M is a positive integer greater than or equal to 2: extracting the i-th round of the target test corresponding to the first mainboard carried in the first test process, and extracting the j-th round of the target test corresponding to the second mainboard carried in the second test process, wherein i is a positive integer less than or equal to M, and j is a positive integer less than or equal to M; detecting the first degree of match between the first test process and the second test process according to the i-th round and the j-th round.

[0008] In an exemplary embodiment, detecting the first degree of match between the first test process and the second test process based on the i-th round and the j-th round includes: detecting whether the round number i of the target test corresponding to the first mainboard and the round number j of the target test corresponding to the second mainboard are the same, to obtain a first detection result; when the first detection result is used to indicate that the round number i of the target test corresponding to the first mainboard and the round number j of the target test corresponding to the second mainboard are the same, determining the degree of match corresponding to the first detection result as the first degree of match; when the first detection result is used to indicate that the round number i of the target test corresponding to the first mainboard and the round number j of the target test corresponding to the second mainboard are different, determining the degree of match corresponding to the first detection result as the first degree of match.

[0009] In an exemplary embodiment, a first switch device is deployed between the first mainboard and the target power supply, and a second switch device is deployed between the second mainboard and the target power supply, and the suspending of the target test performed on the target mainboard includes: obtaining a first control request, wherein the first control request is used to request to suspend the target test performed on the target mainboard; in response to the first control request, controlling the first switch device to restore and maintain the connection between the target mainboard and the target power supply; and continuing to perform the target test on the reference mainboard includes: obtaining a second control request, wherein the second control request is used to request to continue to perform the target test on the reference mainboard; in response to the second control request, controlling the second switch device to disconnect the connection between the reference mainboard and the target power supply or to test the operating performance of the reference mainboard when restoring the connection between the reference mainboard and the target power supply.

[0010] In an exemplary embodiment, the detecting of the second degree of match between the update test process and the target test process when the target mainboard suspends the test includes: when the target test includes M rounds of testing, detecting the second degree of match between the update test process and the target test process by executing the following steps, wherein M is a positive integer greater than or equal to 2: extracting the rth round of the target test corresponding to the reference mainboard carried in the update test process, and extracting the sth round of the target test corresponding to the target mainboard carried in the target test process, wherein r is a positive integer less than or equal to M, and s is a positive integer less than or equal to M; detecting the second degree of match between the update test process and the target test process according to the rth round and the sth round; and The rth round and the sth round detect the second matching degree between the update test process and the target test process, including: detecting whether the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are the same, and obtaining a second detection result; when the second detection result is used to indicate that the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are the same, the matching degree corresponding to the second detection result is determined as the second matching degree; when the second detection result is used to indicate that the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are different, the matching degree corresponding to the second detection result is determined as the second matching degree.

[0011] In an exemplary embodiment, continuing to perform the target test on the first mainboard and continuing to perform the target test on the second mainboard includes: disconnecting the first mainboard from the target power supply and disconnecting the second mainboard from the target power supply, testing the operating performance of the first mainboard and testing the operating performance of the second mainboard; or, restoring the connection between the first mainboard and the target power supply and restoring the connection between the second mainboard and the target power supply, testing the operating performance of the first mainboard and testing the operating performance of the second mainboard.

[0012] According to another embodiment of the present application, a testing device for a server is provided, wherein a first mainboard, a second mainboard, a target power supply and a controller are deployed in the server, wherein the first mainboard is connected to the target power supply, the second mainboard is connected to the target power supply, the controller is connected to the first mainboard, the second mainboard and the target power supply respectively, and the device is applied to the controller, the device comprising: an extraction module, for extracting a first test process corresponding to the first mainboard and a second test process corresponding to the second mainboard during a target test of the first mainboard and the second mainboard, wherein the target test is used to test the operating performance of the mainboard of the server when the connection between the mainboard and the power supply of the server is disconnected or when the connection between the mainboard and the power supply of the server is restored; a detection module, for detecting whether the first test process and the second test process are in a state of disconnection; and a detection module, for detecting whether the first test process and the second test process are in a state of disconnection. a first processing module, used for suspending the target test executed on the target mainboard when the first matching degree is less than the matching degree threshold, and continuing to execute the target test on the reference mainboard, wherein the test process of the target mainboard is faster than the test process of the reference mainboard, the target mainboard is one of the first mainboard and the second mainboard, and the reference mainboard is the second mainboard and the other mainboard of the first mainboard except the target mainboard; a second processing module, used for extracting the update test process corresponding to the reference mainboard, and detecting a second matching degree between the update test process and the target test process when the target mainboard is suspended; an execution module, used for continuing to execute the target test on the first mainboard when the second matching degree is greater than or equal to the matching degree threshold, and continuing to execute the target test on the second mainboard.

[0013] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0014] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0015] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0016] Through the present application, two mainboards may be deployed in the server, and the two mainboards run independently, but the two mainboards may share a power supply. In this case, the test processes of the two mainboards can be detected, but not limited to, during the testing of the two mainboards. If the matching degree between the test processes of the two mainboards is low, then the test of the mainboard with a faster test process is suspended, and the test of the mainboard with a slower test process continues. When the matching degree between the test processes of the two mainboards is high, the two mainboards are continued to be tested. In this way, the possible impact of the test of one mainboard on the other mainboard is avoided, the consistency of the test processes between the two mainboards is ensured, and the collaborative testing between the two mainboards is achieved. Therefore, the problem of not being able to test a server deployed with multiple mainboards can be solved, and the effect of testing a server deployed with multiple mainboards can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a hardware structure block diagram of a server device of a server testing method according to an embodiment of the present application;

[0018] Figure 2 is a flow chart of a method for testing a server according to an embodiment of the present application;

[0019] Figure 3 is a schematic diagram of an optional server architecture according to an embodiment of the present application;

[0020] Figure 4 is a schematic diagram of an optional storage space according to an embodiment of the present application;

[0021] Figure 5 is a schematic diagram of an optional server testing method according to an embodiment of the present application;

[0022] Figure 6 It is a structural block diagram of a server testing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0025] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 11 is a hardware structure block diagram of a server device of a server testing method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0026] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the test method of the server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0027] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0028] First, the terms involved in the embodiments of the present application are explained as follows:

[0029] NGN: Next Generation Network.

[0030] FRU: Field Replace Unit, field replaceable unit.

[0031] DPU: Data Processing Unit, data processor (smart network card).

[0032] PSU: power supply unit.

[0033] AC:Alternating Current, alternating current.

[0034] DC:Direct Current, direct current.

[0035] AC power off test: Test related to cutting off the AC power supply.

[0036] DC power-off test: Test related to cutting off the DC power supply.

[0037] PDU: Power Distribution Unit, power distribution unit.

[0038] In this embodiment, a method for testing a server is provided. A first mainboard, a second mainboard, a target power supply and a controller are deployed in the server. The first mainboard is connected to the target power supply, the second mainboard is connected to the target power supply, and the controller is connected to the first mainboard, the second mainboard and the target power supply respectively. The method is applied to the controller. Figure 2 is a flow chart of a method for testing a server according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0039] Step S202, in the process of performing target testing on the first mainboard and the second mainboard, extracting a first test process corresponding to the first mainboard, and extracting a second test process corresponding to the second mainboard, wherein the target test is used to test the operating performance of the mainboard of the server when the connection between the mainboard and the power supply of the server is disconnected or when the connection between the mainboard and the power supply of the server is restored;

[0040] Step S204, detecting a first matching degree between the first test process and the second test process;

[0041] Step S206, when the first matching degree is less than the matching degree threshold, suspending the target test performed on the target motherboard, and continuing to perform the target test on the reference motherboard, wherein the test process of the target motherboard is faster than the test process of the reference motherboard, the target motherboard is one of the first motherboard and the second motherboard, and the reference motherboard is another motherboard of the second motherboard and the first motherboard except the target motherboard;

[0042] Step S208, extracting the update test process corresponding to the reference motherboard, and detecting a second matching degree between the update test process and the target test process when the target motherboard is suspended from testing;

[0043] Step S210: When the second matching degree is greater than or equal to the matching degree threshold, continue to perform the target test on the first mainboard, and continue to perform the target test on the second mainboard.

[0044] Through the above steps, two mainboards may be deployed in the server, and the two mainboards run independently, but the two mainboards may share a power supply. In this case, the test processes of the two mainboards can be detected, but not limited to, during the test of the two mainboards. If the matching degree between the test processes of the two mainboards is low, then the test of the mainboard with a faster test process is suspended, and the test of the mainboard with a slower test process continues. When the matching degree between the test processes of the two mainboards is high, the two mainboards are continued to be tested. In this way, the possible impact of the test of one mainboard on the other mainboard is avoided, the consistency of the test processes between the two mainboards is ensured, and the collaborative test between the two mainboards is achieved. Therefore, the problem of not being able to test a server deployed with multiple mainboards can be solved, and the effect of testing a server deployed with multiple mainboards can be achieved.

[0045] In the technical solution provided in the above step S202, it is possible but not limited to start target testing of the first mainboard and the second mainboard at the same time, and there may also be differences between the first test process and the second test process. The first test process can be but not limited to being used to indicate the current test stage of the target test on the first mainboard, and the second test process can be but not limited to being used to indicate the current test stage of the target test on the second mainboard.

[0046] Optionally, in this embodiment, the server may be, but is not limited to, equipped with a first mainboard and a second mainboard, and the first mainboard and the second mainboard may, but is not limited to, share a power supply. Figure 3 is a schematic diagram of an optional server architecture according to an embodiment of the present application, such as Figure 3As shown, the server is equipped with an upper mainboard and a lower mainboard, both of which are connected to the power board, both of which are connected to the network card DPU, and the power board is connected to PSU0 and PSU1 respectively, and both PSU0 and PSU1 are connected to PSU. It can be understood that the output of PSU is used as the input of PSU0 and PSU1, the output of PSU0 and PSU1 is used as the input of the power board, and the output of the power board is used as the power input of the upper mainboard and the lower mainboard.

[0047] Optionally, in this embodiment, the target test may be but is not limited to being used to test the operating performance of the server's mainboard when the connection between the server's mainboard and the power supply is disconnected or when the connection between the server's mainboard and the power supply is restored. As an optional example, whether the server's mainboard can shut down normally after a power outage, or whether the server's mainboard can operate normally when the power is first cut off and then restarted, etc. For example, the target test may be but is not limited to including AC testing or DC testing, etc.

[0048] In an exemplary embodiment, a storage space is also deployed in the server, and the storage space is used to store mainboards and test processes with corresponding relationships. The first test process corresponding to the first mainboard and the second test process corresponding to the second mainboard can be extracted, but is not limited to, in the following manner: detecting a first identifier corresponding to the first mainboard, and detecting a second identifier corresponding to the second mainboard; extracting the first test process corresponding to the first identifier from the mainboards and test processes with corresponding relationships, and extracting the second test process corresponding to the second identifier from the mainboards and test processes with corresponding relationships.

[0049] Optionally, in this embodiment, the identification of the server's mainboard may include but is not limited to at least one of letters, numbers and character strings. As an optional example, the identification of the server's mainboard may include but is not limited to the serial number, name, code, etc. of the server's mainboard. For example, the identification of the first mainboard includes sn-0, and the identification of the second mainboard includes sn-1.

[0050] Optionally, in this embodiment, the motherboards and test processes with corresponding relationships stored in the storage space may be updated accordingly as the motherboard test progresses. It can be immediately understood that the motherboards and test processes with corresponding relationships stored in the storage space may change.

[0051] Figure 4 is a schematic diagram of an optional storage space according to an embodiment of the present application, such as Figure 4As shown, a storage space is also deployed in the server, and the storage space is used to store motherboards and test processes with corresponding relationships (for example, test process 1 corresponding to identifier 1, test process 2 corresponding to identifier 2, and test process 3 corresponding to identifier 3). In this case, it is possible but not limited to detecting the first identifier (for example, identifier 1) corresponding to the first motherboard (for example, motherboard 1), and detecting the second identifier (for example, identifier 2) corresponding to the second motherboard (for example, motherboard 2).

[0052] In this way, according to the actual situation of the test of the server's mainboard, the test process corresponding to the mainboard stored in the storage space of the server is updated in real time, thereby improving the real-time performance of the mainboard and test process with corresponding relationship stored in the server.

[0053] In the technical solution provided in the above step S204, the first test process may not match the second test process. Since the first mainboard and the second mainboard share a target power supply, the mismatch between the first test process and the second test process may cause the test to fail. In such a case, it is possible but not limited to detecting the degree of match between the first test process and the second test process.

[0054] In an exemplary embodiment, when the target test includes M rounds of testing, the first degree of match between the first test process and the second test process can be detected by, but is not limited to, executing the following steps, wherein M is a positive integer greater than or equal to 2: extracting the i-th round of the target test corresponding to the first mainboard carried in the first test process, and extracting the j-th round of the target test corresponding to the second mainboard carried in the second test process, wherein i is a positive integer less than or equal to M, and j is a positive integer less than or equal to M; detecting the first degree of match between the first test process and the second test process based on the i-th round and the j-th round.

[0055] Optionally, in this embodiment, M rounds of testing can be performed on both the first mainboard and the second mainboard, but is not limited to. When a certain round of target testing is started on the first mainboard and the second mainboard at the same time, the first mainboard may complete the current round of target testing first, and then enter the next round of target testing; or the second mainboard may complete the current round of target testing first, and then enter the next round of target testing; or the first mainboard and the second mainboard may complete the current round of target testing at the same time, and then enter the next round of target testing at the same time. In such a case, the first matching degree between the first test process and the second test process can be detected based on the round number i of the target test currently being performed by the first mainboard and the round number j of the target test currently being performed by the first mainboard.

[0056] In an exemplary embodiment, the first matching degree between the first test process and the second test process can be detected according to the i-th round and the j-th round in the following manner, but not limited to: detecting whether the round number i of the target test corresponding to the first mainboard and the round number j of the target test corresponding to the second mainboard are the same, and obtaining a first detection result; when the first detection result is used to indicate that the round number i of the target test corresponding to the first mainboard and the round number j of the target test corresponding to the second mainboard are the same, determining the matching degree corresponding to the first detection result as the first matching degree; when the first detection result is used to indicate that the round number i of the target test corresponding to the first mainboard and the round number j of the target test corresponding to the second mainboard are different, determining the matching degree corresponding to the first detection result as the first matching degree.

[0057] Optionally, in this embodiment, different comparison results have corresponding matching degrees, and the matching degrees corresponding to each comparison result are different. When the first detection result is used to indicate that the number of rounds i of the target test corresponding to the first mainboard and the number of rounds j of the target test corresponding to the second mainboard are the same, it can be indicated that the first mainboard and the second mainboard have successfully completed the same number of rounds of target tests. In this case, the matching degree corresponding to the first detection result is determined as the first matching degree.

[0058] Optionally, in this embodiment, when the first detection result is used to indicate that the number i of target test rounds corresponding to the first mainboard and the number j of target test rounds corresponding to the second mainboard are different, i may be greater than j, or i may be less than j, and the difference between i and j may be, but is not limited to, greater than or equal to 1, and less than or equal to M-1. In such a case, it can be indicated that the j-th round of target test performed on the first mainboard may have failed (for example, the test is abnormal), or the j-th round of target test performed on the first mainboard has not been completed (for example, the j-th round of target test on the first mainboard is being performed), etc. In such a case, the matching degree corresponding to the first detection result is determined as the first matching degree.

[0059] It should be noted that when the first detection result is used to indicate that the number of rounds i of the target test corresponding to the first mainboard and the number of rounds j of the target test corresponding to the second mainboard are different, the corresponding matching degree is lower than the matching degree corresponding to the case where the first detection result is used to indicate that the number of rounds i of the target test corresponding to the first mainboard and the number of rounds j of the target test corresponding to the second mainboard are the same.

[0060] In this way, by real-time detecting the number of rounds of target tests currently being performed by the first mainboard and the second mainboard and comparing the matching degree between the test processes of the first mainboard and the second mainboard, the real-time performance of detecting the matching degree between the test processes of the first mainboard and the second mainboard is improved.

[0061] In the technical solution provided in the above step S206, the target motherboard is the motherboard with a faster test process between the first motherboard and the second motherboard, and the reference motherboard is the motherboard with a slower test process between the first motherboard and the second motherboard. The target motherboard may be the first motherboard or the second motherboard, and the reference motherboard may be the first motherboard or the second motherboard. For example, when the target motherboard is the first motherboard, the reference motherboard may be but is not limited to the second motherboard, and when the target motherboard is the second motherboard, the reference motherboard may be but is not limited to the first motherboard.

[0062] In an exemplary embodiment, a first switch device is disposed between the first mainboard and the target power supply, and a second switch device is disposed between the second mainboard and the target power supply. The target test performed on the target mainboard can be suspended in the following manner, but not limited to: obtaining a first control request, wherein the first control request is used to request to suspend the target test performed on the target mainboard; in response to the first control request, controlling the first switch device to restore and maintain the connection between the target mainboard and the target power supply; the target test can be continued in the following manner, but not limited to, including: obtaining a second control request, wherein the second control request is used to request to continue to perform the target test on the reference mainboard; in response to the second control request, controlling the second switch device to disconnect the connection between the reference mainboard and the target power supply or to test the operating performance of the reference mainboard when the connection between the reference mainboard and the target power supply is restored.

[0063] Optionally, in this embodiment, the first switch device may be, but is not limited to, used to disconnect or restore the connection between the first mainboard and the target power supply, and the second switch device may be, but is not limited to, used to disconnect or restore the connection between the second mainboard and the target power supply.

[0064] Optionally, in this embodiment, it is possible but not limited to controlling the second switching device to disconnect the connection between the reference mainboard and the target power supply while controlling the first switching device to restore and maintain the connection between the first mainboard and the target power supply, or testing the operating performance of the reference mainboard while restoring the connection between the reference mainboard and the target power supply.

[0065] In the technical solution provided in the above step S208, the update test process can be but is not limited to being faster than the test process corresponding to the reference motherboard when the target motherboard suspends testing, the update test process may be slower than the target test process, or the update test process may be consistent with the target test process.

[0066] Optionally, in this embodiment, the update test process corresponding to the reference mainboard may be extracted in the following manner, but is not limited to: extracting the update test process corresponding to the identifier of the reference mainboard from mainboards and test processes having a corresponding relationship.

[0067] In an exemplary embodiment, the second degree of match between the update test process and the target test process when the target mainboard is suspended from testing may be detected in the following manner, but is not limited to: when the target test includes M rounds of testing, the second degree of match between the update test process and the target test process is detected by executing the following steps, wherein M is a positive integer greater than or equal to 2: extracting the rth round of the target test corresponding to the reference mainboard carried in the update test process, and extracting the sth round of the target test corresponding to the target mainboard carried in the target test process, wherein r is a positive integer less than or equal to M, and s is a positive integer less than or equal to M; detecting the second degree of match between the update test process and the target test process based on the rth round and the sth round; may be but is not limited to The second matching degree between the update test process and the target test process is detected according to the rth round and the sth round in the following manner, including: detecting whether the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are the same to obtain a second detection result; when the second detection result is used to indicate that the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are the same, determining the matching degree corresponding to the second detection result as the second matching degree; when the second detection result is used to indicate that the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are different, determining the matching degree corresponding to the second detection result as the second matching degree.

[0068] Optionally, in this embodiment, when the second detection result is used to indicate that the number r of target test rounds corresponding to the reference motherboard is different from the number s of target test rounds corresponding to the target motherboard, r may be greater than s, or r may be less than s, and the difference between r and s may be, but is not limited to, greater than or equal to 1, and less than or equal to M-1. In this case, it can be indicated that the r-th round of target testing on the reference motherboard may have failed (for example, the test is abnormal), or the r-th round of target testing on the reference motherboard has not been completed (for example, the r-th round of target testing on the reference motherboard is being performed), etc. In this case, the matching degree corresponding to the second detection result is determined as the second matching degree.

[0069] In the technical solution provided in the above step S208, when the second matching degree is less than the matching degree threshold, the target test on the target motherboard is continuously suspended, and the target test on the reference motherboard is continuously executed.

[0070] Optionally, in this embodiment, when the second matching degree is greater than or equal to the matching degree threshold, it can be indicated that the test processes of the first mainboard and the second mainboard are matched. In this case, it is possible but not limited to continue to perform target tests on the first mainboard and the second mainboard, and in this way, collaborative testing of the first mainboard and the second mainboard is achieved, thereby improving the efficiency of the test.

[0071] As an optional example, the method further includes: a first mainboard, a second mainboard, a third mainboard, a target power supply and a controller are deployed in the server, the first mainboard is connected to the target power supply, the second mainboard is connected to the target power supply, the third mainboard is connected to the target power supply, and the controller is connected to the first mainboard, the second mainboard, the third mainboard and the target power supply respectively, and the method is applied to the controller, and the method includes: in the process of performing target testing on the first mainboard, the second mainboard and the third mainboard, extracting a first test process corresponding to the first mainboard, extracting a second test process corresponding to the second mainboard, and extracting a third test process corresponding to the third mainboard, wherein the target test is used to test the operating performance of the mainboard of the server when the connection between the mainboard and the power supply of the server is disconnected or when the connection between the mainboard and the power supply of the server is restored; detecting a first matching degree between the first test process and the second test process, and detecting a third matching degree between the first test process and the third test process, And detect the fourth matching degree between the second test process and the third test process; when there is a matching degree less than the matching degree threshold among the first matching degree, the third matching degree and the fourth matching degree, suspend the target test performed on the first candidate mainboard, and continue to perform the target test on the second candidate mainboard, wherein the test process of the first candidate mainboard is faster than the test process of the second candidate mainboard, the first candidate mainboard is one of the first mainboard, the second mainboard and the third mainboard, and the second candidate mainboard is the mainboard other than the first candidate mainboard among the first mainboard, the second mainboard and the third mainboard; extract the candidate update test process corresponding to the second candidate mainboard, and detect the fifth matching degree between the candidate update test process and the candidate test process when the first candidate mainboard is suspended; when the fifth matching degree is greater than or equal to the matching degree threshold, continue to perform the target test on the first mainboard, continue to perform the target test on the second mainboard, and continue to perform the target test on the third mainboard.

[0072] In this way, when multiple mainboards sharing a power supply are deployed in a server, collaborative testing among the multiple mainboards is achieved by detecting the matching degree between the test processes of the various mainboards.

[0073] In an exemplary embodiment, the target test can be continued on the first mainboard and the target test can be continued on the second mainboard in the following manners, but are not limited to: disconnecting the first mainboard from the target power supply and disconnecting the second mainboard from the target power supply, testing the operating performance of the first mainboard and testing the operating performance of the second mainboard; or, restoring the connection between the first mainboard and the target power supply and restoring the connection between the second mainboard and the target power supply, testing the operating performance of the first mainboard and testing the operating performance of the second mainboard.

[0074] Optionally, in this embodiment, when a first mainboard, a second mainboard, and a third mainboard are deployed in the server, the method further includes: disconnecting the connection between the first mainboard and the target power supply, disconnecting the connection between the second mainboard and the target power supply, and disconnecting the connection between the third mainboard and the target power supply, testing the operating performance of the first mainboard, testing the operating performance of the second mainboard, and testing the operating performance of the third mainboard; or, restoring the connection between the first mainboard and the target power supply, restoring the connection between the second mainboard and the target power supply, and restoring the connection between the third mainboard and the target power supply, testing the operating performance of the first mainboard, testing the operating performance of the second mainboard, and testing the operating performance of the third mainboard.

[0075] In this way, it is ensured that the stages of target testing of multiple motherboards deployed in the server are consistent, avoiding the impact of target testing of one motherboard deployed in the server on other motherboards in the server, and improving the success rate of target testing of the server motherboard.

[0076] In order to better understand the testing process of the server in the embodiment of the present application, the testing process of the server in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.

[0077] Figure 5 is a schematic diagram of an optional server testing method according to an embodiment of the present application, such as Figure 5As shown, a server loaded with a motherboard is often called a head, so a machine with dual motherboards includes two heads. The systems run by the two heads of the dual motherboard are completely independent systems and cannot communicate directly with each other. The smart network card draws power from the head and is interconnected with the head through high-speed and low-speed lines, but the smart network card and the head are independently running operating systems. The head can identify the hardware status of the smart network card. If the startup speed of the head is faster than the startup speed of the smart network card, there will be an error message in the head indicating abnormal recognition of the smart network card. The factory's diagnostic network environment is a local area network environment, and each test machine is connected to the local area network environment. Through this network environment, simple information exchange between heads and between heads and smart network cards can be achieved. The test method of the server in the embodiment of the present application can be implemented, but is not limited to, by the following steps:

[0078] 1. After the factory production and assembly are completed, the machine is powered on and put online normally; the machine is connected to the factory network system, and the two machine heads and DPU are connected to the factory network system respectively and enter their respective diagnostic systems.

[0079] 2. During the diagnosis process, the BMC (baseboard management controller) of the two heads automatically identifies the motherboard according to the location information of the connected PSU power board, and cooperates with the production MES system to automatically encode the SN (Serial Number) (equivalent to the motherboard identification) of the two motherboards;

[0080] 3. In the pre-test stage, the diagnostic software of the two mainboards perform automatic diagnostic operations separately without affecting each other. The specific operations are as follows:

[0081] 1) FRU and FW (Firmware) (BMC, BIOS (Basic Input Output System), CPLD (Complex Programmable Logic Device), FPGA (Field-Programmable Gate Array), EEPROM, etc.) automatic refresh.

[0082] 2) Hardware configuration check and machine health check automatic check.

[0083] 3) Automatic testing of each module’s functional test.

[0084] 4. Perform AC testing, which may include but is not limited to the following:

[0085] 1) Considering the independent operation relationship between the smart network card and the head, the startup scheme is designed as follows:

[0086] i. The power-on policy of the machine head is fixed as: Power Restore Policy: always-off;

[0087] ii. The power-on policy of the smart NIC is fixed as: Power Restore Policy: always-on;

[0088] iii. Define the lower mainboard (one of the first and second mainboards) to fix and control the corresponding power slot of the PDU to operate, thereby realizing the on and off of the AC, and the upper mainboard (the other of the first and second mainboards) only waits for the AC operation.

[0089] 2) Between the two heads, develop the following protocol:

[0090] a) If the motherboard test phase is not the AC phase, the test will be conducted according to normal rules;

[0091] b) After the upper and lower motherboards have completed their respective AC test phases, they will query the status of the other motherboard's test phase (equivalent to the test process). Both motherboards are assembled with random materials without any difference. At the same time, they are connected to a local area network and cannot recognize each other. Here, the parameters of the Product SerialNumber area in fru of the lower motherboard are flashed as sn-0, and the parameters of the Product SerialNumber area in fru of the upper motherboard are flashed as sn-1, and registered with the server.

[0092] During the test, the two motherboards continuously refresh the test status on the server side and perform intensive status queries in the AC phase. By using the established Product SerialNumber parameter (equivalent to the motherboard's ID, for example, sn-0, sn-1), the test phase and status of the other motherboard can be accurately grasped.

[0093] Because the production network is a stable and high-load system, the storage and query pressure of the server needs to be paid special attention. The information return situation is recorded in real time during the query process. When the query delay reaches 5ms, the access frequency of the server will be reduced to 1 / 3 (or 1 / 4, or 1 / 5, etc., this application does not impose restrictions on this) of the original frequency. When it is 10ms, it will be reduced to 1 / 9 (or 1 / 8, or 1 / 7, etc., this application does not impose restrictions on this). According to the load situation, the access pressure is dynamically adjusted to maximize the platform utility.

[0094] c) If the lower main board and the upper main board are in the same AC round of the AC phase:

[0095] iii. The upper motherboard remains in a waiting state, waiting for the lower motherboard to perform AC operation;

[0096] iv. The lower motherboard will poll the test status of the upper motherboard in real time. After the upper motherboard passes the test, it will control the PDU to perform AC operation, and the two motherboards will be powered off and restarted at the same time;

[0097] d) If the test phase of this motherboard (equivalent to the target motherboard) is the AC phase, and the test phase and AC round are ahead of another motherboard (equivalent to the reference motherboard), then after the test of this motherboard is completed, it will actively enter the waiting and status polling state, waiting for the test phase and AC round of the other motherboard to be consistent with the test phase of this motherboard;

[0098] e) If the test phase of this motherboard is the AC phase, and the test phase or AC round lags behind another motherboard, then after the test of this motherboard is completed, AC operation of some modules of this motherboard will be actively performed, and normal testing will continue subsequently. During this operation, a target file will be written into the system of the smart network card to identify the active AC operation of a single node; AC operation of some modules can realize AC power-off operation of most components of this motherboard.

[0099] f) If the motherboard test phase is not the AC phase, the test will be carried out according to normal rules.

[0100] g) In the case of step c) above, the SmartNIC will be powered off at the same time as the PDU is powered off.

[0101] After powering on again (here it is limited to powering on again, not DC or rebooting the machine, so as to avoid the situation where the machine head is frequently forced to start up after it is automatically shut down due to machine abnormalities during stress testing), the smart network card will automatically start up because the power-on policy of the smart network card is always-on (the machine head is always-off, and the machine head will not automatically start up after powering on). After the smart network card is turned on, the diagnosis solution will be automatically run. A monitoring service is deployed in the smart network card. The monitoring service is started in the background service of the smart network card (the monitoring service is limited to providing monitoring and startup operations within 5 minutes after startup, so as to avoid the situation where the machine head is frequently forced to start up after it is automatically shut down due to machine abnormalities during stress testing). The monitoring service will actively start up the machine head according to the current power-on and power-off status of the machine head during certain specific test processes of the machine head. Here, background monitoring is not performed at all times in all processes. It is necessary to ensure that the shutdown state of the machine caused by machine or environmental abnormalities can remain in the shutdown state, so as to ensure accurate identification of abnormal machines.

[0102] h) If the upper node (equivalent to one of the first and second main boards) identifies that the lower node (equivalent to the other of the first and second main boards) is in an error or maintenance state, the upper node actively locates the test item to this test item to prevent the upper node from automatically entering the next test after the whole machine is restarted.

[0103] 3) In the case of step e) above, the smart network card will not be powered off, but the background startup monitoring program of the smart network card (there is a status mark corresponding to step e) here, which can actively identify the active AC operation of a single node, thereby actively starting the monitoring service) will monitor the current status of the head and actively start the power-on action according to the current shutdown status of the head.

[0104] 4) During the test, the two main boards will actively handle node abnormal status according to the defined logic. When any node is abnormal, the other node will synchronously and continuously query the test status within an appropriate period of time, and actively stop the test when the abnormality is found, which can ensure the unified test process of the two main boards, and the subsequent abnormal processing and process management can be controlled.

[0105] It should be noted that if the machine inevitably needs to retest some test items due to some problems during the test process, this solution can ensure that the first round of AC testing can be carried out normally and in accordance with regulations. At the same time, it can ensure that most modules of the machine can achieve AC testing again as much as possible during the special positioning operation after the first round of AC testing.

[0106] Through the embodiments of the present application, when a dual-mainboard structure machine needs to locate test items due to certain requirements, the impact on the mainboard caused by sharing a common power supply between two mainboards is avoided, and AC testing of dual-mainboard structure machines in batches is achieved in accordance with specifications.

[0107] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0108] In this embodiment, a testing device for a server is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0109] Figure 6 is a structural block diagram of a server testing device according to an embodiment of the present application, such as Figure 6As shown, a first mainboard, a second mainboard, a target power supply and a controller are deployed in the server, the first mainboard is connected to the target power supply, the second mainboard is connected to the target power supply, the controller is connected to the first mainboard, the second mainboard and the target power supply respectively, the device is applied to the controller, and the device includes:

[0110] An extraction module 602 is used to extract a first test process corresponding to the first mainboard and a second test process corresponding to the second mainboard during a target test on the first mainboard and the second mainboard, wherein the target test is used to test the operating performance of the mainboard of the server when the connection between the mainboard and the power supply of the server is disconnected or when the connection between the mainboard and the power supply of the server is restored;

[0111] A detection module 604, configured to detect a first matching degree between the first test process and the second test process;

[0112] A first processing module 606 is configured to, when the first matching degree is less than a matching degree threshold, suspend the target test performed on a target motherboard, and continue to perform the target test on a reference motherboard, wherein the test process of the target motherboard is faster than the test process of the reference motherboard, the target motherboard is one of the first motherboard and the second motherboard, and the reference motherboard is another motherboard of the second motherboard and the first motherboard except the target motherboard;

[0113] A second processing module 608 is used to extract the update test process corresponding to the reference motherboard, and detect a second matching degree between the update test process and the target test process when the target motherboard is suspended from testing;

[0114] The execution module 610 is used to continue to execute the target test on the first mainboard and continue to execute the target test on the second mainboard when the second matching degree is greater than or equal to the matching degree threshold.

[0115] Through the above-mentioned device, two mainboards may be deployed in the server, and the two mainboards run independently, but the two mainboards may share a power supply. In this case, the test processes of the two mainboards can be detected, but not limited to, during the test of the two mainboards. If the matching degree between the test processes of the two mainboards is low, then the test of the mainboard with a faster test process is suspended, and the test of the mainboard with a slower test process continues. When the matching degree between the test processes of the two mainboards is high, the two mainboards are continued to be tested. In this way, the possible impact of the test of one mainboard on the other mainboard is avoided, the consistency of the test processes between the two mainboards is ensured, and the collaborative test between the two mainboards is realized. Therefore, the problem of not being able to test a server deployed with multiple mainboards can be solved, and the effect of testing a server deployed with multiple mainboards can be achieved.

[0116] In an exemplary embodiment, a storage space is further deployed in the server, and the storage space is used to store the mainboards and the test processes having a corresponding relationship. The extraction module includes:

[0117] a detection unit, configured to detect a first identifier corresponding to the first mainboard, and detect a second identifier corresponding to the second mainboard;

[0118] An extraction unit is used to extract the first test process corresponding to the first identifier from the main board and test process with corresponding relationship, and to extract the second test process corresponding to the second identifier from the main board and test process with corresponding relationship.

[0119] In an exemplary embodiment, the detection module is used to detect the first matching degree between the first test process and the second test process by performing the following steps, where M is a positive integer greater than or equal to 2:

[0120] Extract the i-th round of the target test corresponding to the first mainboard carried in the first test process, and extract the j-th round of the target test corresponding to the second mainboard carried in the second test process, where i is a positive integer less than or equal to M, and j is a positive integer less than or equal to M;

[0121] According to the i-th round and the j-th round, the first matching degree between the first test process and the second test process is detected.

[0122] In an exemplary embodiment, the detection module is further configured to:

[0123] Detect whether the round number i of the target test corresponding to the first mainboard is the same as the round number j of the target test corresponding to the second mainboard, and obtain a first detection result;

[0124] When the first detection result is used to indicate that the number i of rounds of the target test corresponding to the first mainboard and the number j of rounds of the target test corresponding to the second mainboard are the same, the matching degree corresponding to the first detection result is determined as the first matching degree; when the first detection result is used to indicate that the number i of rounds of the target test corresponding to the first mainboard and the number j of rounds of the target test corresponding to the second mainboard are different, the matching degree corresponding to the first detection result is determined as the first matching degree.

[0125] In an exemplary embodiment, a first switch device is disposed between the first mainboard and the target power supply, and a second switch device is disposed between the second mainboard and the target power supply. The first processing module includes: a first acquisition unit, configured to acquire a first control request, wherein the first control request is used to request to suspend the target test performed on the target mainboard; a first control unit, configured to respond to the first control request and control the first switch device to restore and maintain the connection between the target mainboard and the target power supply;

[0126] The first processing module includes: a second acquisition unit, used to acquire a second control request, wherein the second control request is used to request to continue to perform the target test on the reference mainboard; a second control unit, used to respond to the second control request, control the second switching device to disconnect the connection between the reference mainboard and the target power supply or test the operating performance of the reference mainboard when restoring the connection between the reference mainboard and the target power supply.

[0127] In an exemplary embodiment, the second processing module is used to detect the second matching degree between the update test process and the target test process by executing the following steps when the target test includes M rounds of testing, wherein M is a positive integer greater than or equal to 2: extracting the rth round of the target test corresponding to the reference motherboard carried in the update test process, and extracting the sth round of the target test corresponding to the target motherboard carried in the target test process, wherein r is a positive integer less than or equal to M, and s is a positive integer less than or equal to M; detecting the second matching degree between the update test process and the target test process according to the rth round and the sth round;

[0128] The second processing module is also used to: detect whether the number r of target test rounds corresponding to the reference motherboard and the number s of target test rounds corresponding to the target motherboard are the same, to obtain a second detection result; when the second detection result is used to indicate that the number r of target test rounds corresponding to the reference motherboard and the number s of target test rounds corresponding to the target motherboard are the same, the matching degree corresponding to the second detection result is determined as the second matching degree; when the second detection result is used to indicate that the number r of target test rounds corresponding to the reference motherboard and the number s of target test rounds corresponding to the target motherboard are different, the matching degree corresponding to the second detection result is determined as the second matching degree.

[0129] In an exemplary embodiment, the execution module includes:

[0130] a first testing unit, configured to disconnect the first mainboard from the target power supply, disconnect the second mainboard from the target power supply, test the operating performance of the first mainboard, and test the operating performance of the second mainboard; or

[0131] The second test unit is used to restore the connection between the first mainboard and the target power supply, and restore the connection between the second mainboard and the target power supply, test the operating performance of the first mainboard, and test the operating performance of the second mainboard.

[0132] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0133] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0134] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0135] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0136] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0137] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0138] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0139] An embodiment of the present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0140] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0141] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0142] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A server testing method, It is characterized in that A first mainboard, a second mainboard, a target power supply and a controller are deployed in the server, the first mainboard is connected to the target power supply, the second mainboard is connected to the target power supply, the controller is connected to the first mainboard, the second mainboard and the target power supply respectively, the method is applied to the controller, and the method includes: In the process of performing target testing on the first mainboard and the second mainboard, extracting a first test process corresponding to the first mainboard, and extracting a second test process corresponding to the second mainboard, wherein the target test is used to test the operating performance of the mainboard of the server when the connection between the mainboard and the power supply of the server is disconnected or when the connection between the mainboard and the power supply of the server is restored; detecting a first matching degree between the first test process and the second test process; When the first matching degree is less than a matching degree threshold, suspending the target test performed on the target mainboard, and continuing to perform the target test on the reference mainboard, wherein the test process of the target mainboard is faster than the test process of the reference mainboard, the target mainboard is one of the first mainboard and the second mainboard, and the reference mainboard is another mainboard of the second mainboard and the first mainboard except the target mainboard; Extracting the update test process corresponding to the reference mainboard, and detecting a second matching degree between the update test process and the target test process when the target mainboard is suspended from testing; When the second matching degree is greater than or equal to the matching degree threshold, the target test continues to be performed on the first mainboard, and the target test continues to be performed on the second mainboard.

2. The method according to claim 1, It is characterized in that The server is further provided with a storage space, the storage space being used to store motherboards and test processes having a corresponding relationship, wherein extracting the first test process corresponding to the first motherboard and extracting the second test process corresponding to the second motherboard includes: Detecting a first identifier corresponding to the first mainboard, and detecting a second identifier corresponding to the second mainboard; The first test process corresponding to the first identifier is extracted from the main board and the test process having the corresponding relationship, and the second test process corresponding to the second identifier is extracted from the main board and the test process having the corresponding relationship.

3. The method according to claim 1, It is characterized in that The detecting the first matching degree between the first test process and the second test process comprises: when the target test comprises M rounds of testing, detecting the first matching degree between the first test process and the second test process by executing the following steps, wherein M is a positive integer greater than or equal to 2: Extract the i-th round of the target test corresponding to the first mainboard carried in the first test process, and extract the j-th round of the target test corresponding to the second mainboard carried in the second test process, where i is a positive integer less than or equal to M, and j is a positive integer less than or equal to M; According to the i-th round and the j-th round, the first matching degree between the first test process and the second test process is detected.

4. The method according to claim 3, It is characterized in that The detecting the first matching degree between the first test process and the second test process according to the i-th round and the j-th round includes: Detect whether the round number i of the target test corresponding to the first mainboard is the same as the round number j of the target test corresponding to the second mainboard, and obtain a first detection result; When the first detection result is used to indicate that the number i of rounds of the target test corresponding to the first mainboard and the number j of rounds of the target test corresponding to the second mainboard are the same, the matching degree corresponding to the first detection result is determined as the first matching degree; when the first detection result is used to indicate that the number i of rounds of the target test corresponding to the first mainboard and the number j of rounds of the target test corresponding to the second mainboard are different, the matching degree corresponding to the first detection result is determined as the first matching degree.

5. The method according to claim 1, It is characterized in that A first switch device is disposed between the first mainboard and the target power supply, and a second switch device is disposed between the second mainboard and the target power supply. The suspending the target test executed on the target mainboard comprises: obtaining a first control request, wherein the first control request is used to request to suspend the target test executed on the target mainboard; in response to the first control request, controlling the first switch device to restore and maintain the connection between the target mainboard and the target power supply; The continuing to execute the target test on the reference mainboard includes: obtaining a second control request, wherein the second control request is used to request to continue to execute the target test on the reference mainboard; in response to the second control request, controlling the second switching device to disconnect the connection between the reference mainboard and the target power supply or to test the operating performance of the reference mainboard when restoring the connection between the reference mainboard and the target power supply.

6. The method according to claim 1, It is characterized in that The detecting the second degree of match between the update test process and the target test process when the target mainboard suspends the test comprises: when the target test includes M rounds of testing, detecting the second degree of match between the update test process and the target test process by executing the following steps, wherein M is a positive integer greater than or equal to 2: extracting the rth round of the target test corresponding to the reference mainboard carried in the update test process, and extracting the sth round of the target test corresponding to the target mainboard carried in the target test process, wherein r is a positive integer less than or equal to M, and s is a positive integer less than or equal to M; detecting the second degree of match between the update test process and the target test process according to the rth round and the sth round; The second matching degree between the update test process and the target test process is detected based on the rth round and the sth round, including: detecting whether the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are the same, to obtain a second detection result; when the second detection result is used to indicate that the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are the same, the matching degree corresponding to the second detection result is determined as the second matching degree; when the second detection result is used to indicate that the number of rounds r of the target test corresponding to the reference mainboard and the number of rounds s of the target test corresponding to the target mainboard are different, the matching degree corresponding to the second detection result is determined as the second matching degree.

7. The method according to claim 1, It is characterized in that The step of continuing to perform the target test on the first mainboard and continuing to perform the target test on the second mainboard includes: Disconnecting the first mainboard from the target power supply, disconnecting the second mainboard from the target power supply, testing the operating performance of the first mainboard, and testing the operating performance of the second mainboard; or, The connection between the first mainboard and the target power supply is restored, and the connection between the second mainboard and the target power supply is restored, and the operating performance of the first mainboard is tested, and the operating performance of the second mainboard is tested.

8. A server testing device, It is characterized in that A first mainboard, a second mainboard, a target power supply and a controller are deployed in the server, the first mainboard is connected to the target power supply, the second mainboard is connected to the target power supply, the controller is connected to the first mainboard, the second mainboard and the target power supply respectively, the device is applied to the controller, and the device includes: an extraction module, configured to extract a first test process corresponding to the first mainboard and a second test process corresponding to the second mainboard during a target test on the first mainboard and the second mainboard, wherein the target test is used to test the operating performance of the mainboard of the server when the connection between the mainboard and the power supply of the server is disconnected or when the connection between the mainboard and the power supply of the server is restored; A detection module, configured to detect a first matching degree between the first test process and the second test process; a first processing module, configured to, when the first matching degree is less than a matching degree threshold, suspend the target test performed on a target mainboard, and continue to perform the target test on a reference mainboard, wherein the test process of the target mainboard is faster than the test process of the reference mainboard, the target mainboard is one of the first mainboard and the second mainboard, and the reference mainboard is another mainboard of the second mainboard and the first mainboard except the target mainboard; A second processing module, configured to extract the update test process corresponding to the reference motherboard, and detect a second matching degree between the update test process and the target test process when the target motherboard is suspended from testing; An execution module is used to continue to execute the target test on the first mainboard and continue to execute the target test on the second mainboard when the second matching degree is greater than or equal to the matching degree threshold.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.