Test method, system and device, computer equipment and storage medium
The server power is controlled by the motherboard power enable signal, and the status is judged by the power on and wake-up signals, which solves the complexity of the server AC cycle test and realizes a convenient and accurate testing process.
Patent Information
- Application Number
- CN202410370558.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2025-09-30
AI Technical Summary
Existing server AC cycle testing methods are complex and difficult to implement convenient physical power-off and power-on operations in non-specific laboratory environments.
The server power is controlled by the power supply enable signal of the server motherboard, the server status is judged by combining the power-on signal and wake-up signal, and the test fixture is used to drive the server system to start up, self-check and shut down.
The system complexity of AC cycle testing is simplified, the convenience and accuracy of testing are improved, the cost is reduced, and AC cycle testing of servers is realized in non-specific environments.
Smart Images

Figure CN120723552A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a testing method, system, apparatus, computer equipment, and storage medium. Background Art
[0002] With the increasing quality requirements for computers and x86-based servers, major server manufacturers are also placing higher demands on machine stability. Many servers require DC and AC cycling tests during the R&D phase to ensure reliability and stability. DC cycling testing involves a self-test after the server is powered on, retaining the test results, shutting down normally, and then powering it back on again for testing, repeating this process. AC cycling testing involves disconnecting the server power supply after each DC test, then powering it back on again, and then performing the DC test.
[0003] DC cycling tests are generally simpler, typically requiring testers to pre-write a test script and then run it on the server. However, AC cycling tests, which involve physically powering off and on, are generally more difficult to implement. For example, performing AC cycling tests using a power distribution unit (PDU) interface requires a specific environment, meaning that this functionality can only be implemented using a PDU interface in specific laboratories, which is a limitation. Performing AC cycling tests using an AC test black box requires access to a network port and powering the tool, making the system complex. Therefore, a convenient method for performing AC cycling tests is urgently needed. Summary of the Invention
[0004] Based on this, it is necessary to provide a testing method, system, device, computer equipment and storage medium to address the above technical problems, so as to improve the convenience of AC cycle testing.
[0005] In a first aspect, the present application provides a testing method, comprising:
[0006] When detecting that the server is in a system shutdown state, controlling the server to be powered off and on through a power supply enable signal of the mainboard of the server;
[0007] After the server is powered on, the server system is driven to start up, perform self-check, and shut down after the self-check is completed.
[0008] The above test method uses the power supply enable signal of the motherboard to control the power on and off of the server, which not only meets the needs of AC cycle testing, but also reduces system complexity and improves the convenience of AC cycle testing.
[0009] In one embodiment, when detecting that the server is in a shutdown state, controlling the server to be powered off and on by a power supply enable signal of a mainboard of the server includes:
[0010] When detecting that the server is in a system shutdown state, setting the power supply enable signal to a first level;
[0011] After a preset time, the power supply enable signal is set to a second level;
[0012] When the power supply enable signal is at the first level, the server is in a power-off state; and when the power supply enable signal is at the second level, the server is in a power-on state.
[0013] The above-mentioned test method powers off the server by setting the power supply enable signal to the first level, and powers on the server again by setting the power supply enable signal of the mainboard to the second level after a period of power outage. By controlling the level of the power supply enable signal, the server can be powered on and off conveniently and quickly, thereby improving the convenience of AC cycle testing.
[0014] In one embodiment, the method further comprises:
[0015] Detecting a power-on signal and a wake-up signal of the mainboard;
[0016] Determine whether the server is in a system shutdown state according to the power-on signal and the wake-up signal.
[0017] The above test method detects whether the server is in the system shutdown state through the power-on signal and the wake-up signal, which is relatively convenient and quick.
[0018] In one embodiment, determining whether the server is in a shutdown state according to the power-on signal and the wake-up signal includes:
[0019] When the power-on signal has no transition and the wake-up signal is at the third level, it is determined that the server is in a system shutdown state.
[0020] The above test method uses the changes in the power-on signal and the wake-up signal to judge the status of the server, thereby improving the accuracy of the judgment result.
[0021] In one embodiment, after the server is powered on, driving the server system to start up includes:
[0022] After the server is powered on, the wake-up signal is set to a fourth level.
[0023] The above test method realizes the startup of the server system by driving the test fixture.
[0024] In one embodiment, when the baseboard management controller (BMC) of the server is in a permanently on state, powering on the server can drive the BMC to initialize, and completing the initialization of the BMC can drive the server system to boot up.
[0025] The above test method realizes the startup of the server system through the BMC.
[0026] In one embodiment, driving the server to self-check includes:
[0027] The server is driven to run a test script for self-test after the system is turned on, and the test data is saved.
[0028] The above test method realizes server self-test and meets the requirements of AC cycle test.
[0029] In a second aspect, the present application further provides a test system, comprising a server and a test fixture, wherein a power supply enable signal pin on a mainboard of the server is connected to the test fixture;
[0030] The test fixture is used to control the server to power off and on through the power supply enable signal of the server's motherboard when it is detected that the server is in the system shutdown state; drive the server system to start up, self-check, and shut down the system after the self-check is completed.
[0031] In one embodiment, the test fixture is further used to:
[0032] When detecting that the server is in a system shutdown state, setting the power supply enable signal to a first level;
[0033] After a preset time, the power supply enable signal is set to a second level;
[0034] When the power supply enable signal is at the first level, the server is in a power-off state; and when the power supply enable signal is at the second level, the server is in a power-on state.
[0035] In one embodiment, the power-on signal pin and the wake-up signal pin on the mainboard are connected to the test fixture;
[0036] The test fixture is further used to detect the power-on signal and the wake-up signal of the mainboard; and determine whether the server is in a system shutdown state according to the power-on signal and the wake-up signal.
[0037] In one embodiment, the test fixture is further used to:
[0038] When the power-on signal has no transition and the wake-up signal is at the third level, it is determined that the server is in a system shutdown state.
[0039] In one embodiment, the test fixture is further used to:
[0040] After the server is powered on, the wake-up signal is set to a fourth level.
[0041] In one embodiment, the server includes a baseboard management controller BMC;
[0042] The BMC is configured to be in a permanently on state, initialize after the server is powered on, and drive the server system to boot after the initialization is completed.
[0043] In one embodiment, the server is configured to:
[0044] Run the test script to perform self-test after the system is powered on and save the test data;
[0045] After the self-test is complete, the system shuts down.
[0046] In a third aspect, the present application further provides a testing device, comprising:
[0047] A control module, configured to control powering off and on of the server via a power supply enable signal of a mainboard of the server when detecting that the server is in a system shutdown state;
[0048] The driving module is used to drive the server system to start up, perform self-test, and shut down the system after the self-test is completed after the server is powered on.
[0049] In one embodiment, the control module is further configured to:
[0050] When detecting that the server is in a system shutdown state, setting the power supply enable signal to a first level;
[0051] After a preset time, the power supply enable signal is set to a second level;
[0052] When the power supply enable signal is at the first level, the server is in a power-off state; and when the power supply enable signal is at the second level, the server is in a power-on state.
[0053] In one embodiment, the apparatus further comprises:
[0054] A detection module, used to detect the power-on signal and wake-up signal of the mainboard;
[0055] A determination module is used to determine whether the server is in a system shutdown state according to the power-on signal and the wake-up signal.
[0056] In one embodiment, the determining module is further configured to:
[0057] When the power-on signal has no transition and the wake-up signal is at the third level, it is determined that the server is in a system shutdown state.
[0058] In one embodiment, the driving module is further configured to:
[0059] After the server is powered on, the wake-up signal is set to a fourth level.
[0060] In one embodiment, when the baseboard management controller (BMC) of the server is in a permanently on state, powering on the server can drive the BMC to initialize, and completing the initialization of the BMC can drive the server system to boot up.
[0061] In one embodiment, the driving module is further configured to:
[0062] The server is driven to run a test script for self-test after the system is turned on, and the test data is saved.
[0063] In a fourth aspect, the present application also provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the security component deployment method of the above first aspect or any one of the embodiments of the first aspect is implemented.
[0064] In a fifth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the security component deployment method of the above first aspect or any one of the embodiments of the first aspect.
[0065] In a sixth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the security component deployment method of the above first aspect or any one of the embodiments of the first aspect.
[0066] The aforementioned testing method, system, apparatus, computer device, and storage medium, upon detecting that a server is in a system shutdown state, controls the server's power cycle by using a power enable signal from the server's mainboard. After the server is powered on, the system boots up, performs a self-test, and then shuts down after the self-test is complete. In this way, using the mainboard's power enable signal to control server power cycles not only meets the requirements of AC cycling testing, but also reduces system complexity and improves the convenience of AC cycling testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. 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 paying any creative work.
[0068] Figure 1 A schematic diagram showing the architecture of a test system provided in an embodiment of the present application is shown;
[0069] Figure 2 Schematic diagram of a test method in one embodiment;
[0070] Figure 3 Shows a schematic diagram of the server self-check process;
[0071] Figure 4 A signal diagram of a test fixture in an embodiment of the present application is shown;
[0072] Figure 5 A schematic diagram showing the signal path direction in an embodiment of the present application is shown;
[0073] Figure 6 is a structural block diagram of a testing device in one embodiment;
[0074] Figure 7 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0076] Figure 1 The schematic diagram of the test system provided in the embodiment of the present application is shown. The test system includes a server and a test fixture. Figure 1 As shown, the power supply enable signal pin on the server mainboard is connected to the test fixture.
[0077] Among them, the test fixture can be used to perform AC cycle testing on the server. Specifically, when the test fixture detects that the server is in the system shutdown state, it can control the server to power off and on through the power supply enable signal of the mainboard; after the server is powered on, it can drive the server system to start up, self-check, and shut down the system after the self-check is completed.
[0078] The server can be powered on and off by pressing a physical power button, or it can be powered on and off by the system (e.g., operating system). Shutting down the server by the system is called a system shutdown.
[0079] The mainboard's power supply enable signal can be used to control the powering on and off of the server's mainboard. When the server is connected to a power supply, if the power supply enable signal is set to a first level, the power supply cannot supply power to the server's mainboard. If the power supply enable signal is set to a second level, the power supply can supply power to the server's mainboard. The first level and the second level can represent different electrical levels. For example, the first level can represent a high level, and the second level can represent a low level.
[0080] After the test fixture is powered on to the server, it drives the server system to boot up, perform a self-test, and then shut down the system after the self-test is complete, effectively completing a DC test. If the test fixture detects that the server is in the system shutdown state, it controls the server to power off and then power on again, effectively disconnecting and then powering the server back on after each DC test.
[0081] In this embodiment of the present application, the AC cycling test process includes: the server system is shut down, the test fixture detects that the server is in the system shutdown state, and controls the server to power on and off via the power enable signal from the motherboard. After the server is powered on, the system boots up, performs a self-test, and then shuts down after the self-test is complete. After the server system is shut down, the test fixture detects that the server is in the system shutdown state again, and repeats the above process to control the server to power on and off.
[0082] In one possible implementation, the test fixture is further configured to set the power supply enable signal of the mainboard to a first level when detecting that the server is in a system shutdown state, and to set the power supply enable signal to a second level after a preset time.
[0083] When the power supply enable signal is at the first level, the server is in a power-off state; and when the power supply enable signal is at the second level, the server is in a power-on state.
[0084] The test fixture sets the mainboard's power enable signal to a first level, which can then power off the server. At this point, the test fixture begins timing, and after the timing reaches a preset time, it sets the mainboard's power enable signal to a second level, powering the server back on. The preset time can be set as needed, for example, based on server protection requirements or test efficiency requirements, and this is not limited in this embodiment of the present application.
[0085] In one possible implementation, Figure 1 As shown, the power-on signal pin and the wake-up signal pin on the server's motherboard are connected to the test fixture. The test fixture is also used to detect the power-on signal and the wake-up signal of the motherboard; and determine whether the server is in the system shutdown state based on the power-on signal and the wake-up signal.
[0086] The server is equipped with a physical power button that can be pressed to control server power on and off. When the server is powered off, pressing the physical power button will power on the server; when the server is powered on, pressing the physical power button will power off the server. When the physical power button is pressed, the power-on signal generates a low pulse. When the server is shut down by the system, the power-on signal remains unchanged. Therefore, the power-on signal indicates whether the server is powered on or off, and whether the shutdown was caused by pressing the physical power button or by the system.
[0087] When the server is powered on (i.e., operating normally), the wake-up signal is high. When the server is powered off, the wake-up signal becomes low. Therefore, the wake-up signal can indicate whether the server is powered on or powered off.
[0088] Therefore, the test fixture can determine whether the server is in the system shutdown state based on the power-on signal and the wake-up signal. First, the test fixture can determine whether the server is in the power-on state or the power-off state based on the wake-up signal. Then, if the server is in the power-off state, the test fixture can determine whether the server was shut down by pressing the physical power button or by a system driver based on the power-on signal. Finally, if the server was shut down by a system driver, the test fixture can determine that the server is in the system shutdown state.
[0089] In an example, the test fixture may also be used to determine that the server is in a system shutdown state when the power-on signal has no transition and the wake-up signal is at a third level.
[0090] The absence of a power-on signal transition can indicate that the server's physical power button has not been pressed. If the server is shut down, the server shutdown is not caused by the physical power button being pressed or by a system driver, but rather by a system driver. A third level of the wake-up signal can indicate that the server is in a shutdown state. For example, the third level can be a low level. Therefore, when the power-on signal does not transition and the wake-up signal is at the third level, the test fixture can determine that the server is in a system shutdown state.
[0091] When the test fixture detects that the server is in the system shutdown state, it can control the server to power off and on. After the server is powered on, the test fixture can drive the server system to boot up, perform self-tests, and then restart the system after the self-tests are completed.
[0092] In one possible implementation, the test fixture is further configured to set the wake-up signal to a fourth level after the server is powered on. The fourth level can represent a different level than the third level. In one example, if the third level represents a low level, the fourth signal represents a high level. After the wake-up signal is set to the fourth level, the server system is automatically powered on.
[0093] In one possible implementation, the server may further include a baseboard management controller (BMC). The BMC may be configured to be in an always-on state, initialize after the server is powered on, and drive the server system to boot after the initialization is complete.
[0094] The BMC is a specialized service processor that uses sensors to monitor the status of a computer, server, or other hardware device. If the BMC is configured to always be on, it automatically initializes after the server is powered on. After each BMC initialization, the server automatically boots up after a certain period of time (for example, two minutes).
[0095] In an embodiment of the present application, after the server is powered on, a wake-up signal is set by the test fixture or the BMC alwayson directly drives the server system to start up, providing conditions for AC cycle testing.
[0096] In a possible implementation, the server is used to: run the test script after the system is powered on and save the test data; and shut down the system after the self-test is completed.
[0097] In the embodiment of the present application, the core logic chip of the test fixture is a programmable logic chip. The programmable logic chip may include a complex programmable logic device (CPLD), a microcontroller unit (MCU), a field programmable gate array (FPGA), and a baseboard management controller (BMC). This programmable logic chip can control the power on and off of the server motherboard, as well as drive server self-tests and system shutdowns.
[0098] When the test system detects that a server is in a system shutdown state, it uses the server's mainboard power enable signal to control the server's power cycle. After the server is powered on, it drives the server system to boot up, perform a self-test, and then shut down after the self-test is complete. In this way, using the mainboard's power enable signal to control server power cycles not only meets the requirements of AC cycling testing, but also reduces system complexity and improves the convenience of AC cycling testing.
[0099] In an exemplary embodiment, Figure 2 As shown, a test method is provided to apply the method to Figure 1 Taking the test fixture in as an example, the method may include:
[0100] Step S201 : When it is detected that the server is in a system shutdown state, the server is controlled to be powered off and on through a power supply enable signal of a mainboard of the server.
[0101] Each AC test requires disconnecting and reconnecting the server power supply. In this step, to complete the AC test, upon detecting that the server processing system is in a shutdown state, the server can be powered off and on. Because the server motherboard's power supply enable signal can be used to control the server motherboard's power on and off, this step uses the server motherboard's power supply enable signal to control the server's power off and on.
[0102] In a possible implementation, step S201 may include: when detecting that the server is in a system shutdown state, setting the power supply enable signal to a first level; and after a preset time, setting the power supply enable signal to a second level.
[0103] When the power supply enable signal is at the first level, the server is in a power-off state; and when the power supply enable signal is at the second level, the server is in a power-on state.
[0104] When the server is connected to a power supply, if the power supply enable signal is set to a first level, the power supply cannot supply power to the server's mainboard. If the power supply enable signal is set to a second level, the power supply can supply power to the server's mainboard. The first level and the second level may represent different levels. For example, the first level may represent a high level, and the second level may represent a low level.
[0105] The test fixture sets the mainboard's power enable signal to a first level, which can then power off the server. At this point, the test fixture begins timing, and after the timing reaches a preset time, it sets the mainboard's power enable signal to a second level, powering the server back on. The preset time can be set as needed, for example, based on server protection requirements or test efficiency requirements, and this is not limited in this embodiment of the present application.
[0106] In a possible implementation, the method may further include: detecting a power-on signal and a wake-up signal of the mainboard; and determining whether the server is in a system shutdown state according to the power-on signal and the wake-up signal.
[0107] The power-on signal indicates whether the server's physical power button has been pressed. The server is equipped with a physical power button that can be pressed to power the server on and off. If the server is powered off, pressing the button will power it on; if the server is powered on, pressing the button will power it off. When the button is pressed, the power-on signal generates a low pulse. If the server is powered off by the system, the power-on signal remains unchanged.
[0108] The wake-up signal can be used to indicate whether the server is in a powered-on state or a powered-off state. When the server is powered-on, the wake-up signal is at a high level, and when the server is powered-off, the wake-up signal is at a low level.
[0109] Therefore, the test fixture can determine whether the server is powered on or off, and whether the server's physical power button has been pressed, based on the power-on and wake-up signals. In other words, the test fixture can determine whether the server shutdown was caused by pressing the physical power button based on the power-on and wake-up signals. If the server shutdown was not caused by pressing the physical power button, it indicates that the server was system-driven and is in the system-off state.
[0110] In a possible implementation, determining whether the server is in a shutdown state according to the power-on signal and the wake-up signal may include: determining that the server is in a system shutdown state when the power-on signal has no transition and the wake-up signal is at a third level.
[0111] The absence of a power-on signal transition can indicate that the server's physical power button has not been pressed. If the server is shut down, the server shutdown is not caused by the physical power button being pressed or by a system driver, but rather by a system driver. A third level of the wake-up signal can indicate that the server is in a shutdown state. For example, the third level can be a low level. Therefore, when the power-on signal does not transition and the wake-up signal is at the third level, the test fixture can determine that the server is in a system shutdown state.
[0112] Step S202 , after the server is powered on, the server system is driven to start up, perform self-test, and shut down the system after the self-test is completed.
[0113] After the server is powered on, the test fixture can drive the server to perform a DC test, including system startup, self-test, and system shutdown after the self-test is complete. Once the server has completed powering off, powering on, and performing a DC test, it also completes an AC test. After the server system is shut down, the test fixture can detect that the server is in system shutdown and re-execute steps S201 and S202, repeating this cycle, thus implementing AC cycling testing.
[0114] In the embodiment of the present application, the server can be driven to start up in two ways. One is to drive the server to start up by the test fixture, and the other is to drive the server to start up by the BMS. The two ways are introduced below.
[0115] In a possible implementation, after the server is powered on, driving the server system to start up in step S202 may include: after the server is powered on, setting the wake-up signal to a fourth level.
[0116] The fourth level can represent a level different from the third level. In one example, if the third level represents a low level, the fourth signal represents a high level. After the wake-up signal is set to the fourth level, the server system is automatically powered on. After the server is powered on, the test fixture can set the wake-up signal to the fourth level to power on the server system.
[0117] In a possible implementation, when the baseboard management controller BMC of the server is in a permanently on state, powering on the server can drive the BMC to initialize, and completing the initialization of the BMC can drive the server system to boot up.
[0118] If the BMC is set to always on, the server automatically initializes after powering on. After each BMC initialization, the server automatically boots up after a certain period of time (for example, two minutes). This allows the BMC to automatically boot up the server after powering on.
[0119] In a possible implementation, driving the server to self-check in step S202 may include: driving the server to run a test script to perform self-check after the system is powered on, and saving test data.
[0120] Figure 3 Figure 2 shows a schematic diagram of the server self-check process. Figure 3 As shown in the figure, the server self-test process includes: system startup, running the self-test script, saving the test data in the system, and driving the system shutdown. In this way, every time the server is powered on, it will start running the server self-test script, save the test data in the system, and then drive the system shutdown, thus completing a DC test.
[0121] The above testing method, when detecting that a server is in a system shutdown state, controls the server's power cycle by using the server's mainboard power enable signal. After the server is powered on, the server system boots up, performs a self-test, and then shuts down after the self-test is complete. In this way, using the mainboard's power enable signal to control server power cycles not only meets AC testing requirements, but also reduces system complexity and improves the convenience of AC testing.
[0122] In the embodiments of this application, a test fixture is implemented using a board rather than external devices, improving convenience and reducing costs. Furthermore, the server power cycle is controlled using a power supply enable signal, enabling server power cycling without changing the existing power supply circuit. Furthermore, the server's shutdown status is determined using power-on and wake-up signals, providing convenient conditions for AC cycling testing.
[0123] Figure 4 Schematic diagram of the signal of the test fixture in the embodiment of the present application is shown. Figure 4 As shown in FIG, taking CPLD as a programmable logic chip of a test fixture as an example, the input and output signals of the test fixture include a power-on signal, a wake-up signal, and a power enable (Power Enable, PWREN).
[0124] The test fixture monitors the power-on and wake-up signals, outputting the power-on and PWREN signals. Specifically, when the CPLD detects a transition in the power-on signal, it identifies it as a manual power-on and takes no action. When the CPLD detects no transition in the power-on signal but a low level in the wake-up signal, it identifies it as a system-driven shutdown (i.e., a system power-on). The CPLD then pulls the PWREN signal high, powering off the server. It then starts a power-on timer. When the timer reaches a certain value, it pulls the PWREN signal low, powering the server back on. The BMC or CPLD then initiates the server system power-on.
[0125] Figure 5Schematic diagram of the signal path in the embodiment of the present application is shown. Figure 5 As shown in the figure, the power-on signal follows two paths. Path 1: The power-on signal is triggered normally, and the CPLD does nothing. Path 2: The power-on signal does not transition and the wake-up signal is pulled low; the CPLD pulls the PWREN signal high; the CPLD's internal count reaches a certain value; the CPLD pulls the PWREN signal low; and the BMC or CPLD issues a power-on command to the motherboard.
[0126] A normal power-on signal trigger refers to a power-on signal transition caused by the server's physical button being pressed. Counting within the CPLD is equivalent to starting a counter. This internal counting process is essentially timing, and power is turned on after the count reaches a certain value. This certain value can be set as needed to control the duration between power-off and power-on. The BMC automatically powers on the system when it issues a power-on command to the mainboard. The CPLD automatically sets the wake-up signal to the fourth level when it issues a power-on command to the mainboard.
[0127] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0128] Based on the same inventive concept, the present application also provides a test device for implementing the aforementioned method. The solution provided by the device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more test device embodiments provided below can be found in the above-mentioned limitations of the test method and will not be repeated here.
[0129] In an exemplary embodiment, Figure 6 As shown, a testing device is provided. The testing device 600 may include: a control module 601 and a driving module 602, wherein:
[0130] A control module, configured to control powering off and on of the server via a power supply enable signal of a mainboard of the server when detecting that the server is in a system shutdown state;
[0131] The driving module is used to drive the server system to start up, perform self-test, and shut down the system after the self-test is completed after the server is powered on.
[0132] In one embodiment, the control module is further configured to:
[0133] When detecting that the server is in a system shutdown state, setting the power supply enable signal to a first level;
[0134] After a preset time, the power supply enable signal is set to a second level;
[0135] When the power supply enable signal is at the first level, the server is in a power-off state; and when the power supply enable signal is at the second level, the server is in a power-on state.
[0136] In one embodiment, the apparatus further comprises:
[0137] A detection module, used to detect the power-on signal and wake-up signal of the mainboard;
[0138] A determination module is used to determine whether the server is in a system shutdown state according to the power-on signal and the wake-up signal.
[0139] In one embodiment, the determining module is further configured to:
[0140] When the power-on signal has no transition and the wake-up signal is at the third level, it is determined that the server is in a system shutdown state.
[0141] In one embodiment, the driving module is further configured to:
[0142] After the server is powered on, the wake-up signal is set to a fourth level.
[0143] In one embodiment, when the baseboard management controller (BMC) of the server is in a permanently on state, powering on the server can drive the BMC to initialize, and completing the initialization of the BMC can drive the server system to boot up.
[0144] In one embodiment, the driving module is further configured to:
[0145] The server is driven to run a test script for self-test after the system is turned on, and the test data is saved.
[0146] Each module in the above-mentioned test device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0147] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a test method is implemented.
[0148] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0149] In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0150] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0151] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0152] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0153] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0154] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A testing method, characterized in that: The method comprises: When detecting that the server is in a system shutdown state, controlling the server to be powered off and on through a power supply enable signal of the mainboard of the server; After the server is powered on, the server system is driven to start up, perform self-check, and shut down after the self-check is completed.
2. The method according to claim 1, characterized in that When detecting that the server is in a shutdown state, controlling the server to be powered off and on by a power supply enable signal of a mainboard of the server includes: When detecting that the server is in a system shutdown state, setting the power supply enable signal to a first level; After a preset time, the power supply enable signal is set to a second level; When the power supply enable signal is at the first level, the server is in a power-off state; and when the power supply enable signal is at the second level, the server is in a power-on state.
3. The method according to claim 1, characterized in that The method further comprises: Detecting a power-on signal and a wake-up signal of the mainboard; Determine whether the server is in a system shutdown state according to the power-on signal and the wake-up signal.
4. The method according to claim 3, characterized in that The determining whether the server is in a shutdown state according to the power-on signal and the wake-up signal includes: When the power-on signal has no transition and the wake-up signal is at the third level, it is determined that the server is in a system shutdown state.
5. The method according to claim 3, characterized in that After the server is powered on, driving the server system to start up includes: After the server is powered on, the wake-up signal is set to a fourth level.
6. The method according to claim 1, characterized in that In the case that the baseboard management controller BMC of the server is in a permanently on state, powering on the server can drive the BMC to initialize, and completing the initialization of the BMC can drive the server system to boot up.
7. A testing system, characterized in that: The test system includes a server and a test fixture, wherein a power supply enable signal pin on a mainboard of the server is connected to the test fixture; The test fixture is used to control the server to power off and on through the power supply enable signal of the server's motherboard when it is detected that the server is in the system shutdown state; drive the server system to start up, self-check, and shut down the system after the self-check is completed.
8. A testing device, characterized in that: The device comprises: A control module, configured to control the server to be powered off and on via a power supply enable signal of a mainboard of the server when detecting that the server is in a system shutdown state; The driving module is used to drive the server system to start up, perform self-test, and shut down the system after the self-test is completed after the server is powered on.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Power supply circulating pressure testing method
CN102045211A
Server mainboard power-on and power-off test method and system
CN111176736A
Cyclic power-on and power-off test method and system for server
CN111752776A
Cited By
Server power supply circuit, control method and server
CN122131896A