CN111475406A - MOC card based method and system for testing CP L D firmware refreshing - Google Patents
MOC card based method and system for testing CP L D firmware refreshing Download PDFInfo
- Publication number
- CN111475406A CN111475406A CN202010229921.0A CN202010229921A CN111475406A CN 111475406 A CN111475406 A CN 111475406A CN 202010229921 A CN202010229921 A CN 202010229921A CN 111475406 A CN111475406 A CN 111475406A
- Authority
- CN
- China
- Prior art keywords
- test
- firmware
- server
- moc card
- node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 319
- 239000013256 coordination polymer Substances 0.000 title claims abstract description 149
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000013515 script Methods 0.000 claims abstract description 99
- 238000012544 monitoring process Methods 0.000 claims description 34
- 238000001514 detection method Methods 0.000 claims description 26
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000006467 substitution reaction Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a method and a system for testing CP L D firmware refreshing based on an MOC card, wherein the method comprises the steps of configuring a test environment, establishing network connection of a controller node, a server node and the MOC card, configuring test scripts at all nodes, configuring test scripts for CP L D firmware upgrading on the MOC card, setting test cycle times, transmitting the test cycle times to the test scripts of the controller node, the server node and the MOC card, starting testing, automatically executing respective test scripts by the controller node, the server node and the MOC card in each test cycle, judging whether the firmware upgrading of a previous test cycle of CP L D is successful, upgrading the CP L D firmware in the test cycle, and circularly repeating the test cycle until the test cycle times are completed, wherein the test cycle refers to the test cycle of executing the CP L D firmware upgrading by the MOC card in the process from power on to power off of the MOC card.
Description
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a method and a system for testing CP L D firmware refreshing based on an MOC card.
Background
For a server product, in various scenes such as development, testing, production application and the like, firmware of a CP L D component is required to be upgraded or downgraded, for a tester, testing whether Bug exists in a version of CP L D firmware is a test that needs to be done, and the test needs to be performed after the CP L D firmware is refreshed, while CP L D is a component for server power management, and the existing test is basically manual test.
The MOC card is a novel product, is equivalent to a sub server installed on a server, has larger difference with the traditional server, and has the following defects that 1, a large amount of testing resources are consumed, a large amount of time of testing personnel is occupied, 2, the number of times of testing is less, the problem existing in firmware refreshing cannot be fully exposed, and the testing is insufficient, and the CP L D part for storing the MOC card server is further lack of an effective automatic testing method.
This is a disadvantage of the prior art, and therefore, it is very necessary to provide a method and a system for testing CP L D firmware refresh based on MOC card to overcome the above-mentioned disadvantages of the prior art.
Disclosure of Invention
Aiming at the defects that the existing server containing the MOC card in the prior art lacks a limited automatic test method for refreshing the CP L D firmware, wastes test resources and can not fully expose the problems, the invention provides a method and a system for testing the CP L D firmware refreshing based on the MOC card, so as to solve the technical problems.
In a first aspect, the present invention provides a method for testing CP L D firmware refresh based on MOC card, which is characterized by comprising the following steps:
s1, configuring a test environment, establishing network connection of a controller node, a server node and an MOC card, configuring a test script at each node, and configuring a test script for upgrading CP L D firmware on the MOC card;
s2, setting test cycle times, and transmitting the test cycle times to a test script of a controller node, a server node and an MOC card;
s3, starting a test, wherein in each test period, the control machine node, the server node and the MOC card automatically execute respective test scripts, judging whether the firmware upgrade of the CP L D in the last test period is successful, upgrading the CP L D firmware in the test period, and circularly repeating the test period until the test cycle is completed, wherein the test period refers to the test period of the test scripts for executing the CP L D firmware upgrade of the MOC card in the process from power on to power off, and the test cycle can be directly set in the respective test scripts by setting the test scripts transmitted to the control machine node, the server node and the MOC card by a user.
Further, in step S1, a server power state monitoring test script is set at the controller node, and an MOC card power state monitoring test script is set at the server node. The MOC card is equivalent to a sub-server arranged on the server node and can be directly plugged in the server node, and when the server is started, the MOC card is automatically started.
Further, the step S3 specifically includes the following steps:
s31, starting a test;
s32, the controller node executes the server power state monitoring test script to automatically detect whether the server power state is a shutdown state;
if not, returning to the step S32;
if yes, the power supply state detection script of the configuration server controls the power supply management tool to close the power supply of the server, and controls the power supply management tool to open the power supply of the server after waiting for the set time;
s33, configuring a server power state detection script to start a server node, and automatically starting the MOC card after the server node is started;
the MOC card executes the CP L D firmware refreshing test script, executes CP L D firmware upgrading through a CP L D firmware upgrading tool, shuts down the MOC card after the firmware upgrading is completed, the server node enters the step S34, sends an instruction to the controller before the MOC card is shut down, and returns to the step S32;
s34, the server node executes the MOC card power monitoring test script to automatically detect whether the power state of the MOC card is a shutdown state or not, and when the power state of the MOC card is shutdown, the server is shut down, the step S32 is returned, the controller node continuously scans and monitors a power potential signal of the server node, meanwhile, the server node continuously scans and monitors a power potential signal of the MOC card, after the MOC card is shut down, a shutdown circuit low potential signal is sent to the server node, after the server node is shut down, the shutdown circuit low potential signal is sent to the controller node, the controller node is powered on after power-off is conducted according to the shutdown circuit low potential signal for a set time period, the server node is controlled to be powered on and started, the server node controls the MOC card to be powered on and started, a test result of the CP L D firmware is obtained, the MOC card is shut down, circulation is returned until the test.
Further, in step S32, the server power state of the controller node monitors the test script, and determines whether the number of tests reaches the number of loop tests before automatically detecting the server power state;
if yes, exiting the test;
if not, continuously detecting whether the power state of the server is a power-off state;
in step S33, before detecting the power state of the MOC card, the MOC card power monitoring test script of the server node further determines whether the number of tests reaches the number of loop tests;
if yes, exiting the test;
if not, continuously detecting whether the power supply state of the MOC card is a shutdown state or not;
in step S33, before the MOC card executes the CP L D firmware upgrade, it is also determined whether the number of tests reaches the number of loop tests;
if yes, exiting the test;
if not, the CP L D firmware upgrade continues to be performed.
Further, in step S33, after the MOC card performs the CP L D firmware upgrade, the method further includes:
judging whether the CP L D firmware upgrading tool is upgraded successfully;
if yes, continuing to shut down the MOC card and sending an instruction to the control machine node;
if not, recording an execution failure log, and exiting the test.
Further, in step S33, before the MOC card performs the firmware upgrade, the method further includes:
detecting the current CP L D firmware version, and judging whether the firmware upgrade of the CP L D of the last period is successful;
if yes, the CP L D firmware upgrade is continuously executed;
if yes, recording an upgrade failure log, and exiting the test.
Further, the current CP L D firmware version is detected, and whether the firmware upgrade of the CP L D in the last period is successful is judged, and the specific steps are as follows:
the CP L D firmware refreshing test script acquires an upper period CP L D firmware upgrading target version;
the CP L D firmware refresh test script acquires the current version of CP L D firmware;
the CP L D firmware refreshing test script judges whether the upper period CP L D firmware upgrading target version is the same as the CP L D firmware current version;
if yes, successfully upgrading the firmware in the upper period CP L D, and recording the firmware upgrading target version in the period CP L D;
if not, the firmware upgrade of the upper period CP L D fails.
Further, in step S32, the power management tool employs a PDU power module. The control machine automatically switches off and on the power supply of the server through a PDU power supply module serving as a power supply management tool.
In a second aspect, the present invention provides a system for testing CP L D firmware refreshing based on MOC card, including:
the system comprises a test environment configuration module, a test environment configuration module and a test environment updating module, wherein the test environment configuration module is used for configuring a test environment, establishing network connection of a controller node, a server node and an MOC card, configuring a test script at each node, and configuring the test script for CP L D firmware upgrading on the MOC card;
the test cycle number transmission module is used for setting the test cycle number and transmitting the test cycle number to the control machine node, the server node and the test pins of the MOC card;
and the CP L D firmware upgrading test module is used for starting a test, controlling the machine nodes, the server nodes and the MOC card to automatically execute respective test scripts in each test period, judging whether the firmware upgrading of the CP L D in the last test period is successful, upgrading the CP L D firmware in the test period, and circularly repeating the test period until the test cycle is completed, wherein the test period refers to the test period of executing the test scripts of the CP L D firmware upgrading of the MOC card in the process from power on to power off.
And further, the test environment configuration module is also used for setting a server power state monitoring test script at the node of the control machine and setting an MOC card power state monitoring test script at the node of the server.
Further, the CP L D firmware upgrade testing module includes:
the test starting unit is used for starting a test;
the controller-to-server power state detection unit is used for executing a server power state monitoring test script at a controller node and automatically detecting whether the server power state is in a shutdown state;
the testing frequency detection unit of the control machine is used for judging whether the testing frequency reaches the cycle testing frequency or not at the control machine node by the server power state monitoring testing script;
the power supply on-off unit of the control machine for the server is used for configuring the server power supply state detection script to control the power supply management tool to close the server power supply and control the power supply management tool to open the server power supply after waiting for the set time;
the server test frequency detection unit is used for judging whether the test frequency reaches the cycle test frequency or not at the server node by the MOC card power supply state monitoring test script;
the server is used for configuring an MOC card power supply monitoring test script to automatically detect whether the power supply state of the MOC card is a shutdown state or not, and when the power supply state of the MOC card is shutdown, the server is shut down;
the MOC card test frequency detection unit is used for configuring a CP L D firmware refreshing test script to judge whether the test frequency reaches the cycle test frequency or not on the MOC card;
the MOC card is used for configuring a CP L D firmware upgrading unit, a CP L D firmware refreshing test script is used for executing CP L D firmware upgrading through a CP L D firmware upgrading tool, the MOC card is shut down after the firmware upgrading is completed, and an instruction is sent to a controller before the MOC card is shut down.
The beneficial effect of the invention is that,
the method and the system for testing the CP L D firmware refreshing based on the MOC card, provided by the invention, realize the test of the server with the MOC card on the CP L D firmware refreshing, carry out the automatic refreshing test on the CP L D firmware through the test scripts arranged on the control machine, the server and the MOC card, do not need manual intervention, save test resources, provide test coverage at colleagues with less labor cost, enable the test to be more sufficient, and provide test efficiency.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a first schematic flow chart of the method of the present invention;
FIG. 2 is a second schematic flow chart of the method of the present invention;
FIG. 3 is a schematic diagram of the system of the present invention;
in the figure, 1-test environment configuration module, 2-test cycle number transmission module, 3-CP L D firmware upgrade test module, 3.1-test starting unit, 3.2-control machine to server power state detection unit, 3.3-control machine test number detection unit, 3.4-control machine to server power on and off unit, 3.5-server test number detection unit, 3.6-server to MOC card power monitoring unit, 3.7-MOC card test number detection unit, and 3.8-MOC card to CP L D firmware upgrade unit.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
as shown in fig. 1, the present invention provides a firmware refreshing method for testing CP L D based on MOC card, which includes the following steps:
s1, configuring a test environment, establishing network connection of a controller node, a server node and an MOC card, configuring a test script at each node, and configuring a test script for upgrading CP L D firmware on the MOC card;
s2, setting test cycle times, and transmitting the test cycle times to a test script of a controller node, a server node and an MOC card;
and S3, starting a test, wherein in each test period, the controller node, the server node and the MOC card automatically execute respective test scripts, judge whether the firmware upgrade of the CP L D in the last test period is successful, upgrade the CP L D firmware in the test period, and cyclically repeat the test period until the test cycle is completed, wherein the test period refers to the test period of the test scripts for executing the CP L D firmware upgrade of the MOC card in the process from power-on to power-off.
Example 2:
as shown in fig. 2, the present invention provides a firmware refreshing method based on MOC card test CP L D, comprising the following steps:
s1, configuring a test environment, establishing network connection of a controller node, a server node and an MOC card, configuring test scripts at each node, and configuring test scripts for CP L D firmware upgrading on the MOC card;
s2, setting test cycle times, and transmitting the test cycle times to a test script of a controller node, a server node and an MOC card;
s3, starting a test, wherein in each test period, the controller node, the server node and the MOC card automatically execute respective test scripts, verify whether the firmware upgrade of the CP L D in the last test period is successful layer by layer and refresh and upgrade the CP L D firmware in the test period, and test periods are repeated circularly until the test cycle times are finished;
the method comprises the following specific steps:
s31, starting a test;
s32, the controller node executes the server power state monitoring test script and judges whether the test times reach the cycle test times or not;
if yes, exiting the test;
if not, automatically detecting whether the power state of the server is a power-off state;
if not, returning to the step S32;
if yes, the power supply state detection script of the configuration server controls a power supply management tool PDU power supply module to close the power supply of the server, and controls the power supply management tool PDU power supply module to open the power supply of the server after waiting for the set time;
s33, configuring a server power state detection script to start a server node, and automatically starting the MOC card after the server node is started;
the server node executes the MOC card power supply monitoring test script and judges whether the test times reach the cycle test times;
if yes, exiting the test;
if not, go to step S34;
s34, automatically detecting whether the power state of the MOC card is a shutdown state, and when the power state of the MOC card is the shutdown state, shutting down the server, and returning to the step S32;
the MOC card executes the CP L D firmware refreshing test script and judges whether the test times reach the cycle test times;
if yes, exiting the test;
if not, the CP L D firmware upgrading tool is used for executing CP L D firmware upgrading, and whether the CP L D firmware upgrading tool is successfully upgraded is judged;
if yes, the MOC card is shut down after the firmware is upgraded, the step S33 is returned, an instruction is sent to the controller before the MOC card is shut down, and the step S32 is returned;
if not, recording an execution failure log, and exiting the test.
In the above embodiment 2, the current CP L D firmware version is detected, and whether the firmware upgrade of the CP L D previous period is successful is determined, which includes the following steps:
the CP L D firmware refreshing test script acquires an upper period CP L D firmware upgrading target version;
the CP L D firmware refresh test script acquires the current version of CP L D firmware;
the CP L D firmware refreshing test script judges whether the upper period CP L D firmware upgrading target version is the same as the CP L D firmware current version;
if yes, successfully upgrading the firmware in the upper period CP L D, and recording the firmware upgrading target version in the period CP L D;
if not, the firmware upgrade of the upper period CP L D fails.
The method comprises the steps that a control machine node continuously scans and monitors a power supply potential signal of a server node, meanwhile, the server node continuously scans and monitors a power supply potential signal of an MOC card, after the MOC card is shut down, a shutdown circuit low potential signal is sent to the control machine node, the control machine node is powered on after being powered off for 1 minute according to the shutdown circuit low potential signal, the control machine node controls the server node to be powered on and started, the server node controls the MOC card to be powered on and started, and a test result of refreshing CP L D firmware by the MOC card is obtained;
the specific steps of refreshing the CP L D firmware by the MOC card are that the CP L D firmware of the MOC card refreshes a test script detection test environment, an automatic script path and authority are set, the current CP L D firmware version is detected, a firmware refreshing tool is executed, a test completion instruction is sent, a shutdown action is executed, and after the test times reach the cycle test times, a test log is collected and a test result is judged.
In the above embodiment 2, the MOC card used corresponds to a sub-server provided on the server node, a plurality of MOC cards may be provided on the server node, and the server node may control the refresh test of the plurality of CP L D firmware by the plurality of MOC cards.
Example 3:
as shown in fig. 3, the present invention provides a system for testing CP L D firmware refresh based on MOC card, comprising:
the testing environment configuration module 1 is used for configuring a testing environment, establishing network connection of a controller node, a server node and an MOC card, configuring a testing script at each node, setting a server power state monitoring testing script at the controller node, and setting the MOC card power state monitoring testing script at the server node;
the test cycle number transmission module 2 is used for setting the test cycle number and transmitting the test cycle number to the test scripts of the control machine node, the server node and the MOC card;
the CP L D firmware upgrade test module 3 is used for starting a test, controlling the machine nodes, the server nodes and the MOC card to automatically execute respective test scripts in each test period, verifying whether the firmware upgrade of the CP L D last test period is successful layer by layer and refreshing and upgrading the CP L D firmware in the test period, and circularly repeating the test period until the test cycle is completed, wherein the CP L D firmware upgrade test module 3 comprises:
a test starting unit 3.1 for starting a test;
the control machine pair server power supply state detection unit 3.2 is used for executing the server power supply state monitoring test script at a control machine node and automatically detecting whether the server power supply state is a shutdown state;
a control machine test frequency detection unit 3.3, which is used for the server power supply state monitoring test script to judge whether the test frequency reaches the cycle test frequency at the control machine node;
the power supply on-off unit 3.4 of the control machine for the server is used for configuring the server power supply state detection script to control the power supply management tool to close the server power supply and control the power supply management tool to open the server power supply after waiting for the set time;
the server test frequency detection unit 3.5 is used for judging whether the test frequency reaches the cycle test frequency or not at the server node by the MOC card power supply state monitoring test script;
the server is used for configuring an MOC card power supply monitoring test script to an MOC card power supply monitoring unit 3.6, automatically detecting whether the power supply state of the MOC card is a shutdown state or not, and performing shutdown on the server when the power supply state of the MOC card is shutdown;
the MOC card test frequency detection unit 3.7 is used for configuring a CP L D firmware refreshing test script to judge whether the test frequency reaches the cycle test frequency or not on the MOC card;
and the MOC card pair CP L D firmware upgrading unit 3.8 is used for configuring a CP L D firmware refreshing test script to execute CP L D firmware upgrading through a CP L D firmware upgrading tool, and the MOC card pair CP L D firmware upgrading unit is used for powering off the MOC card after the firmware upgrading is finished and sending an instruction to the controller before the MOC card is powered off.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method for testing CP L D firmware refreshing based on MOC card is characterized by comprising the following steps:
s1, configuring a test environment, establishing network connection of a controller node, a server node and an MOC card, configuring a test script at each node, and configuring a test script for upgrading CP L D firmware on the MOC card;
s2, setting test cycle times, and transmitting the test cycle times to a test script of a controller node, a server node and an MOC card;
and S3, starting a test, wherein in each test period, the controller node, the server node and the MOC card automatically execute respective test scripts, judge whether the firmware upgrade of the CP L D in the last test period is successful, upgrade the CP L D firmware in the test period, and cyclically repeat the test period until the test cycle is completed, wherein the test period refers to the test period of the test scripts for executing the CP L D firmware upgrade of the MOC card in the process from power-on to power-off.
2. The method for firmware refreshing of CP L D based on MOC card test of claim 1, wherein in step S1, a server power state monitoring test script is set at a controller node, and the MOC card power state monitoring test script is set at a server node.
3. The method for testing the firmware refresh of the CP L D based on the MOC card according to claim 2, wherein the step S3 specifically comprises the following steps:
s31, starting a test;
s32, the controller node executes the server power state monitoring test script to automatically detect whether the server power state is a shutdown state;
if not, returning to the step S32;
if yes, the power supply state detection script of the configuration server controls the power supply management tool to close the power supply of the server, waits for the set time and controls the power supply management tool to open the power supply of the server;
s33, configuring a server power state detection script to start a server node, and automatically starting the MOC card after the server node is started;
the MOC card executes a CP L D firmware upgrade test script, executes CP L D firmware upgrade through a CP L D firmware upgrade tool, shuts down the MOC card after the firmware upgrade is completed, the server node enters a step S34, and sends an instruction to the controller before the MOC card is shut down, and the controller node returns to the step S32;
and S34, the server node executes the MOC card power supply monitoring test script to automatically detect whether the power supply state of the MOC card is a shutdown state, and when the power supply state of the MOC card is shutdown, the server is shut down, and the step S32 is returned.
4. The MOC card-based method for testing the firmware refreshing of the CP L D according to claim 3, wherein in step S32, the server power state monitoring test script of the controller node monitors the server power state, and determines whether the number of tests reaches the number of loop tests before automatically detecting the server power state;
if yes, exiting the test;
if not, continuously detecting whether the power state of the server is a power-off state;
in step S34, before detecting the power state of the MOC card, the MOC card power monitoring test script of the server node further determines whether the number of tests reaches the number of loop tests;
if yes, exiting the test;
if not, continuously detecting whether the power supply state of the MOC card is a shutdown state or not;
in step S33, before the MOC card executes the CP L D firmware upgrade, it is also determined whether the number of tests reaches the number of loop tests;
if yes, exiting the test;
if not, the CP L D firmware upgrade continues to be performed.
5. The method for testing the firmware refresh of the CP L D based on the MOC card as claimed in claim 4, wherein the step S33, after the MOC card performs the CP L D firmware upgrade, further comprises:
judging whether the CP L D firmware upgrading tool is upgraded successfully;
if yes, continuing to shut down the MOC card and sending an instruction to the control machine node;
if not, recording an execution failure log, and exiting the test.
6. The method for testing the firmware refresh of the CP L D based on the MOC card as claimed in claim 4, wherein before the MOC card performs the firmware upgrade in step S33, the method further comprises:
detecting the current CP L D firmware version, and judging whether the firmware upgrade of the CP L D of the last period is successful;
if yes, the CP L D firmware upgrade is continuously executed;
if yes, recording an upgrade failure log, and exiting the test.
7. The method for testing the firmware refreshing of the CP L D based on the MOC card as claimed in claim 6, wherein the current CP L D firmware version is detected, and whether the firmware upgrading of the CP L D in the last period is successful is judged, the specific steps are as follows:
the CP L D firmware refreshing test script acquires an upper period CP L D firmware upgrading target version;
the CP L D firmware refresh test script acquires the current version of CP L D firmware;
the CP L D firmware refreshing test script judges whether the upper period CP L D firmware upgrading target version is the same as the CP L D firmware current version;
if yes, successfully upgrading the firmware in the upper period CP L D, and recording the firmware upgrading target version in the period CP L D;
if not, the firmware upgrade of the upper period CP L D fails.
8. A system for testing CP L D firmware refreshing based on MOC card, comprising:
the system comprises a test environment configuration module (1) and an MOC card, wherein the test environment configuration module is used for configuring a test environment, establishing network connection of a controller node, a server node and the MOC card, configuring a test script at each node, and configuring the test script for CP L D firmware upgrading on the MOC card;
the test cycle number transmission module (2) is used for setting the test cycle number and transmitting the test cycle number to the test scripts of the control machine node, the server node and the MOC card;
and the CP L D firmware upgrading test module (3) is used for starting a test, controlling the machine nodes, the server nodes and the MOC card to automatically execute respective test scripts in each test period, judging whether the firmware upgrading of the CP L D in the last test period is successful, upgrading the CP L D firmware in the test period, and circularly repeating the test period until the test cycle is completed, wherein the test period refers to the test period of executing the test scripts of the CP L D firmware upgrading of the MOC card in the process from power on to power off.
9. The MOC card test CP L D firmware refreshing based system according to claim 8, wherein the test environment configuration module (1) is further configured to set a server power state monitoring test script at a control machine node, and to set the MOC card power state monitoring test script at the server node.
10. The MOC card-based system for testing firmware refresh of CP L D, according to claim 8, wherein the CP L D firmware upgrade test module (3) comprises:
a test start unit (3.1) for starting a test;
the control machine is to the detection unit (3.2) of the power state of the server, is used for carrying out the server power state at the node of the control machine and monitoring the test script, detect the power state of the server is the shutdown state automatically;
a testing frequency detection unit (3.3) of the control machine, which is used for the server power supply state monitoring test script to judge whether the testing frequency reaches the cycle testing frequency at the control machine node;
the power supply on-off unit (3.4) of the server is controlled by the controller, and is used for configuring the server power supply state detection script to control the power supply management tool to close the server power supply, waiting for the set time and controlling the power supply management tool to open the server power supply;
the server test frequency detection unit (3.5) is used for judging whether the test frequency reaches the cycle test frequency or not at the server node by the MOC card power supply state monitoring test script;
the server is used for configuring an MOC card power supply monitoring test script to an MOC card power supply monitoring unit (3.6) to automatically detect whether the power supply state of the MOC card is a shutdown state or not, and when the power supply state of the MOC card is shutdown, the server is shut down;
the MOC card test frequency detection unit (3.7) is used for configuring a CP L D firmware refreshing test script to judge whether the test frequency reaches the cycle test frequency or not on the MOC card;
and the MOC card pair CP L D firmware upgrading unit (3.8) is used for configuring a CP L D firmware refreshing test script to execute CP L D firmware upgrading through a CP L D firmware upgrading tool, and the MOC card pair CP L D firmware upgrading unit is used for powering off the MOC card after the firmware upgrading is finished and sending an instruction to the controller before the MOC card is powered off.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010229921.0A CN111475406B (en) | 2020-03-27 | 2020-03-27 | MOC card based method and system for testing CPLD firmware refreshing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010229921.0A CN111475406B (en) | 2020-03-27 | 2020-03-27 | MOC card based method and system for testing CPLD firmware refreshing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111475406A true CN111475406A (en) | 2020-07-31 |
CN111475406B CN111475406B (en) | 2022-07-19 |
Family
ID=71747864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010229921.0A Active CN111475406B (en) | 2020-03-27 | 2020-03-27 | MOC card based method and system for testing CPLD firmware refreshing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111475406B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943643A (en) * | 2017-11-28 | 2018-04-20 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware DC test methods and system |
CN108089961A (en) * | 2017-11-28 | 2018-05-29 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware reboot test methods and system |
-
2020
- 2020-03-27 CN CN202010229921.0A patent/CN111475406B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107943643A (en) * | 2017-11-28 | 2018-04-20 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware DC test methods and system |
CN108089961A (en) * | 2017-11-28 | 2018-05-29 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware reboot test methods and system |
Also Published As
Publication number | Publication date |
---|---|
CN111475406B (en) | 2022-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109510742B (en) | Server network card remote test method, device, terminal and storage medium | |
CN103106128A (en) | Cold startup switch machine test method and cold starting switch machine test system | |
CN109254783A (en) | A kind of server system installation method, device, equipment and readable storage medium storing program for executing | |
CN104268041A (en) | Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display | |
CN112231162B (en) | Startup test system and startup test method | |
CN109067416A (en) | Method for realizing hot plug and start of SIM card and intelligent hardware | |
CN113746501B (en) | Test method for evaluating high-speed power line carrier HPLC deepening application function | |
CN111338698A (en) | Method and system for accurately booting server by BIOS (basic input output System) | |
CN110767259A (en) | Power failure pressure test method for flash memory device | |
CN112559266B (en) | Solid state disk testing method and device, readable storage medium and electronic equipment | |
CN111475406B (en) | MOC card based method and system for testing CPLD firmware refreshing | |
CN113590401B (en) | CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium | |
CN102819474B (en) | Test method and device for system operation | |
CN114138312A (en) | Upgrade test method, device, electronic equipment and computer readable storage medium | |
CN113434347B (en) | Power-off automatic test system and method for mobile terminal | |
CN115580550A (en) | Network card stability testing method, device, equipment and storage medium | |
CN112463494B (en) | Large-batch node AC (alternating current) cycle test method based on intelligent PDU (protocol data Unit) | |
CN117074915B (en) | Board card soft and hard restarting test method based on characteristic keyword monitoring technology | |
CN111274075B (en) | Method and system for automatically testing random power failure of BOX (BOX) host | |
CN114461458A (en) | Server memory test method, system, terminal and storage medium | |
CN112463471A (en) | Method and device for testing abnormal power-on and power-off BMC stability of server | |
CN111752773B (en) | Method and device for realizing power-on self-check verification of clustered system | |
CN113760750B (en) | Intelligent device testing method and device, electronic device and storage medium | |
TWI759926B (en) | System and method for power on testing | |
CN112564961B (en) | Automatic test method, system, equipment and medium for communication module PPP dialing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |