CN107766193A - A kind of IB cards performance automatic test method and system - Google Patents

A kind of IB cards performance automatic test method and system Download PDF

Info

Publication number
CN107766193A
CN107766193A CN201711087677.3A CN201711087677A CN107766193A CN 107766193 A CN107766193 A CN 107766193A CN 201711087677 A CN201711087677 A CN 201711087677A CN 107766193 A CN107766193 A CN 107766193A
Authority
CN
China
Prior art keywords
cards
test
client
service end
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
Application number
CN201711087677.3A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711087677.3A priority Critical patent/CN107766193A/en
Publication of CN107766193A publication Critical patent/CN107766193A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a kind of IB cards automatic performance method of testing and system, it is characterised in that comprises the following steps:Test environment is built in service end and client, different IB cards are connected with service end and client respectively, test script IB_test.py is installed simultaneously in service end and client;Mobile client is mounted to respectively under the first catalogue of service end and client, test script file is added under the second catalogue, authority is performed for the addition of test script program;Testing results script, program automatically configure the IP address of IB cards simultaneously for service end and client;Automatically the test of IB cards is performed after the completion of configuration.Technical solution of the present invention is automatically configured and tested to the performance of IB cards, improves speed of production, and no one is the mistakes such as mistake, the leakage being likely to occur during configuration.This method is simple to operate, and practicality is stronger, and some case studies and positioning, production speed-raising for us etc. have good effect.

Description

