CN110471809A - A kind of method and test device of test - Google Patents
A kind of method and test device of test Download PDFInfo
- Publication number
- CN110471809A CN110471809A CN201910703896.2A CN201910703896A CN110471809A CN 110471809 A CN110471809 A CN 110471809A CN 201910703896 A CN201910703896 A CN 201910703896A CN 110471809 A CN110471809 A CN 110471809A
- Authority
- CN
- China
- Prior art keywords
- test
- server
- measured
- operating system
- current operation
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- 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/3409—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 for performance assessment
- G06F11/3414—Workload generation, e.g. scripts, playback
-
- 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
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
Abstract
The application is suitable for the technical field of server test, provide a kind of method and device of test, it include: to obtain the baseboard management controller IP address of server to be measured, and obtain at least one operating system image file and test application installation file corresponding with the operating system image file;At least one described operating system image file is sequentially installed to the server to be measured by the baseboard management controller;The corresponding test application installation file of current operation system is installed into test application in the current operation system;The test result that the server to be measured is sent is received, and carries out the test of next operating system to the server to be measured, until completing test of the server to be measured under all operating systems.The application realizes that carrying out the automatic test job under several operation systems to server improves the testing efficiency of server to be measured compared with traditional technology through the above way.
Description
Technical field
The application belongs to the technical field of server test more particularly to a kind of method and device of test, computer can
Read storage medium.
Background technique
In recent years, develop day using the technology of new generation such as cloud computing, artificial intelligence and Internet of Things as the information science of representative
Crescent is different, and along with the continuous development of science and technology, also increasing for the demand of server, server industries are also to be in recent years
Thriving gesture.Every new technology also improves server performance while require, and tests energy band to server performance
Carry out certain challenge, and in current server testing field, due to needing type of operating system to be tested various, each behaviour
It requires as system by pressure stability and compatibility test, testing time and larger workload, when project amount is more
When, it is be easy to cause the conflict and waste of equipment, the extended testing system time increases the R&D cycle of product, leads to current server
Measuring technology testing efficiency is lower.
Apply for content
In view of this, the embodiment of the present application provides a kind of method and device of test, server test effect can solve
The low technical problem of rate.
The first aspect of the embodiment of the present application provides a kind of method of test, comprising:
Obtain the baseboard management controller IP address of server to be measured, and obtain at least one operating system image file with
And test application installation file corresponding with the operating system image file;
By the baseboard management controller by least one described operating system image file be sequentially installed to it is described to
Survey server;
Using the corresponding test application installation file of the current operation system of the server to be measured in the current operation
Test application is installed in system;The test application is used to carry out pressure test and/or compatibility to the current operation system
Test, generates the test result of the current operation system, and the test result is sent to the server to be measured;
The test result that the server to be measured is sent is received, and next operation is carried out to the server to be measured
The test of system, until completing test of the server to be measured under all operating systems.
The second aspect of the embodiment of the present application provides a kind of device of test, comprising:
Acquiring unit for obtaining the baseboard management controller IP address of server to be measured, and obtains at least one operation
System image file and test application installation file corresponding with the operating system image file;
Installation unit is sequentially installed at least one described operating system image file by the baseboard management controller
To the server to be measured;Using the corresponding test application installation file of the current operation system of the server to be measured described
Test application is installed in current operation system;The test application be used for the current operation system carry out pressure test and/
Or compatibility test, the test result of the current operation system is generated, and the test result is sent to the clothes to be measured
Business device;
Receiving unit, the test result sent for receiving the server to be measured, and to the server to be measured
The test of next operating system is carried out, until completing test of the server to be measured under all operating systems.
The third aspect of the embodiment of the present application provides a kind of server, including baseboard management controller, memory, processing
Device and storage in the memory and the computer program that can run on the processor, described in the processor execution
The step of above-mentioned first aspect the method is realized when computer program.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program realizes the step of above-mentioned first aspect the method when being executed by processor
Suddenly.
Existing beneficial effect is the embodiment of the present application compared with prior art: in this application, control server passes through
At least one described operating system image file is sequentially installed to the server to be measured, and will worked as by baseboard management controller
The corresponding test application installation file of preceding operating system installs test application in the current operation system, passes through the test
Using automatic test is completed, the test result that the server to be measured is sent is received, and carry out to the server to be measured
The test of next operating system, until completing test of the server to be measured under all operating systems.Pass through above-mentioned side
Formula realizes the automatic test job carried out under several operation systems to server, improves the testing efficiency of server to be measured.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art, can also be according to these attached drawings under the premise of not paying creative labor
Obtain other attached drawings.
Fig. 1 shows a kind of hardware environment schematic diagram of the method for test provided by the present application;
Fig. 2 shows a kind of schematic flow charts of the method for test provided by the present application;
Fig. 3 shows the schematic flow chart of the method for another test provided by the present application;
Fig. 4 shows the schematic flow chart of S305 in the method for another test provided by the present application;
Fig. 5 shows the schematic flow chart of the method for another test provided by the present application;
Fig. 6 shows the schematic flow chart of the method for another test provided by the present application;
Fig. 7 is a kind of interaction diagrams of the method for test provided in an embodiment of the present invention;
Fig. 8 shows a kind of schematic diagram of the device of test provided by the embodiments of the present application;
Fig. 9 is a kind of schematic diagram for server that one embodiment of the invention provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that working as in present specification and the appended claims in use, term " includes " instruction is retouched
State the presence of feature, entirety, step, operation, element and/or component, but be not precluded one or more of the other feature, entirety,
Step, operation, the presence or addition of element, component and/or its set.
It is also understood that referring in present specification to term "and/or" used in the appended claims related
Join any combination and all possible combinations of one or more of item listed, and including these combinations.
As present specification and it is used in the attached claims, term " if " can be according to upper and lower
Text be interpreted " when ... when " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase is " if really
It is fixed " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " ring
Should be in determination " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In addition, in the description of present specification and the appended claims, term " first ", " second ", " third "
It is described etc. being only used for distinguishing, is not understood to indicate or imply relative importance.
The reference " one embodiment " described in the specification of the present application or " some embodiments " etc. mean in the application
One or more embodiments in include in conjunction with the embodiment description special characteristic, structure or feature.As a result, in this specification
In difference occur sentence " in one embodiment ", " in some embodiments ", " in some other embodiment ",
" in other embodiments " etc. uninevitable all referring to identical embodiment, mean " one or more but be not
In addition all embodiments " are only otherwise especially emphasized.The terms "include", "comprise", " having " and their change
Shape can mean that " including but not limited to ", only otherwise in addition especially emphasize.
A kind of method of test provided by the embodiments of the present application can be applied to all kinds of servers, such as: x86 server,
On the servers such as IA-64 server and RISC framework service device, the embodiment of the present application does not make the concrete type of server any
Limitation.And the interaction of both ends server involved in a kind of method of test, referring to Figure 1, Fig. 1 shows the application offer
A kind of test method hardware environment schematic diagram.As shown in Figure 1, in the method include control server 100 and to
Server 110 is surveyed, the control server 100 controls the server to be measured 110 and carries out multisystem test.
It is each since server to be measured needs type of operating system to be tested various in current server testing field
Kind operating system is required by pressure stability and compatibility test, testing time and larger workload, when project amount
When more, it is be easy to cause the conflict and waste of equipment, the extended testing system time increases the R&D cycle of product, leads to current clothes
Business device measuring technology testing efficiency is lower.In order to solve the above-mentioned technical problem, present applicant proposes a kind of methods of test, please join
See Fig. 2, Fig. 2 shows a kind of schematic flow chart of the method for test provided by the present application, the party non-limiting as example
Method can be applied in above-mentioned control server 100.
S201, obtains the baseboard management controller IP address of server to be measured, and obtains at least one operating system mirror image
File and test application installation file corresponding with the operating system image file.
The operating system of baseboard management controller IP address, multiple servers to be measured is stored in the control server
Image file and test application installation file corresponding with the operating system image file.The control server passes through base
Board management controller transmit multiple servers to be measured operating system image file and with the operating system image file pair
The test application installation file answered is to server to be measured.
The baseboard management controller (Baseboard Management Controller, BMC) is a server A C
Upper electrical initiation is the software run, and on the server on a individual ARM chip, the ARM chip is suitable for the BMC operation
In the CPU of BMC software, while chip periphery is configured with devices such as RAM, Flash, while server to be measured powers on described in
BMC software starting.After BMC starting, the control server is established by the BMC of BMC IP address and server to be measured
At least one operating system image file and test application corresponding with the operating system image file are installed text by connection
Part is transmitted to the server to be measured.The test application refers to can realize the test journey tested automatically on an operating system
Sequence.The operating system includes but is not limited to a series of server operating systems of Linux, Mac OS X and Windows etc..
At least one described operating system image file is sequentially installed to institute by the baseboard management controller by S202
State server to be measured.
By control server control BMC, and BMC by least one operating system image file sequentially install to it is described to
Survey server.
Specifically, described sequentially to be pacified at least one described operating system image file by the baseboard management controller
Being attached to the server to be measured may include:
It obtains operating system and list is installed;The operating system installation list records have the operating system image file
Erection sequence;At least one described operating system image file is installed by the system by the baseboard management controller and is arranged
Erection sequence in table is installed to the server to be measured.
The operating system installation list is the testing sequence of the customized multiple operating systems of user, the control service
Device installs at least one operating system according to the installation list in sequence.
S203, using the corresponding test application installation file of the current operation system of the server to be measured described current
Test application is installed in operating system;The test application is used to carry out pressure test and/or simultaneous to the current operation system
Capacitive test, generates the test result of the current operation system, and the test result is sent to the server to be measured.
After operating system installation, data network interface IP address and institute of the control server by the acquisition server to be measured
Data network interface IP address is stated, so that control server can access the current operation system of the server to be measured, the control clothes
The corresponding test application installation file is mounted on the current operation system by manipulating the current operation system by business device
In system, the test application is tested automatically in the current operation system, the automatic test include pressure test and/
Or compatibility test.The pressure test refers to runs test under conditions of number of computers is less or system resource is deficient,
The resource tested includes internal memory, CPU availability, disk space and network bandwidth etc..The compatibility test is to check
It can correctly be interacted between software and shared information.
After the test job of the current operation system, the test result of the current operation system is generated, and
The test result is sent to the server to be measured.
Specifically, described to pacify the corresponding test application installation file of current operation system in the current operation system
Filling test application may include:
Test application is installed under the self-starting catalogue of the current operation system according to the test application installation file;
After starting the server to be measured starting, the test application starts automatically.
The test application realizes that automatic test is by the way that the test application is mounted on opening certainly for current operation system
Under dynamic catalogue, after the server to be measured starting, the current operation system starts therewith, and at this time under self-starting catalogue
Test program start simultaneously also with operating system, and start test job.The test result is obtained after test,
The test result is sent to the server to be measured.
S204 receives the test result that the server to be measured is sent, and carries out to the server to be measured next
The test of a operating system, until completing test of the server to be measured under all operating systems.
After control server receives the test result that the server to be measured is sent, whether also to judge to install in list
In the presence of the operating system that do not test.Non- Test Operating System if it does not exist, then completing the server to be measured in all operations is
Test under system.Non- Test Operating System if it exists then repeats S202 to S204.
In the present embodiment, it is communicated by control server with baseboard management controller foundation, it will at least one described behaviour
Make system image file and be sequentially installed to the server to be measured, and by the corresponding test application installation file of current operation system
Test application is installed in the current operation system, automatic test is completed by the test application, receives the clothes to be measured
The test result that business device is sent, and the test of next operating system is carried out to the server to be measured, until completing institute
State test of the server to be measured under all operating systems.It realizes through the above way and server is carried out under several operation systems
Automatic test job, improve the testing efficiency of server to be measured.
Optionally, it on the basis of above-mentioned embodiment illustrated in fig. 2, is received described in the server transmission to be measured described
Further include following steps after test result, refer to Fig. 3, Fig. 3 shows the method for another test provided by the present application
Schematic flow chart, non-limiting as example, this method can be applied in above-mentioned control server 100.Wherein, this implementation
S301 to S303 is identical as S201 to S204 in a upper embodiment in example, referring specifically to S201 in a upper embodiment to S203's
Associated description does not repeat herein.
As shown in figure 3, this method may include steps of:
S301, obtains the baseboard management controller IP address of server to be measured, and obtains at least one operating system mirror image
File and test application installation file corresponding with the operating system image file.
At least one described operating system image file is sequentially installed to institute by the baseboard management controller by S302
State server to be measured.
S303, using the corresponding test application installation file of the current operation system of the server to be measured described current
Test application is installed in operating system;The test application is used to carry out pressure test and/or simultaneous to the current operation system
Capacitive test, generates the test result of the current operation system, and the test result is sent to the server to be measured.
S304 receives the test result that the server to be measured is sent.
During actual test, due to the inside of the external factor such as server power-off, system crash or test application
Factor influence may will lead to test process interruption or imperfect, therefore receive the server hair to be measured in control server
After the test result sent, need to judge whether test process is complete by the test result.
S305 judges whether current operation system test process is complete according to the test result.
The test result includes test final result or test log.The control server can be by extracting the survey
Key character in test result differentiates whether test process is complete.
Specifically, described to judge whether current operation system test process is complete according to the test result including following
Step refers to Fig. 4, and Fig. 4 shows the schematic flow chart of S305 in the method for another test provided by the present application, as
Example and it is non-limiting, this method can be applied in above-mentioned control server 100.
S3051 extracts the character that final result is characterized in the test result.
The character of the characterization final result, which can be selected, has representational character, such as: after most of tests
The character representations such as output " success, failure, ture, false " currently test final result.Therefore it can be by extracting above-mentioned character list
Levy final result.
S3052, when extracting the character, then the current test of test result characterization is complete.
S3053, when not extracting the character, then the test result characterization is currently tested imperfect.
It, can also be imperfect by extracting characterization test process in the test result as one embodiment of the application
Character to characterize current test process imperfect, such as: the characters such as " test do not complete, test crash, test failure ".By mentioning
Above-mentioned character is taken to differentiate whether current operating system testing process is complete.
S306 carries out next operation to the server to be measured if the current test of test result characterization is complete
The test of system, until completing test of the server to be measured under all operating systems.
When current operation system test process is complete, then repeated as shown in Figure 2 above according to the sequence of installation list
S202 to S204 in embodiment, to complete the test of the multiple operating systems of server to be measured.
S307 retests current operation system if test result characterization is currently tested imperfect, until reaching
Default testing time or the current test of test result characterization are complete.
In the present embodiment, the character of final result is characterized in the test result by extracting;When extracting the word
Symbol, then the current test of test result characterization is complete;When not extracting the character, then the test result characterization is current surveys
It tries imperfect.Judge whether the test process of server to be measured is complete, improves the test of server to be measured through the above way
Efficiency.
Optionally, on the basis of above-mentioned embodiment illustrated in fig. 2, it is described will be described by the baseboard management controller
At least one operating system image file is sequentially installed to before the server to be measured, is further included following steps, is referred to figure
5, Fig. 5 show the schematic flow chart of the method for another test provided by the present application, this method non-limiting as example
It can be applied in above-mentioned control server 100.Wherein, in the present embodiment in S501 and S503 to S505 and Fig. 2 embodiment
S201 to S204 is identical, referring specifically to the associated description of S201 to S204 in Fig. 2 embodiment, does not repeat herein.
As shown in figure 5, this method comprises the following steps:
S501, obtains the baseboard management controller IP address of server to be measured, and obtains at least one operating system mirror image
File and test application installation file corresponding with the operating system image file.
S502 accesses the baseboard management controller of the server to be measured according to the baseboard management controller IP address.
According to the substrate management of the baseboard management controller IP address and server to be measured that are prestored in control server
Controller establishes connection, to execute the operating system testing of server to be measured by the baseboard management controller.
At least one described operating system image file is sequentially installed to institute by the baseboard management controller by S503
State server to be measured.
S504, using the corresponding test application installation file of the current operation system of the server to be measured described current
Test application is installed in operating system;The test application is used to carry out pressure test and/or simultaneous to the current operation system
Capacitive test, generates the test result of the current operation system, and the test result is sent to the server to be measured.
S505 receives the test result that the server to be measured is sent, and carries out to the server to be measured next
The test of a operating system, until completing test of the server to be measured under all operating systems.
In the present embodiment, by accessing the substrate of the server to be measured according to the baseboard management controller IP address
Management Controller makes control server establish communication connection with to server to be measured, with the complete multiple operations systems of server to be measured
The test of system improves the testing efficiency of server to be measured.
Optionally, on the basis of above-mentioned embodiment illustrated in fig. 2, further include following steps in step S203, refer to figure
6, Fig. 6 show the schematic flow chart of the method for another test provided by the present application, this method non-limiting as example
It can be applied in above-mentioned control server 100.Wherein, S601, S602, S604 and S605 and Fig. 2 embodiment in the present embodiment
Middle S201 to S204 is identical, referring specifically to the associated description of S201 to S204 in Fig. 2 embodiment, does not repeat herein.
S601, obtains the baseboard management controller IP address of server to be measured, and obtains at least one operating system mirror image
File and test application installation file corresponding with the operating system image file, the test application installation file are used for
Test application is installed, to carry out respective operations system testing.
At least one described operating system image file is sequentially installed to institute by the baseboard management controller by S602
State server to be measured.
S603 obtains the data network interface IP address of the server to be measured, accesses institute by the data network interface IP address
State the current operation system of server to be measured.
S604 installs the corresponding test application installation file of the current operation system in the current operation system
Test application;The test application is used to carry out pressure test and/or compatibility test to the current operation system, generates institute
The test result of current operation system is stated, and the test result is sent to the server to be measured.
S605 receives the test result that the server to be measured is sent, and carries out to the server to be measured next
The test of a operating system, until completing test of the server to be measured under all operating systems.
In the present embodiment, by obtaining the data network interface IP address of the server to be measured, pass through the data network interface
IP address accesses the current operation system of the server to be measured, to realize the deployment to test application, realizes automatic
The process of test improves the testing efficiency of server.
Illustratively, Fig. 7 is a kind of interaction diagrams of the method for test provided in an embodiment of the present invention, in the interactive stream
Cheng Zhong, two sides of process interaction are control server and server to be measured, the BMC of control server control and service to be measured respectively
Connection, realizes the automatic test of several operation systems, improves the testing efficiency of server to be measured.
If this application provides a kind of devices 8 of test by Fig. 8, Fig. 8 is referred to, Fig. 8 shows the embodiment of the present application offer
A kind of test device schematic diagram, as shown in Figure 8 a kind of device of test include:
Acquiring unit 81 for obtaining the baseboard management controller IP address of server to be measured, and obtains at least one behaviour
Make system image file and test application installation file corresponding with the operating system image file, the test application peace
Dress file is for installing test application, to carry out respective operations system testing;
Installation unit 82, for being pressed at least one described operating system image file by the baseboard management controller
Sequence is installed to the server to be measured;By the corresponding test application installation file of current operation system in the current operation system
Middle installation test application;The test application is used to carry out pressure test and/or compatibility test to the current operation system,
The test result of the current operation system is generated, and the test result is sent to the server to be measured;
Receiving unit 83, the test result sent for receiving the server to be measured, and to the service to be measured
Device carries out the test of next operating system, until completing test of the server to be measured under all operating systems.
A kind of device of test provided by the present application, by control server by baseboard management controller, by described in extremely
A few operating system image file is sequentially installed to the server to be measured, and by the corresponding test application of current operation system
Installation file installs test application in the current operation system, completes automatic test by the test application, receives institute
The test result that server to be measured is sent is stated, and carries out the test of next operating system to the server to be measured, directly
To test of the completion server to be measured under all operating systems.It realizes through the above way and a variety of behaviour is carried out to server
Make the automatic test job under system, improves the testing efficiency of server to be measured.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Fig. 9 is a kind of schematic diagram for server that one embodiment of the invention provides.As shown in figure 9, one kind of the embodiment
Server 9 includes: processor 90, memory 91 and is stored in the memory 91 and can run on the processor 90
Computer program 92, baseboard management controller 93, such as a kind of program of test.The processor 90 executes the computer
The step in a kind of above-mentioned each embodiment of the method for test, such as step S201 to S204 shown in Fig. 2 are realized when program 92.
Alternatively, the processor 90 realizes the function of each unit in above-mentioned each Installation practice, example when executing the computer program 92
The function of unit 81 to 83 as shown in Figure 8.
Illustratively, the computer program 92 can be divided into one or more units, one or more of
Unit is stored in the memory 91, and is executed by the processor 90, to complete the present invention.One or more of lists
Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey
Implementation procedure of the sequence 92 in a kind of server 9.For example, the computer program 92 can be divided into acquiring unit and
Computing unit each unit concrete function is as follows:
Acquiring unit for obtaining the baseboard management controller IP address of server to be measured, and obtains at least one operation
System image file and test application installation file corresponding with the operating system image file, the test application installation
File is for installing test application, to carry out respective operations system testing;
Installation unit is used for through the baseboard management controller at least one operating system image file by described in sequentially
It is installed to the server to be measured;By the corresponding test application installation file of current operation system in the current operation system
Test application is installed;The test application is used to carry out pressure test and/or compatibility test to the current operation system, raw
The server to be measured is sent at the test result of the current operation system, and by the test result;
Receiving unit, the test result sent for receiving the server to be measured, and to the server to be measured
The test of next operating system is carried out, until completing test of the server to be measured under all operating systems.
A kind of server 9 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.A kind of server may include, but be not limited only to, processor 90, memory 91, baseboard management controller 93.This field
Technical staff is appreciated that Fig. 9 is only a kind of example of server 9, does not constitute the restriction to a kind of server 9, can be with
Including perhaps combining certain components or different components, such as a kind of server than illustrating more or fewer components
It can also include input-output equipment, network access equipment, bus etc..
The processor 90 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 91 can be a kind of internal storage unit of server 9, such as a kind of hard disk of server 9
Or memory.The memory 91 is also possible to a kind of External memory equipment of server 9, such as a kind of server 9
The plug-in type hard disk of upper outfit, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital,
SD) block, flash card (Flash Card) etc..Further, the memory 91 can also both include a kind of server 9
Internal storage unit also includes External memory equipment.The memory 91 is for storing the computer program and described one kind
Other programs and data needed for server.The memory 91, which can be also used for temporarily storing, have been exported or will be defeated
Data out.
The baseboard management controller 93 include 16 bits or 32 bit microcontrollers and for data storage RAM,
Flash memory and firmware for non-volatile data storage.The typical BMC of one offer IPMI v1.5 takes around 32k
RAM and 128k flash memory.The BMC is mainly used for server all parts (CPU, memory, hard disk, fan, machine frame to be measured
Deng) the health status such as temperature, voltage detected, while rotation speed of the fan is adjusted according to each temperature acquisition point situation in real time and is protected
It demonstrate,proves server to be measured and does not generate excess temperature, then pass through snmp protocol, smtp protocol, Redfish when any exception occurs in veneer component
A variety of industry general specifications such as agreement say that information reports in time
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed server and method, it can be by other
Mode realize.For example, server example described above is only schematical, for example, the module or unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
Conjunction or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-described embodiment side
All or part of the process in method can also instruct relevant hardware to complete, the computer by computer program
Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each
The step of a embodiment of the method.Wherein, the computer program includes computer program code, the computer program code
It can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can
With include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk,
CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice,
It such as does not include electric carrier signal and telecommunications according to legislation and patent practice, computer-readable medium in certain jurisdictions
Signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
Between protection scope of the present invention.
Claims (10)
1. a kind of method of test is applied to server to be measured characterized by comprising
Obtain the baseboard management controller IP address of server to be measured, and obtain at least one operating system image file and with
The corresponding test application installation file of the operating system image file;
At least one described operating system image file is sequentially installed to the clothes to be measured by the baseboard management controller
Business device;
Using the corresponding test application installation file of the current operation system of the server to be measured in the current operation system
Middle installation test application;The test application is used to carry out pressure test and/or compatibility test to the current operation system,
The test result of the current operation system is generated, and the test result is sent to the server to be measured;
The test result that the server to be measured is sent is received, and next operating system is carried out to the server to be measured
Test, until completing the test of the server to be measured under all operating systems.
2. the method as described in claim 1, which is characterized in that the current operation system pair using the server to be measured
The test application installation file answered installs test application in the current operation system, comprising:
Test application is installed under the self-starting catalogue of the current operation system according to the test application installation file;
After starting the server to be measured starting, the test application starts automatically.
3. the method as described in claim 1, which is characterized in that described to incite somebody to action described at least one by the baseboard management controller
A operating system image file is sequentially installed to the server to be measured, comprising:
It obtains operating system and list is installed;The operating system installation list records have the installation of the operating system image file
Sequentially;
At least one described operating system image file the system is pressed by the baseboard management controller to install in list
Erection sequence be installed to the server to be measured.
4. the method as described in claim 1, which is characterized in that the test knot for receiving the server to be measured and sending
After fruit, further includes:
Judge whether current operation system test process is complete according to the test result;
If the current test of test result characterization is complete, the survey of next operating system is carried out to the server to be measured
Examination, until completing test of the server to be measured under all operating systems;
If test result characterization is currently tested imperfect, current operation system is retested, until reaching default test
Number or the current test of test result characterization are complete.
5. method as claimed in claim 4, which is characterized in that described to judge that current operation system is surveyed according to the test result
Whether examination process is complete, comprising:
Extract the character that final result is characterized in the test result;
When extracting the character, then the current test of test result characterization is complete;
When not extracting the character, then the test result characterization is currently tested imperfect.
6. the method as described in claim 1, which is characterized in that described to incite somebody to action described at least one by the baseboard management controller
A operating system image file is sequentially installed to before the server to be measured, further includes:
The baseboard management controller of the server to be measured is accessed according to the baseboard management controller IP address.
7. the method as described in claim 1, which is characterized in that the current operation system pair using the server to be measured
The test application installation file answered is installed in the current operation system before test application, further includes:
The data network interface IP address for obtaining the server to be measured accesses the service to be measured by the data network interface IP address
The current operation system of device.
8. a kind of device of test characterized by comprising
Acquiring unit for obtaining the baseboard management controller IP address of server to be measured, and obtains at least one operating system
Image file and test application installation file corresponding with the operating system image file;
At least one described operating system image file is sequentially installed to institute by the baseboard management controller by installation unit
State server to be measured;Using the corresponding test application installation file of the current operation system of the server to be measured described current
Test application is installed in operating system;The test application is used to carry out pressure test and/or simultaneous to the current operation system
Capacitive test, generates the test result of the current operation system, and the test result is sent to the server to be measured;
Receiving unit, the test result sent for receiving the server to be measured, and the server to be measured is carried out
The test of next operating system, until completing test of the server to be measured under all operating systems.
9. a kind of server, including baseboard management controller, memory, processor and storage are in the memory and can be
The computer program run on the processor, which is characterized in that the processor is realized such as when executing the computer program
The step of any one of claim 1 to 7 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910703896.2A CN110471809A (en) | 2019-07-31 | 2019-07-31 | A kind of method and test device of test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910703896.2A CN110471809A (en) | 2019-07-31 | 2019-07-31 | A kind of method and test device of test |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110471809A true CN110471809A (en) | 2019-11-19 |
Family
ID=68509356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910703896.2A Pending CN110471809A (en) | 2019-07-31 | 2019-07-31 | A kind of method and test device of test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471809A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101201776A (en) * | 2006-12-14 | 2008-06-18 | 英业达股份有限公司 | Method for integrating and testing platform of multiple operating systems |
US20150100296A1 (en) * | 2013-10-03 | 2015-04-09 | Wistron Corporation | Method and system for automated test and result comparison |
CN106294157A (en) * | 2016-08-11 | 2017-01-04 | 浪潮(北京)电子信息产业有限公司 | A kind of operating system testing method and device |
CN107341036A (en) * | 2017-07-14 | 2017-11-10 | 郑州云海信息技术有限公司 | A kind of method and apparatus of Remote Installation node operating system |
CN108874603A (en) * | 2018-06-25 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of compatibility component authentication test method and device |
CN109298996A (en) * | 2018-07-13 | 2019-02-01 | 万达百汇科技(深圳)有限公司 | A kind of test method, device and terminal device |
CN109491916A (en) * | 2018-11-12 | 2019-03-19 | 北京东土科技股份有限公司 | A kind of test method of operating system, device, equipment, system and medium |
-
2019
- 2019-07-31 CN CN201910703896.2A patent/CN110471809A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101201776A (en) * | 2006-12-14 | 2008-06-18 | 英业达股份有限公司 | Method for integrating and testing platform of multiple operating systems |
US20150100296A1 (en) * | 2013-10-03 | 2015-04-09 | Wistron Corporation | Method and system for automated test and result comparison |
CN106294157A (en) * | 2016-08-11 | 2017-01-04 | 浪潮(北京)电子信息产业有限公司 | A kind of operating system testing method and device |
CN107341036A (en) * | 2017-07-14 | 2017-11-10 | 郑州云海信息技术有限公司 | A kind of method and apparatus of Remote Installation node operating system |
CN108874603A (en) * | 2018-06-25 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of compatibility component authentication test method and device |
CN109298996A (en) * | 2018-07-13 | 2019-02-01 | 万达百汇科技(深圳)有限公司 | A kind of test method, device and terminal device |
CN109491916A (en) * | 2018-11-12 | 2019-03-19 | 北京东土科技股份有限公司 | A kind of test method of operating system, device, equipment, system and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3575975B1 (en) | Method and apparatus for operating smart network interface card | |
CN106055361B (en) | Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller) | |
US8660833B2 (en) | Method, computer program product and apparatus for providing an interactive network simulator | |
CN101902355A (en) | Server, computer system, and method for monitoring computer system | |
CN109039829A (en) | A kind of network card performance testing method, apparatus, terminal and storage medium | |
CN103488513B (en) | Equipment plug and play general drive method | |
CN104360921A (en) | Method, device and system for monitoring performance of mobile terminal | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN109684008A (en) | Card rendering method, device, terminal and computer readable storage medium | |
US20170109253A1 (en) | System and method for filtering system log under operating system | |
CN113254284A (en) | Chip testing method, device, equipment, storage medium and program product | |
CN107181606B (en) | Method and apparatus for controlling network nodes | |
CN106649019A (en) | Test method for overall automatic PCIE communication quality based on serial port | |
US20220179764A1 (en) | Multi-source data correlation extraction for anomaly detection | |
CN109697166B (en) | Test data preparation method and related device | |
WO2021151314A1 (en) | Dns automatic performance test method, apparatus, device, and readable storage medium | |
CN110471809A (en) | A kind of method and test device of test | |
CN106598793A (en) | Test system and method based on BIOS serial port log data | |
CN113110970B (en) | Method, device, equipment and medium for monitoring all parts in server working mode | |
CN109286692A (en) | A kind of method of configuration server IPMI static ip address | |
CN107145463A (en) | The method and system of automatic transmission hearing test data | |
CN113535578A (en) | CTS (clear to send) testing method, device and testing equipment | |
CN102822799B (en) | For portable isolated node computer method and device | |
CN206364819U (en) | A kind of external PCIE physical equipments reliability test system of high-end server | |
CN112003727A (en) | Multi-node server power supply testing method, system, terminal and storage medium |
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 |