CN111475406B - MOC card based method and system for testing CPLD firmware refreshing - Google Patents

MOC card based method and system for testing CPLD firmware refreshing Download PDF

Info

Publication number
CN111475406B
CN111475406B CN202010229921.0A CN202010229921A CN111475406B CN 111475406 B CN111475406 B CN 111475406B CN 202010229921 A CN202010229921 A CN 202010229921A CN 111475406 B CN111475406 B CN 111475406B
Authority
CN
China
Prior art keywords
test
server
cpld
moc card
firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010229921.0A
Other languages
Chinese (zh)
Other versions
CN111475406A (en
Inventor
张江山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010229921.0A priority Critical patent/CN111475406B/en
Publication of CN111475406A publication Critical patent/CN111475406A/en
Application granted granted Critical
Publication of CN111475406B publication Critical patent/CN111475406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention provides a method and a system for testing CPLD firmware refreshing based on an MOC card, wherein the method comprises the following steps: 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 a CPLD (complex programmable logic device) firmware on the MOC card; setting the test cycle times, and transmitting the test cycle times to the test scripts of the control machine node, the server node and the MOC card; 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 CPLD in the last test period is successful, upgrade the firmware of the CPLD in the test period, and repeat the test period circularly until the test cycle is completed; the test period refers to the test period of the test script for executing the firmware upgrade of the CPLD when the MOC card is started to shut down.

Description

MOC card based CPLD firmware refreshing test method and system
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a method and a system for testing CPLD 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 CPLD component is required to be upgraded or downgraded, for a tester, testing whether Bug exists in a version of CPLD firmware is a test that needs to be done, and the test needs to be performed after the CPLD firmware is refreshed, while the CPLD is a component for server power management, and the existing test is basically manual test.
The MOC card is a novel product, which is equivalent to a sub server installed on a server, and has a larger difference from the traditional server, and for a CPLD component storing the MOC card server, an effective automatic test method is further lacked, and the following disadvantages mainly exist: 1. a large amount of test resources are consumed, and the time of a large amount of test personnel is occupied; 2. the number of times of testing is less, the problems existing in firmware refreshing can not be fully exposed, and the testing is insufficient.
Therefore, it is very necessary to provide a method and a system for testing CPLD firmware refresh based on MOC card to solve the above-mentioned drawbacks in the prior art.
Disclosure of Invention
Aiming at the defects that the conventional server containing the MOC card in the prior art lacks a limited automatic test method for refreshing the CPLD firmware, wastes test resources and cannot fully expose the problem, the invention provides a method and a system for testing the CPLD firmware refreshing based on the MOC card, so as to solve the technical problem.
In a first aspect, the present invention provides a method for testing CPLD firmware refresh based on an 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 a CPLD (complex programmable logic device) 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 controller node, the server node and the MOC card automatically execute respective test scripts, judge whether the firmware upgrade of the CPLD in the last test period is successful, upgrade the CPLD firmware in the test period, and cyclically repeat the test period until the test cycle is completed; the test period refers to a test period of a test script for executing the CPLD firmware upgrade by the MOC card in the process from startup to shutdown. The test cycle times are transmitted to the test scripts of the control machine node, the server node and the MOC card through user setting, and the test cycle tests can be directly set in respective test scripts.
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 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 CPLD firmware refreshing test script, executes CPLD firmware upgrading through the CPLD firmware upgrading tool, shuts down the MOC card after the firmware upgrading is finished, the server node enters the step S34, and sends an instruction to the controller before the MOC card is shut down, and the step S32 is returned;
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. 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 power-off is conducted according to the shutdown circuit low potential signal for a set time period, the server node controls the MOC card to be powered on and started, and the server node controls the MOC card to be powered on and started to obtain a test result of the MOC card for refreshing a CPLD firmware; and the MOC card is shut down, the cycle is returned until the test times reach the test cycle times, and the result is output.
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 CPLD firmware upgrade, it is also determined whether the test frequency reaches the cycle test frequency;
if yes, the test is quitted;
if not, continuously executing the firmware upgrade of the CPLD.
Further, in step S33, after the MOC card executes the CPLD firmware upgrade, the method further includes:
judging whether the upgrading of the CPLD firmware upgrading tool is successful;
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 CPLD firmware version, and judging whether the CPLD firmware in the upper period is successfully upgraded;
if yes, continuing to execute the firmware upgrade of the CPLD;
if yes, recording an upgrade failure log, and exiting the test.
Further, detecting the current CPLD firmware version, and judging whether the CPLD firmware upgrade in the previous period is successful; the method comprises the following specific steps:
the CPLD firmware refreshing test script acquires an upper-period CPLD firmware upgrading target version;
the CPLD firmware refreshing test script acquires the current version of the CPLD firmware;
judging whether the CPLD firmware upgrading target version of the upper period is the same as the current version of the CPLD firmware by the CPLD firmware refreshing test script;
if yes, successfully upgrading the CPLD firmware in the previous period, and recording the upgrading target version of the CPLD firmware in the current period;
if not, the CPLD firmware upgrading in the upper period 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 CPLD firmware refreshing based on MOC card, including:
the system comprises a test environment configuration module, a test environment updating 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 on each node, and configuring the test script for updating CPLD firmware 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;
the CPLD 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 CPLD in the last test period is successful, upgrading the CPLD firmware in the test period, and circularly repeating the test period until the test cycle is completed; the test period refers to a test period of a test script for executing the CPLD firmware upgrade by the MOC card in the process from startup to shutdown.
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 CPLD firmware upgrade test 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 control machine is used for controlling the server power supply powering-on and powering-off units and is used for configuring the server power supply state detection script to control the power supply management tool to turn off the server power supply and control the power supply management tool to turn on 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 CPLD 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 is used for upgrading the CPLD firmware, configuring a CPLD firmware refreshing test script, executing the CPLD firmware upgrading through a CPLD firmware upgrading tool, shutting down the MOC card after the firmware upgrading is finished, and sending an instruction to the controller before the MOC card is shut down.
The beneficial effect of the invention is that,
the method and the system for testing the refreshing of the CPLD firmware based on the MOC card realize the testing of the server with the MOC card on the refreshing of the CPLD firmware, carry out automatic refreshing testing on the CPLD firmware through the test scripts arranged on the control machine, the server and the MOC card, do not need manual intervention, save testing resources, provide testing coverage at colleagues with less labor cost, enable the testing to be more sufficient and provide testing 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 transfer module; the 3-CPLD firmware upgrading test module; 3.1-a test start unit; 3.2-the control machine detects the unit to the power state of the server; 3.3-testing times detecting unit of controller; 3.4-controlling the power-on and power-off unit of the server power supply; 3.5-server testing times detecting element; 3.6-the server monitors the power supply of the MOC card; 3.7-MOC card test frequency detection unit; and 3.8-MOC card is used for upgrading the CPLD firmware.
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 obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
Example 1:
as shown in fig. 1, the present invention provides a method for testing CPLD firmware refreshing based on MOC card, 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 a CPLD (complex programmable logic device) 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 controller node, the server node and the MOC card automatically execute respective test scripts, judge whether the firmware upgrade of the CPLD in the last test period is successful, upgrade the CPLD firmware in the test period, and cyclically repeat the test period until the test cycle is completed; the test period refers to a test period of a test script for executing the CPLD firmware upgrade by the MOC card in the process from startup to shutdown.
Example 2:
as shown in fig. 2, the present invention provides a method for testing CPLD firmware refreshing based on MOC card, 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 a CPLD (complex programmable logic device) firmware on the MOC card; a server power state monitoring test script is also arranged at the node of the control machine, and an MOC card power state monitoring test script is arranged at the node of the server;
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 last test period of the CPLD is successful layer by layer and refresh and upgrade the CPLD 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, controlling the machine node to execute a server power state monitoring test script and judging whether the test times reach the cycle test times;
if yes, exiting the test;
if not, automatically detecting whether the power state of the server is a shutdown 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 CPLD firmware refreshing test script and judges whether the test times reach the cycle test times;
if yes, exiting the test;
if not, executing the CPLD firmware upgrading through the CPLD firmware upgrading tool, and judging whether the CPLD firmware upgrading tool is successfully upgraded;
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 CPLD firmware version is detected, and whether the CPLD firmware upgrade of the previous cycle is successful is determined; the method comprises the following specific steps:
the CPLD firmware refreshing test script acquires an upper-period CPLD firmware upgrading target version;
the CPLD firmware refreshing test script acquires the current version of the CPLD firmware;
judging whether the CPLD firmware upgrading target version of the upper period is the same as the current version of the CPLD firmware by the CPLD firmware refreshing test script;
if yes, successfully upgrading the CPLD firmware in the previous period, and recording the upgrading target version of the CPLD firmware in the current period;
if not, the CPLD firmware upgrading in the upper period 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 the MOC card for refreshing a CPLD firmware is obtained; the MOC card is shut down, circulation is returned until the test times reach the test circulation times, and a result is output;
the MOC card refreshes the CPLD firmware specifically: the method comprises the steps of refreshing a test script detection test environment by a CPLD firmware of an MOC card, setting an automatic script path and authority, detecting a current CPLD firmware version, executing a firmware refreshing tool, sending a test completion instruction, executing shutdown action, collecting a test log when the test times reach the cycle test times, and judging a test result.
In the above embodiment 2, the MOC card used corresponds to a sub-server disposed on the server node, a plurality of MOC cards may be disposed on the server node, and the server node may control the refresh test of the plurality of CPLD firmware through the plurality of MOC cards.
Example 3:
as shown in fig. 3, the present invention provides a system for testing CPLD firmware refreshing based on MOC card, including:
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 CPLD 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, verifying whether the firmware upgrading of the CPLD in the last test period is successful layer by layer and refreshing and upgrading the CPLD firmware in the test period, and circularly repeating the test period until the test cycle is completed; the CPLD 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 judging whether the test frequency reaches the cycle test frequency or not at the control machine node by the server power supply state monitoring test script;
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 CPLD firmware refreshing test script to judge whether the test frequency reaches the cycle test frequency on the MOC card;
and the MOC card is used for configuring a CPLD firmware upgrading unit 3.8, executing CPLD firmware upgrading by a CPLD firmware upgrading tool through a CPLD firmware refreshing test script, shutting down the MOC card after the firmware upgrading is finished, and sending an instruction to the controller before the MOC card is shut down.
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 (6)

1. A method for testing CPLD 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 a CPLD (complex programmable logic device) firmware on the MOC card; setting a server power state monitoring test script at a node of a control machine, and setting an MOC card power state monitoring test script at the node of the server;
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, controlling the machine node, the server node and the MOC card to automatically execute respective test scripts in each test period, judging whether the firmware in the last test period of the CPLD is successfully upgraded, upgrading the firmware of the CPLD in the test period, and circularly repeating the test period until the test cycle is completed; the test period refers to the test period of the test script for executing the upgrading of the CPLD firmware by the MOC card in the process from starting to shutting down; the method comprises the following specific steps:
s31, starting a test;
s32, controlling the machine node to execute a server power state monitoring test script and automatically detecting whether the server power state is a shutdown state or not;
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 the CPLD firmware upgrading test script, the CPLD firmware upgrading is executed through the CPLD firmware upgrading tool, the MOC card is shut down after the firmware upgrading is completed, the server node enters the step S34, and an instruction is sent 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.
2. The method for testing CPLD firmware refreshing based on MOC card according to claim 1, wherein in step S32, the server power state of the controller node monitors the test script, and before automatically detecting the server power state, it is further determined whether the test times reach the cycle test times;
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 times of the cycle test;
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 CPLD firmware upgrade, it is also determined whether the number of tests reaches the number of loop tests;
if yes, exiting the test;
if not, continuously executing the firmware upgrade of the CPLD.
3. The method for testing CPLD firmware refresh based on MOC card according to claim 2, wherein in step S33, after the MOC card performs CPLD firmware upgrade, the method further comprises:
judging whether the upgrading of the CPLD firmware upgrading tool is successful;
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.
4. The method for testing CPLD firmware refresh based on MOC card according to claim 2, wherein before the MOC card performs firmware upgrade in step S33, the method further comprises:
detecting the current CPLD firmware version, and judging whether the CPLD firmware upgrade in the upper period is successful;
if yes, continuing to execute the firmware upgrade of the CPLD;
if yes, recording an upgrade failure log, and exiting the test.
5. The MOC card-based CPLD firmware refreshing method according to claim 4, characterized in that the current CPLD firmware version is detected, and whether the last cycle CPLD firmware upgrade is successful is judged; the method comprises the following specific steps:
the CPLD firmware refreshing test script acquires an upper-period CPLD firmware upgrading target version;
the CPLD firmware refreshing test script acquires the current version of the CPLD firmware;
judging whether the upgrading target version of the CPLD firmware in the upper period is the same as the current version of the CPLD firmware by the CPLD firmware refreshing test script;
if yes, successfully upgrading the CPLD firmware in the previous period, and recording the upgrading target version of the CPLD firmware in the current period;
if not, the CPLD firmware upgrading in the upper period fails.
6. A system for testing CPLD firmware refreshing based on MOC card is characterized by comprising:
the system comprises a test environment configuration module (1) and an MOC (media oriented control) 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 on each node, and configuring a test script for upgrading CPLD (complex programmable logic device) firmware on the MOC card; the testing environment configuration module (1) is also used for setting a server power supply state monitoring test script at a node of the control machine and setting an MOC card power supply state monitoring test script at the node of the server;
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 CPLD 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 CPLD in the last test period is successful, upgrading the CPLD firmware in the test period, and circularly repeating the test period until the test cycle is completed; the test period refers to the test period of the test script for executing the upgrading of the CPLD firmware by the MOC card in the process from starting to shutting down; the CPLD firmware upgrade test module (3) comprises:
a test start unit (3.1) for starting a test;
the controller-to-server power state detection unit (3.2) is used for executing the server power state monitoring test script at a controller node and automatically detecting whether the server power state is a shutdown state;
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;
a server test frequency detection unit (3.5) 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 CPLD 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 is used for upgrading the CPLD firmware, configuring a CPLD firmware refreshing test script, executing the CPLD firmware upgrading through a CPLD firmware upgrading tool, shutting down the MOC card after the firmware upgrading is finished, and sending an instruction to the controller before the MOC card is shut down.
CN202010229921.0A 2020-03-27 2020-03-27 MOC card based method and system for testing CPLD firmware refreshing Active CN111475406B (en)

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 CN111475406A (en) 2020-07-31
CN111475406B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN111475406A (en) 2020-07-31

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
CN109587005B (en) Connection detection method and device, computer equipment and readable storage medium
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN113746501B (en) Test method for evaluating high-speed power line carrier HPLC deepening application function
CN104268041A (en) Automatic closed loop test method for frequent startup and shutdown of vehicle-mounted display
CN110767259A (en) Power failure pressure test method for flash memory device
CN111176736B (en) Server mainboard power-on and power-off test method and system
CN111475406B (en) MOC card based method and system for testing CPLD firmware refreshing
CN111858201A (en) BMC (baseboard management controller) comprehensive test method, system, terminal and storage medium
CN112559266B (en) Solid state disk testing method and device, readable storage medium and electronic equipment
CN104898070B (en) Power supply test method and device
CN105183598A (en) Reliability test method of server complete machine in cloud computing ecosystem
CN116087752A (en) Chip testing method, system, device and medium
CN115580550A (en) Network card stability testing method, device, equipment and storage medium
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN107870840A (en) The multiple test instruction automatic execution methods of server based on IPMI
CN108347521A (en) A kind of data back up method and device
CN114461458A (en) Server memory test method, system, terminal and storage medium
CN108829548A (en) A kind of multinode type restarts test method and system
CN104660418A (en) Network awakening control system and method
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
CN113434347B (en) Power-off automatic test system and method for mobile terminal
CN114328044B (en) AIC+box topology testing method, device and system

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