A kind of IB cards performance automatic test method and system
Technical field
The invention belongs to server product technical field of measurement and test, and in particular to a kind of IB cards performance automatic test method and be System.
Background technology
Main flow product of the server as the big data epoch, the market demand is also increasing, and testing field is faced with sternness Challenge;Can be reach produces the punctual shipment of deploying on time, and the prestige for being not only related to company also represents the life of a company Production capacity power, while the satisfaction of client is also contributed to, the test of either research and development section or production line, which can be efficiently completed, is A vital link.
Product enters the volume production stage, is in great demand, while test job is also faced with severe tests;The test of IB cards is More complicated place is operated in component compatibility test, since it is desired that a large amount of IP of manual configuration, while IB cards are carried out again Environment configurations so that IB card performances obtain the lifting of maximum;So an automatic test program is introduced to complete artificial behaviour portion It is to need urgent problem to be solved to divide.
The content of the invention
It is an object of the present invention in view of the above-mentioned drawbacks of the prior art, a kind of IB cards performance of offer design is automatic Method of testing and system, to solve above-mentioned technical problem.
In order to achieve the above object, the technical scheme is that:
A kind of IB cards automatic performance method of testing, comprises the following steps:
Test environment is built in service end and test script is installed, while builds test environment in client and test is installed Script;
Testing results script, program automatically configure the IP address of IB cards simultaneously for service end and client;After the completion of configuration certainly It is dynamic to perform the test of IB cards.
Further, build test environment in service end and test script is installed, while test environment is built in client And test script is installed, including:
Different IB cards are connected with service end and client respectively, test script is installed simultaneously in service end and client IB_test.py;
Further, different IB cards are connected with service end and test lead respectively, pacified simultaneously in service end and client Test script IB_test.py is filled, in addition to:
Mobile client is mounted to respectively under the first catalogue of service end and client, test script file is added to Under second catalogue, authority is performed for the addition of test script program.
Further, mobile client is mounted to respectively under the first catalogue of service end and client, by test script File is added under the second catalogue, performs authority for the addition of test script program, specifically includes:
Mobile client is mounted under service end and client mount/dev/sdb1/mnt/, then by test script File is added to cp/mnt/IB_test.py/home/ under home;It is that test script program adds execution authority chmod+xIB_ test.py。
Further, testing results script, program automatically configure the IP address of IB cards simultaneously for service end and client, wrap Include:
Service end and client while testing results script, the quantity of IB cards is inputted according to service end and Client-Prompt;
With being actually consistent, program continues executing with the IB cards quantity detected, otherwise checks then whether IB cards are plugged again Input IB card quantity;
Program automatically configures the IP address of IB cards.
Further, with being actually consistent, program continues executing with the IB cards quantity detected, otherwise checks whether IB cards are plugged Then re-enter IB cards quantity also includes afterwards:
Program is carried out opening and closing accordingly to the information on services of IB cards and network successively, and per pacing, examination log is kept In unified file.
A kind of IB cards automatic performance test system, including service end, client and at least two IB cards, in addition to height The test script that level language is write;
Service end, for building test environment and installing test script and service end and wherein at least one IB cards company Connect;
Client, for building test environment and installing test script and client and wherein at least one IB cards in addition Connection;
Dispensing unit is provided with the test script, the dispensing unit is used for the IP address for configuring IB cards;
Also include execution module, for performing the content of test script and sending test command to IB cards.
Further, the system also includes:Mobile client, carry module and setup module;Carry module, for that will move Dynamic client is mounted under the first catalogue of service end and client respectively;
Setup module, right of execution is added for test script program for test script file to be added under the second catalogue Limit.
Further, the system also includes:Input module, detection module, comparison module and judge module;
Input module, for inputting the quantity of IB cards according to service end and Client-Prompt;
Detection module, for detecting IB card quantity;
Comparison module, the actual IB cards that the quantity of IB cards for detection module to be detected inputs with passing through input module Quantity is compared, if quantity is consistent, program continues executing with, otherwise judge module judge IB cards whether successful connection, connect into Input module re-enters IB card quantity after work(.
Further, the system also includes:Memory module and control module;
Control module control program carries out opening and closing accordingly to the information on services of IB cards and network successively;
Control module, be additionally operable to according to the test case and result of execution module come judge IB cards test whether by, Control module is additionally operable to control control to show the test information of each IB cards in service end and client simultaneously;
Memory module, for every pacing examination log to be maintained in the unified file of memory module.
First catalogue is mount/dev/sdb1/mnt/, and the second catalogue is cp/mnt/IB_test.py/ under home home/。
The beneficial effects of the present invention are this technical scheme provided by the invention can be matched somebody with somebody automatically to the performance of IB cards Put and test, largely improve speed of production, and no one is the mistakes such as mistake, the leakage being likely to occur during configuration By mistake.This method is simple to operate, and practicality is stronger, and some case studies and positioning, production speed-raising for us etc. have well Effect.
In addition, design principle of the present invention is reliable, and it is simple in construction, there is very extensive application prospect.
As can be seen here, the present invention compared with prior art, has prominent substantive distinguishing features and significantly improved, it is implemented Beneficial effect be also obvious.
Brief description of the drawings
Fig. 1 is a kind of IB cards automatic performance method of testing flow chart provided in an embodiment of the present invention.
Fig. 2 is a kind of IB cards automatic performance method of testing flow chart provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawings and the present invention will be described in detail by specific embodiment, and following examples are to the present invention Explanation, and the invention is not limited in implementation below.
A kind of IB cards automatic performance test system that embodiment 1 provides, including service end, client and at least two IB Card, in addition to the test script with high level language;
Service end, for building test environment and installing test script and service end and wherein at least one IB cards company Connect;
Client, for building test environment and installing test script and client and wherein at least one IB cards in addition Connection;
Dispensing unit is provided with the test script, the dispensing unit is used for the IP address for configuring IB cards;
Also include execution module, for performing the content of test script and sending test command to IB cards.
The system also includes:Mobile client, carry module and setup module;
Carry module, for mobile client to be mounted to the first catalogue mount/dev/ of service end and client respectively Sdb1/mnt/, under;
Setup module, for test script file to be added into cp/mnt/IB_test.py/ under the second catalogue home Under home/ authority is performed for the addition of test script program.
The system also includes:Input module, detection module, comparison module and judge module;Input module, for according to clothes Business end and the quantity of Client-Prompt input IB cards;
Detection module, for detecting IB card quantity;
Comparison module, the actual IB cards that the quantity of IB cards for detection module to be detected inputs with passing through input module Quantity is compared, if quantity is consistent, program continues executing with, otherwise judge module judge IB cards whether successful connection, connect into Input module re-enters IB card quantity after work(.
The system also includes:Memory module and control module;
Control module control program carries out opening and closing accordingly to the information on services of IB cards and network successively;
Control module, be additionally operable to according to the test case and result of execution module come judge IB cards test whether by, Control module is additionally operable to control control to show the test information of each IB cards in service end and client simultaneously;
Memory module, for every pacing examination log to be maintained in the unified file of memory module.
As shown in Figure 1 and Figure 2, a kind of IB cards automatic performance method of testing that embodiment 2 provides, including:
Test environment is built in service end and test script is installed, while builds test environment in client and test is installed Script;
Testing results script, program automatically configure the IP address of IB cards simultaneously for service end and client;
Automatically the test of IB cards is performed after the completion of configuration.
Comprise the following steps that:
Step1) service end of test environment and client are being built while is installing test script IB_test.py;And USB flash disk is mounted to service end and client mount/dev/sdb1/mnt/ respectively, test script file is then copied into home Lower cp/mnt/IB_test.py/home/;It is that test script program adds execution authority chmod+xIB_test.py;
Step2) in service end and client while testing results program;./IB_test.py
Step3 the quantity of IB cards) is inputted according to service end and Client-Prompt;
Qty=input (' pls double check the HBA card Qty:')
Step4 with being actually consistent, program continues executing with the IB cards quantity) detected, otherwise checks whether IB cards are plugged so After re-enter IB card quantity;
Step5) program carries out opening and closing accordingly as needed to the correlation to IB cards and network successively, per pacing Examination log is held in unified file;
Step6) program automatically configures the IP address of IB cards;
Ethdriver=$ (ethtool-i $ 1 | grep driver | cut-d ":"-f2)
Step7 automatic after the completion of) configuring to perform the test of IB cards, i.e., client performs ib_read_bw-a and ordered to clothes automatically Business end sends request, and service end performs ib_read_bw-aIP (example 1.1.1.1) and receives request automatically, then proceeds by bandwidth Test;
It implements content:
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this area What technical staff can think does not have creative change, and some improvement made without departing from the principles of the present invention and Retouching, should all be within the scope of the present invention.

