CN113204486A - TCM module function stability testing method, device and system - Google Patents
TCM module function stability testing method, device and system Download PDFInfo
- Publication number
- CN113204486A CN113204486A CN202110552726.6A CN202110552726A CN113204486A CN 113204486 A CN113204486 A CN 113204486A CN 202110552726 A CN202110552726 A CN 202110552726A CN 113204486 A CN113204486 A CN 113204486A
- Authority
- CN
- China
- Prior art keywords
- test
- module
- tcm
- functional stability
- tcm module
- 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.)
- Pending
Links
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/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- 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
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a method, a device and a system for testing the functional stability of a TCM module, wherein a test environment is configured at a test end; the control end monitors the on-off state of the test end; and when the test end is monitored to be in a power-off state, controlling the test end to be powered on, and automatically executing the function test of the TCM module after the test end is powered on. According to the invention, the control end controls the automatic test of the startup and shutdown cycle of the test end, the test end is triggered to be started, and the test end is ensured to automatically perform the function test of the TCM module after being started every time, manual execution is not needed, the test efficiency is greatly improved, and the stability test of the TCM module is effectively ensured.
Description
Technical Field
The invention relates to the field of TCM module testing, in particular to a method, a device and a system for testing the functional stability of a TCM module.
Background
With the rapid development of information technology, the form of information security is more and more severe, cases of information data leakage are more and more serious, and domestic and foreign matters also more and more attach importance to the information data security, a server is a carrier of information data, a TCM Module (Trusted Cryptography Module) is a protection barrier of information data security, and the stability of the TCM Module at the server side is particularly important.
The traditional test of the TCM module at the server end is a single test of installing a driver and performing a basic function test after manually entering an operating system, the test efficiency is low, the execution times are limited, and the stability performance test of the function of the TCM module after each startup and shutdown execution cannot be powerfully guaranteed.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method, an apparatus and a system for testing functional stability of a TCM module.
The technical scheme of the invention is as follows: a method for testing functional stability of a TCM module comprises the following steps:
configuring a test environment at a test end;
the control end monitors the on-off state of the test end;
and when the test end is monitored to be in a power-off state, controlling the test end to be powered on, and automatically executing the function test of the TCM module after the test end is powered on.
Further, configuring a test environment at the test end, specifically: installing a TCM module, installing a system, copying a TCM module driver and a test tool to the system, and setting the test times.
Further, the method comprises the following steps:
after the function test of the TCM module is executed, if the test is successful and the test frequency does not reach the preset test frequency, the test end is triggered to be shut down, otherwise, the test end is not triggered to be shut down.
Further, the method comprises the following steps:
and after the test is finished, saving the test result to a log file.
Further, the method comprises the following steps:
and when the test fails, outputting a test failure prompt.
The technical scheme of the invention also comprises a TCM module functional stability testing device, which comprises a control end module and a testing end module;
the control end module comprises a control end module and a control end module,
a state monitoring module: monitoring the on-off state of the test terminal;
a starting command sending module: sending a starting command to the test end to trigger the test end to start;
the test end module comprises a test end module and a test end module,
a starting command receiving module: receiving a starting-up command and executing a starting-up operation;
a test module: and executing the TCM module function test operation.
Further, the test end module further comprises:
test number of times detection module: detecting whether the test times reach preset test times or not;
a shutdown trigger module: and triggering the test end to shut down when the test is successful and the preset test frequency is not reached.
Further, the test end module also comprises,
a log recording module: and recording the test result in a log form.
Further, the testing end also comprises a testing terminal,
a failure prompt module: and when the test fails, outputting a test failure prompt.
The technical scheme of the invention also comprises a TCM module functional stability test system which comprises a test end and a control end;
the test end is configured with the test end module;
the control end is configured with the control end module.
According to the method, the device and the system for testing the functional stability of the TCM module, the control end controls the automatic test of the startup and shutdown cycle of the test end, the test end is triggered to be started, the test end is ensured to automatically perform the functional test of the TCM module after being started each time, manual execution is not needed, the test efficiency is greatly improved, and the stability test of the TCM module is effectively ensured.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a block diagram illustrating a second embodiment of the present invention;
fig. 3 is a schematic block diagram of three structures according to the embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings by way of specific examples, which are illustrative of the present invention and are not limited to the following embodiments.
Example one
As shown in fig. 1, the present embodiment provides a method for testing functional stability of a TCM module, including the following steps:
s1, configuring a test environment at the test end;
s2, the control end monitors the on-off state of the test end;
and S3, when the test terminal is monitored to be in the power-off state, controlling the test terminal to be powered on, and automatically executing the TCM module function test after the test terminal is powered on.
It should be noted that, after the functional test of the TCM module is completed, if the test is successful, the test end is triggered to be powered off, after the control end detects that the test end is powered off, the control end triggers the test end to be powered on again, and after the test end is powered on, the functional test of the TCM module is automatically executed until the test frequency is reached. Wherein if the test fails, the test cycle is tripped.
For further explanation of the present invention, a specific implementation method based on the principle of the present invention is provided below in combination with the above steps. The method comprises the following steps:
step one, installing a TCM module to a test end and carrying out system installation;
it should be noted that the installed system may be a Linux system.
And step two, copying the TCM module driver and the test tool to the system.
Step three, setting the test times;
if the test times are set to 500 times according to the requirements, the test cycle is ended after the test times are 500 times of success.
And step four, executing a test tool, and automatically carrying out TCM module drive installation.
Step five, after the TCM module driver is installed, automatically performing basic function test, and storing a test result into a log file;
it should be noted that, if the test is successful, whether the test times reach the preset test times is detected after the test is completed, and if the test times do not reach the preset test times, the test end is triggered to shut down; otherwise, the test end is not triggered to be shut down.
And if the test fails, outputting a test failure prompt, further jumping out of the current cycle, and stopping the test.
Step five, the control end monitors the startup and shutdown state of the test end, if the test end is in the shutdown state, a startup command is sent to the test end, and the test end starts the machine and repeats the step four and the step five until one cycle is completed;
it should be noted that the control end uses an IPMI (Intelligent Platform Management Interface) command to detect the on/off state of the test end, and specifically, the detection can be performed every 10 s.
Example two
As shown in fig. 2, on the basis of the first embodiment, the present embodiment provides a TCM module function stability testing apparatus, which includes a control end module 101 and a test end module 102.
The control end module 101 includes the following functional modules:
the state monitoring module 101-1: monitoring the on-off state of the test terminal;
the startup command sending module 101-2: and sending a starting command to the test end to trigger the test end to start.
When the state monitoring module 101-1 monitors that the test end is in the shutdown state, the startup command sending module 101-2 sends a startup command to the test end to trigger the test end to start up.
The test end module 102 includes the following functional modules:
the boot command receiving module 102-1: receiving a starting-up command and executing a starting-up operation;
test module 102-2: executing TCM module function test operation;
the test number detection module 102-3: detecting whether the test times reach preset test times or not;
shutdown trigger module 102-4: triggering the test end to shut down when the test is successful and the preset test times are not reached;
logging module 102-5: recording the test result in a log form;
failure prompt module 102-6: and when the test fails, outputting a test failure prompt.
The test module 102-2 executes the TCM module function test operation, specifically, calls a TCM module test tool, and installs a TCM module driver to implement the function test.
EXAMPLE III
As shown in fig. 3, the present embodiment provides a system for testing functional stability of TCM modules, which includes a control terminal 1 and a test terminal 2, wherein the control terminal 1 configures the control terminal module 101 of the second embodiment, and the test terminal 2 configures the test terminal module 102 of the second embodiment.
And the control end 1 and the test end 2 are communicated to realize the function cycle test of the test end 2TCM module. It should be noted that, when the system is arranged, the control end 1 and the test end 2 are connected to the same network, and the BMC-IP of the test end 2 is obtained, and the control end 1 obtains the system IP, and can ping the BMC-IP of the test end 2, so as to implement subsequent communication between the control end 1 and the test end 2 and monitoring of the on/off state of the test end 2 by the control end 1.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A method for testing functional stability of a TCM module is characterized by comprising the following steps:
configuring a test environment at a test end;
the control end monitors the on-off state of the test end;
and when the test end is monitored to be in a power-off state, controlling the test end to be powered on, and automatically executing the function test of the TCM module after the test end is powered on.
2. The method for testing functional stability of a TCM module according to claim 1, wherein a test environment is configured at the test end, specifically: installing a TCM module, installing a system, copying a TCM module driver and a test tool to the system, and setting the test times.
3. The TCM module functional stability testing method of claim 2, further comprising the steps of:
after the function test of the TCM module is executed, if the test is successful and the test frequency does not reach the preset test frequency, the test end is triggered to be shut down, otherwise, the test end is not triggered to be shut down.
4. The TCM module functional stability testing method of claim 3, further comprising the steps of:
and after the test is finished, saving the test result to a log file.
5. The TCM module functional stability testing method according to claim 4, further comprising the steps of:
and when the test fails, outputting a test failure prompt.
6. A TCM module functional stability testing device is characterized by comprising a control end module and a testing end module;
the control end module comprises a control end module and a control end module,
a state monitoring module: monitoring the on-off state of the test terminal;
a starting command sending module: sending a starting command to the test end to trigger the test end to start;
the test end module comprises a test end module and a test end module,
a starting command receiving module: receiving a starting-up command and executing a starting-up operation;
a test module: and executing the TCM module function test operation.
7. The TCM module functional stability testing device of claim 6, wherein the test side module further comprises:
test number of times detection module: detecting whether the test times reach preset test times or not;
a shutdown trigger module: and triggering the test end to shut down when the test is successful and the preset test frequency is not reached.
8. The TCM module functional stability testing device of claim 7, wherein the test side module further comprises,
a log recording module: and recording the test result in a log form.
9. The TCM module functional stability testing device of claim 8, wherein the testing terminal further comprises,
a failure prompt module: and when the test fails, outputting a test failure prompt.
10. A TCM module functional stability test system is characterized by comprising a test end and a control end;
the test end is provided with the test end module of any one of claims 6-9;
the control terminal is provided with the control terminal module of claim 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110552726.6A CN113204486A (en) | 2021-05-20 | 2021-05-20 | TCM module function stability testing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110552726.6A CN113204486A (en) | 2021-05-20 | 2021-05-20 | TCM module function stability testing method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113204486A true CN113204486A (en) | 2021-08-03 |
Family
ID=77032108
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110552726.6A Pending CN113204486A (en) | 2021-05-20 | 2021-05-20 | TCM module function stability testing method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113204486A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101266571A (en) * | 2008-04-22 | 2008-09-17 | 中国科学院软件研究所 | Credible password module test case creation method and its test system |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
CN107943643A (en) * | 2017-11-28 | 2018-04-20 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware DC test methods and system |
CN108804269A (en) * | 2018-06-11 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of system and method controlling test RAID board stability based on domain |
-
2021
- 2021-05-20 CN CN202110552726.6A patent/CN113204486A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101266571A (en) * | 2008-04-22 | 2008-09-17 | 中国科学院软件研究所 | Credible password module test case creation method and its test system |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
CN107943643A (en) * | 2017-11-28 | 2018-04-20 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware DC test methods and system |
CN108804269A (en) * | 2018-06-11 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of system and method controlling test RAID board stability based on domain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103051490A (en) | Method for carrying out startup and shutdown testing on blade server | |
US20170060671A1 (en) | Anomaly recovery method for virtual machine in distributed environment | |
CN102571498B (en) | Fault injection control method and device | |
EP2892274B1 (en) | Fault recovery method of operation and maintenance channel and network management terminal | |
CN106060859A (en) | AP (Access Point) fault detection and restoration method and device | |
CN101207519A (en) | Version server, operation maintenance unit and method for restoring failure | |
CN111367743A (en) | Method and system for diagnosing power failure of server in cycle restart test process | |
CN107528705B (en) | Fault processing method and device | |
CN105630647A (en) | Equipment detection method and detection equipment | |
CN108762886B (en) | Fault detection recovery method and system for virtual machine | |
CN113204486A (en) | TCM module function stability testing method, device and system | |
CN107426755B (en) | Base station problem troubleshooting method and device, computer readable storage medium and computer equipment | |
CN109412819A (en) | Method and device for warning device power down | |
CN104898070A (en) | Power supply test method and device | |
CN101930382A (en) | Method, circuit and terminal for starting terminal with memory | |
CN110795293B (en) | Method, system and device for testing soft shutdown of server | |
CN102420710A (en) | Method for positioning fault of server cluster system | |
CN113687992B (en) | Method for electrifying and electrifying test of airborne equipment | |
CN108872839A (en) | A kind of contactor is attracted the detection method of failure, apparatus and system | |
CN113687993A (en) | Onboard equipment power-on and power-off test system | |
CN107179911A (en) | A kind of method and apparatus for restarting management engine | |
CN101567808A (en) | Method for guarding network management system and the network management system | |
CN104348676A (en) | Link detection method and device based on operation administration and maintenance | |
CN107423113B (en) | Method for managing virtual equipment, out-of-band management equipment and standby virtual equipment | |
CN107920347B (en) | Data processing method, system and equipment of terminal equipment |
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 |