Claims (10)

1. a kind of IB cards automatic performance method of testing, it is characterised in that comprise the following steps:
Test environment is built in service end and test script is installed, while builds test environment in client and test pin is installed This;
Testing results script, program automatically configure the IP address of IB cards simultaneously for service end and client;
Automatically the test of IB cards is performed after the completion of configuration.
2. a kind of IB cards automatic performance method of testing according to claim 1, it is characterised in that build survey in service end Test script is simultaneously installed in test ring border, while builds test environment in client and install test script, including:
Different IB cards are connected with service end and client respectively, test script IB_ is installed simultaneously in service end and client test.py。
3. a kind of IB cards automatic performance method of testing according to claim 2, it is characterised in that by different IB cards point It is not connected with service end and test lead, test script IB_test.py is installed simultaneously in service end and client, in addition to:
Mobile client is mounted to respectively under the first catalogue of service end and client, test script file is added to second Under catalogue, authority is performed for the addition of test script program.
4. a kind of IB cards automatic performance method of testing according to claim 3, it is characterised in that by mobile client point It is not mounted under the first catalogue of service end and client, test script file is added under the second catalogue, is test script Program addition performs authority, specifically includes:
Mobile client is mounted under service end and client mount/dev/sdb1/mnt/, then by test script text Part is added to cp/mnt/IB_test.py under home/home/;It is that test script program adds execution authority chmod+x IB_test.py。
5. a kind of IB cards automatic performance method of testing according to claim 4, it is characterised in that service end and client Testing results script, program automatically configure the IP address of IB cards simultaneously, including:
Service end and client while testing results script, the quantity of IB cards is inputted according to service end and Client-Prompt;
With being actually consistent, program continues executing with the IB cards quantity detected, otherwise checks whether IB cards are plugged and then re-enter IB card quantity;
Program automatically configures the IP address of IB cards.
A kind of 6. IB cards automatic performance method of testing according to claim 5, it is characterised in that the IB card numbers detected With being actually consistent, program continues executing with amount, otherwise checks IB cards also include after whether being plugged and then re-entering IB cards quantity:
Program carries out opening and closing accordingly to the information on services of IB cards and network successively, and per pacing, examination log is held in system In one file.
A kind of 7. IB cards automatic performance test system, it is characterised in that including service end, client and at least two IB cards, Also include the test script with high level language;
Service end, for building test environment and installing test script and service end and the connection of wherein at least one IB cards;
Client, for building test environment and installing test script and client and wherein at least one IB cards company in addition Connect;
Dispensing unit is provided with the test script, the dispensing unit is used for the IP address for configuring IB cards;
Also include execution module, for performing the content of test script and sending test command to IB cards.
8. a kind of IB cards automatic performance test system according to claim 7, it is characterised in that the system also includes: Mobile client, carry module and setup module;
Carry module, for being mounted to mobile client respectively under the first catalogue of service end and client;
Setup module, authority is performed for the addition of test script program for test script file to be added under the second catalogue.
9. a kind of IB cards automatic performance test system according to claim 8, it is characterised in that the system also includes: Input module, detection module, comparison module and judge module;
Input module, for inputting the quantity of IB cards according to service end and Client-Prompt;
Detection module, for detecting IB card quantity;
Comparison module, for the quantity and the quantity of the actual IB cards inputted by input module of the IB cards for detecting detection module Be compared, if quantity is consistent, program continues executing with, otherwise judge module judge IB cards whether successful connection, after successful connection Input module re-enters IB card quantity.
10. a kind of IB cards automatic performance test system according to claim 9, it is characterised in that the system also includes: Memory module and control module;
Control module control program carries out opening and closing accordingly to the information on services of IB cards and network successively;
Control module, it is additionally operable to judge the testing whether by simultaneously of IB cards according to the test case and result of execution module Control module is additionally operable to control control and shows the test information of each IB cards in service end and client;
Memory module, for every pacing examination log to be maintained in the unified file of memory module.
CN201711087677.3A 2017-11-07 2017-11-07 A kind of IB cards performance automatic test method and system Pending CN107766193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711087677.3A CN107766193A (en) 2017-11-07 2017-11-07 A kind of IB cards performance automatic test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711087677.3A CN107766193A (en) 2017-11-07 2017-11-07 A kind of IB cards performance automatic test method and system

Publications (1)

Publication Number Publication Date
CN107766193A true CN107766193A (en) 2018-03-06

Family

ID=61272764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711087677.3A Pending CN107766193A (en) 2017-11-07 2017-11-07 A kind of IB cards performance automatic test method and system

Country Status (1)

Country Link
CN (1) CN107766193A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718263A (en) * 2018-06-13 2018-10-30 郑州云海信息技术有限公司 A kind of network bandwidth test system based on the configuration of HCA cards
CN109324965A (en) * 2018-09-18 2019-02-12 郑州云海信息技术有限公司 A kind of automated testing method that monitoring flock causes client to be collapsed
CN112540881B (en) * 2019-09-20 2023-11-14 深圳宏芯宇电子股份有限公司 Storage device test management method and storage device test management system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7724678B1 (en) * 2006-06-14 2010-05-25 Oracle America, Inc. Method and apparatus for testing a communication link
CN104035876A (en) * 2014-07-02 2014-09-10 浪潮电子信息产业股份有限公司 Method for implementing LINPACK cluster test in IB network environment based on PXE, SHELL and EXPECT
CN104601410A (en) * 2015-02-02 2015-05-06 浪潮电子信息产业股份有限公司 Server automatic HCA card bandwidth testing method
CN105022648A (en) * 2015-07-23 2015-11-04 浪潮电子信息产业股份有限公司 Test method of HCA card performance and pressure tests on basis of expect command
CN107193699A (en) * 2017-05-22 2017-09-22 郑州云海信息技术有限公司 One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7724678B1 (en) * 2006-06-14 2010-05-25 Oracle America, Inc. Method and apparatus for testing a communication link
CN104035876A (en) * 2014-07-02 2014-09-10 浪潮电子信息产业股份有限公司 Method for implementing LINPACK cluster test in IB network environment based on PXE, SHELL and EXPECT
CN104601410A (en) * 2015-02-02 2015-05-06 浪潮电子信息产业股份有限公司 Server automatic HCA card bandwidth testing method
CN105022648A (en) * 2015-07-23 2015-11-04 浪潮电子信息产业股份有限公司 Test method of HCA card performance and pressure tests on basis of expect command
CN107193699A (en) * 2017-05-22 2017-09-22 郑州云海信息技术有限公司 One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108718263A (en) * 2018-06-13 2018-10-30 郑州云海信息技术有限公司 A kind of network bandwidth test system based on the configuration of HCA cards
CN109324965A (en) * 2018-09-18 2019-02-12 郑州云海信息技术有限公司 A kind of automated testing method that monitoring flock causes client to be collapsed
CN112540881B (en) * 2019-09-20 2023-11-14 深圳宏芯宇电子股份有限公司 Storage device test management method and storage device test management system

Similar Documents

Publication Publication Date Title
CN104317690B (en) A kind of Memory Demand Scrub method of testing based on ITP instrument
CN107766193A (en) A kind of IB cards performance automatic test method and system
US20140236527A1 (en) Cloud based infrastructure for supporting protocol reconfigurations in protocol independent device testing systems
CN104407980A (en) Mobile application automated testing device and method
CN103744824B (en) One is dispatched from the factory method of testing and test system
CN107171833A (en) One kind realizes server B MC and BIOS batch upgrading method by BMC
CN104268052B (en) A kind of Memory Rank Spare method of testing based on ITP instrument
CN106227616A (en) A kind of batch realizes the method that RMT tests automatically
CN104484274A (en) Memory patrol scrub function test method based on ITP (integration test platform) tool
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN104125504B (en) Deployment method, device and system based on continuous integration
CN106528354B (en) A kind of automatic method of burning memory power fru id
CN103677915A (en) Automatic burning method of flash mirror image based on TF starting card
CN104601410A (en) Server automatic HCA card bandwidth testing method
CN106814302A (en) A kind of eMMC test circuits
CN110321292A (en) Chip detecting method, device, electronic equipment and computer readable storage medium
CN107678949A (en) Realize the automated testing method of embedded device different communication mode
CN105486998A (en) Processor board card parameter lossless automatic test method and monitoring host device
CN105138438A (en) MEMORY PATROL SCRUB testing method
CN100530146C (en) BIOS on-line rewriting method
CN102880479B (en) A kind of method of remotely modifying BIOS property parameters and device
CN107273249A (en) Motherboard test method, processor and main board testing system
Alkadhim Communicating with raspberry pi via mavlink
CN108287773A (en) A kind of general board diagnostic method and device based on PXE
CN103176903A (en) Testing method and testing device of MapReduce distributed system program

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180306