CN105786689B - The efficiency automatic test approach and its system of the Linux server of ARM - Google Patents

The efficiency automatic test approach and its system of the Linux server of ARM Download PDF

Info

Publication number
CN105786689B
CN105786689B CN201410817184.0A CN201410817184A CN105786689B CN 105786689 B CN105786689 B CN 105786689B CN 201410817184 A CN201410817184 A CN 201410817184A CN 105786689 B CN105786689 B CN 105786689B
Authority
CN
China
Prior art keywords
arm
linux server
source code
test program
test
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.)
Expired - Fee Related
Application number
CN201410817184.0A
Other languages
Chinese (zh)
Other versions
CN105786689A (en
Inventor
刘子扬
林君平
魏廷箕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
Original Assignee
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
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 Kunda Computer Technology Kunshan Co Ltd, Mitac International Corp filed Critical Kunda Computer Technology Kunshan Co Ltd
Priority to CN201410817184.0A priority Critical patent/CN105786689B/en
Publication of CN105786689A publication Critical patent/CN105786689A/en
Application granted granted Critical
Publication of CN105786689B publication Critical patent/CN105786689B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention provides a kind of the efficiency automatic test approach and its system of the Linux server of ARM, the described method comprises the following steps:A. the source code of a variety of effect test programs built in the Linux server of the ARM is preset;B. according to the source code of a variety of effect test programs contained in the Linux server of the ARM, a dialog list is generated using dialog external members, user is provided and selects to need the corresponding test program of content to be tested;C. the information of the Linux server of ARM hardware device itself is obtained;D. cross compile is carried out according to the source code of above-mentioned effect test program and hardware information, is compiled into the test program of the Linux server of ARM;E. according to preset number, cycle executes be compiled into test program;And f. generates the test result report for executing be compiled into test program.By above-mentioned steps, the applicable effect test program of linux system can be executed automation by the present invention in the Linux server of ARM.

Description

The efficiency automatic test approach and its system of the Linux server of ARM
Technical field
The present invention is a kind of efficiency automatic test approach and its system of the Linux server of ARM.
Background technology
In a computer, efficiency (benchmark) refers to working as executive program, batch processing or other operations, Thereby assessment will assess the relative performance (performance) of object.Computer efficiency generally can be with computer system specified Time and using under conditions of resource, the quantity of completed work indicate." good " of computer efficiency may include following One or several in project:1. 2. high-throughput of quick reaction time(The speed of processing work)3. resource makes With rate.4. the high availability 5. of computer system or application program is quick(Or high compression rate)Data compression and decompression 6. high bandwidth or quick data transmission period scientist Arnold Allen are proposed:It is carried in " computer efficiency " word To " efficiency " in fact with one Specifications of efficiency that is mentioned under other situations, efficiency refers to that " computer can should will complete it Work accomplish it is how good」.And protos test suite PROTOS is a kind of software type, may include different test programs, the purpose is to assess The correctness of system.There are many different effect test programs on linux system now, and with the software package of effect test Such as the Phoronix Test on the websites Linux Benchmark Suite or Phoronix on the websites Source forge Suite, the external member of this two sets of effect test programs are widely used on linux system.Such as Ubuntu Linux Server will use Phoronix Test Suite conducts when making Ubuntu Linux Server certifications to tester table One of which test event.And based on ARM(Advanced RISC Machines) Linux servers on, it is above-mentioned several The compatibility of a external member may will produce problem, although being used in linux system, certain programs will be used in ARM There may be following difficulty on the machine of base:1. cross compile may be needed, before source code compiles on ARM frameworks It may need first just to have an opportunity using on the machine of ARM frameworks using after emulator cross compile.2. the configuration of software File case does not support ARM frameworks to be also possible to, and according to different manufacturers, to ARM systems SOC, (system on chip are Unite chip) difference of design, and incompatible place is also had in compiling.
In view of this, the present invention provides a kind of the efficiency automatic test approach and its system of the Linux server of ARM, The applicable effect test program of linux system can be executed into automation in the Linux server of ARM, avoid test program Apply the incompatibility in the Linux server of ARM.
Invention content
The main purpose of the present invention is to provide a kind of efficiency automatic test approach of Linux server of ARM and its it is The applicable effect test program of linux system can be executed automation in the Linux server of ARM, avoid testing by system Program applies the incompatibility in the Linux server of ARM.
Another object of the present invention is to provide a kind of efficiency automatic test approach of the Linux server of ARM, provide The efficiency automatic test approach of one Linux server of user or developer, this method, which contains, provides a dialog mode (dialog)User interface and one allow additionally to pay plus source code or program code promote the execution efficiency of program code Mode, to strengthen the execution of the effect test program.Therefore, developer or user can penetrate the Linux of the present invention The efficiency automatic test approach of server imports testing tool easily, will not need cross compile again or have change software to set It is fixed to wait puzzlement, and the effect test program that linux system is applicable in can be executed automation.In order to achieve the above object, of the invention There is provided a kind of efficiency automatic test approach of the Linux server of ARM comprising following steps:
A. the source code of a variety of effect test programs built in the Linux server of the ARM is preset;
B. it according to the source code of a variety of effect test programs contained in the Linux server of the ARM, utilizes Dialog external members generate a dialog list, provide user and select to need the corresponding test program of content to be tested, to reach It is installed to catechetical guiding;
C. the information of the Linux server of ARM hardware device itself is obtained;
D. the source code of the effect test program of user's selection and the hardware dress of acquired Linux server are taken out The information set carries out cross compile according to the source code of above-mentioned effect test program and hardware information, is compiled into based on the ARM Linux server test program;
E. according to preset number, cycle executes be compiled into test program;And
F. the test result report for executing be compiled into test program is generated.
Preferably, following steps are further included between step a and b:Scan the effect test that User Defined is added Program source code.
Preferably in the step b, contained a variety of effect test programs in the Linux server of the ARM Source code includes the source code of preset built-in a variety of effect test programs and the efficiency that the User Defined is added The source code of test program.
The present invention also provides a kind of efficiency Auto-Test Systems of the Linux server of ARM, for executing above-mentioned efficiency Automatic test approach, which is characterized in that including:
One setup module is used to preset the original of a variety of effect test programs built in the Linux server of the ARM Code;
One selecting module is connect with the setup module, for according to contained in the Linux server of the ARM A variety of effect test programs source code, using dialog external members generate a dialog list, provide user select need The corresponding test program of content to be tested, to reach catechetical guiding installation;
One data obtaining module is used to obtain the information of the Linux server of ARM hardware device itself;
One collector is connect with the setup module and described information acquisition module, for taking out user's selection Effect test program source code and acquired Linux server hardware device information, according to above-mentioned efficiency survey The source code and hardware information for trying program carry out cross compile, are compiled into the test journey suitable for the Linux server of the ARM Sequence;
One execution module is connect with the collector, for according to preset number, cycle execution to be compiled into Test program;And
One report generating module is connect with the execution module for generating the survey for executing be compiled into test program Test result is reported.
Preferably, the efficiency Auto-Test System of the Linux server of ARM of the present invention further comprises a scanning mould Block, the scan module are connect with the selecting module and the collector, the effect for scanning User Defined addition It can test program source code.
Preferably, the source code of a variety of effect test programs contained in the server includes described preset built-in The source code for the effect test program that the source code of a variety of effect test programs and the User Defined are added.
Compared with prior art, the efficiency automatic test approach of the Linux server of ARM of the invention, according to efficiency The source code and hardware information of test program carry out cross compile, are compiled into the test of the Linux server suitable for the ARM Program, and generate after multiple cycle executes this compiler as a result, reached whereby will in the Linux server of ARM The applicable effect test program of linux system executes automation, and test program is avoided to apply in the Linux server of ARM Incompatibility advantageous effect.Wherein, in user interface part, the present invention generates a dialog using dialog external members and arranges Table provides user and selects to need the corresponding test program of content to be tested, to reach catechetical guiding installation, thereby reaches Automatic test.In addition, user, which can customize, increases additional effect test program, the effect being added by scanning User Defined Energy test program source code, finally compiles out the test program for needing the Linux server suitable for ARM, and what it is due to addition is Source code, therefore user is easily modified, can in response in the future expansion and change demand.
【Description of the drawings】
Fig. 1 is a kind of step flow chart of the efficiency automatic test approach of the Linux server of ARM of the present invention.
Fig. 2 is a kind of functional-block diagram of the efficiency Auto-Test System of the Linux server of ARM of the present invention.
【Specific implementation mode】
Refering to Figure 1, a kind of efficiency automatic test approach of the Linux server of ARM, suitable for an ARM's Linux server comprises the steps of:
Step 100:The source code for presetting a variety of effect test programs built in the Linux server of the ARM, in this step In rapid, the built-in test program is mostly in effect test program on the market, and the selection source of test program is reference City accounts for three kinds of higher Linux releases of rate, Red Hat Enterprise Linux, Suse Linux Enterprise Server, Ubuntu Server, for the reference source that the test program in the certification software of this three kinds of versions is selection.
Step 200:Scan the effect test program source code that User Defined is added, in this step, User Defined The test program of addition is stored such as lmbench, dhrystone, Bonnie, Bonnie++, Coremark, Stream Test program can voluntarily increase.
Step 300:According to the source code of a variety of effect test programs contained in the Linux server of the ARM, profit A dialog list is generated with dialog external members, user is provided and selects to need the corresponding test program of content to be tested, is come Reach catechetical guiding installation, in this step, the source code of contained a variety of effect test programs in the server Including User Defined addition in the source code of a variety of effect test programs built in preset in step 100 and step 200 The source code of effect test program.Step 400:The information of the Linux server of ARM hardware device itself is obtained, including The core number of CPU, frequency, the size of DIMM capacity wait such information.
Step 500:Take out the source code of the effect test program of user's selection and acquired Linux server The information of hardware device carries out cross compile according to the source code of above-mentioned effect test program and hardware information, is compiled into applicable In the test program of the Linux server of the ARM.
Step 600:According to preset number, cycle executes be compiled into test program and is compiled into this step Test program will be executed by cycle until reach preset number.
Step 700:Generate the test result report for executing be compiled into test program.
It please refers to shown in Fig. 1 and Fig. 2, a kind of efficiency Auto-Test System of the Linux server of ARM of the present invention, For executing efficiency automatic test approach shown in FIG. 1, and include:One setup module 10, a scan module 20, a selecting module 30, a data obtaining module 40, a collector 50, an execution module 60 and report generating module 70.
The setup module 10 is used to preset a variety of effect test programs built in the Linux server of the ARM Source code, the built-in test program are mostly in effect test program on the market, and the selection source of test program is ginseng It examines city and accounts for three kinds of higher Linux releases of rate, Red Hat Enterprise Linux, Suse Linux Enterprise Server, Ubuntu Server, for the reference source that the test program in the certification software of this three kinds of versions is selection.
The scan module 20 is used to scan the effect test program source code of User Defined addition, in this step In, User Defined be added test program such as lmbench, dhrystone, Bonnie, Bonnie++, Coremark, Stream etc., the test program stored can voluntarily increase.It is noted that since what is be added is source code herein, User is easily modified, can in response in the future expansion and change demand.
The selecting module 30 is connect with the setup module 10 and the scan module 20, for according to The source code of contained a variety of effect test programs in the Linux server of ARM generates one using dialog external members Dialog lists provide user and select to need the corresponding test program of content to be tested, to reach catechetical guiding installation, In this step, the source code of a variety of effect test programs contained in the server includes described preset built-in a variety of The source code for the effect test program that the source code of effect test program and the User Defined are added.
Described information acquisition module 40 is used to obtain the information of the Linux server of ARM hardware device itself, Include the core number of CPU, frequency, the size of DIMM capacity waits such information.
The collector 50 connects with the setup module 10, a scan module 20 and described information acquisition module It connects, the hardware device of source code and acquired Linux server for taking out the effect test program that user selects Information carries out cross compile according to the source code of above-mentioned effect test program and hardware information, is compiled into suitable for the ARM's The test program of Linux server.
The execution module 60 is connect with the collector 50, for according to preset number, cycle to be executed and compiled The test program being translated into, the test program being compiled into will be recycled by the execution module 60 to be executed until reaching preset time Number.
The report generating module 70 connect with the execution module 60 and executes be compiled into test journey for generating The test result report of sequence.
In conclusion the various embodiments described above and diagram be only the preferred embodiments of the invention, but cannot with restriction The range of present invention implementation, i.e., the equivalent changes and modifications made generally according to scope of the present invention patent should all belong to the present invention In the range that patent covers.

Claims (6)

1. a kind of efficiency automatic test approach of the Linux server based on ARM is suitable for the Linux services based on ARM Device comprises the steps of:
A. the source code based on a variety of effect test programs built in the Linux server of ARM is preset;
B. it according to the source code of contained a variety of effect test programs in the Linux server based on ARM, utilizes Dialog external members generate a dialog list, provide user and select to need the corresponding test program of content to be tested, to reach It is installed to catechetical guiding;
C. the information of the Linux server hardware device based on ARM itself is obtained, the information of the hardware device includes CPU Core number, frequency, the size of DIMM capacity;
D. the source code of the effect test program of user's selection and the hardware device of acquired Linux server are taken out Information carries out cross compile according to the source code of above-mentioned effect test program and hardware information, is compiled into and is based on suitable for described The test program of the Linux server of ARM;
E. according to preset number, cycle executes be compiled into test program;And
F. the test result report for executing be compiled into test program is generated.
2. the efficiency automatic test approach of the Linux server according to claim 1 based on ARM, it is characterised in that Following steps are further included between step a and b:Scan the effect test program source code that User Defined is added.
3. the efficiency automatic test approach of the Linux server according to claim 2 based on ARM, which is characterized in that In the step b, the source code of contained a variety of effect test programs includes institute in the Linux server based on ARM State the original of the source code of preset built-in a variety of effect test programs and the effect test program of User Defined addition Beginning code.
4. a kind of efficiency Auto-Test System of the Linux server based on ARM requires the efficiency described in 1 for perform claim Automatic test approach, which is characterized in that including:
One setup module is used for default described based on the original of a variety of effect test programs built in the Linux server of ARM Code;
One selecting module is connect with the setup module, for according to contained in the Linux server based on ARM A variety of effect test programs source code, using dialog external members generate a dialog list, provide user select need The corresponding test program of content to be tested, to reach catechetical guiding installation;
One data obtaining module, is used to obtain the information of the Linux server hardware device based on ARM itself, this is hard The information of part device includes the core number of CPU, frequency, the size of DIMM capacity;
One collector is connect with the setup module and described information acquisition module, the effect for taking out user's selection The information of the source code of energy test program and the hardware device of acquired Linux server, according to above-mentioned effect test journey The source code and hardware information of sequence carry out cross compile, are compiled into the test program of the Linux server based on ARM;
One execution module is connect with the collector, for according to preset number, cycle to execute be compiled into test Program;And
One report generating module is connect with the execution module for generating the test knot for executing be compiled into test program Fruit is reported.
5. the efficiency Auto-Test System of the according to claim 4 kind of Linux server based on ARM, it is characterised in that Further comprise a scan module, the scan module is connect with the selecting module and the collector, for scanning The effect test program source code that User Defined is added.
6. the efficiency Auto-Test System of the according to claim 5 kind of Linux server based on ARM, which is characterized in that The source code of contained a variety of effect test programs includes preset built-in a variety of effect test journeys in the server The source code for the effect test program that the source code of sequence and the User Defined are added.
CN201410817184.0A 2014-12-24 2014-12-24 The efficiency automatic test approach and its system of the Linux server of ARM Expired - Fee Related CN105786689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410817184.0A CN105786689B (en) 2014-12-24 2014-12-24 The efficiency automatic test approach and its system of the Linux server of ARM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410817184.0A CN105786689B (en) 2014-12-24 2014-12-24 The efficiency automatic test approach and its system of the Linux server of ARM

Publications (2)

Publication Number Publication Date
CN105786689A CN105786689A (en) 2016-07-20
CN105786689B true CN105786689B (en) 2018-09-18

Family

ID=56378380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410817184.0A Expired - Fee Related CN105786689B (en) 2014-12-24 2014-12-24 The efficiency automatic test approach and its system of the Linux server of ARM

Country Status (1)

Country Link
CN (1) CN105786689B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
CN103455132A (en) * 2013-08-20 2013-12-18 西安电子科技大学 Embedded system power consumption estimation method based on hardware performance counter
CN104035850A (en) * 2014-07-02 2014-09-10 浪潮电子信息产业股份有限公司 Verification method for memory bandwidth and pressure gradual-change parallelism

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228241A1 (en) * 2008-03-07 2009-09-10 Inventec Corporation System testing method through subsystem performance-based generator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
CN103455132A (en) * 2013-08-20 2013-12-18 西安电子科技大学 Embedded system power consumption estimation method based on hardware performance counter
CN104035850A (en) * 2014-07-02 2014-09-10 浪潮电子信息产业股份有限公司 Verification method for memory bandwidth and pressure gradual-change parallelism

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ARM Linux Benchmark的评测方法;TonyHo;《tonyho.github.io/ARM Linux BenchMark.html》;20130921;第1-2页 *

Also Published As

Publication number Publication date
CN105786689A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN106933709B (en) Test method and device
CN102880546B (en) Software integration testing method and system based on extensible markup language (XML) database
WO2016197768A1 (en) Chip verification method, device, and system
US20150227449A1 (en) Method and device for developing, compiling and debugging
CN109426516A (en) Software version management method and device
JP6045134B2 (en) Parallel workload simulation for application performance testing
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
Kim et al. Performance testing of mobile applications at the unit test level
US10592703B1 (en) Method and system for processing verification tests for testing a design under test
CN103279419A (en) Automation version verifying method and system based on B/S structural system
CN102541723A (en) Automated testing device for software testing
CN111124871A (en) Interface test method and device
CN105335287A (en) Automatic test method and device
CN105786695A (en) Data test method and system
CN114327861A (en) Method, apparatus, system and storage medium for executing EDA task
CN102567186A (en) Automated software testing method
US20230367936A1 (en) Verification method, electronic device and storage medium
CN103186384A (en) Business-component-oriented software designing and analyzing system and using method thereof
US20110046938A1 (en) Verification apparatus and design verification program
CN105786689B (en) The efficiency automatic test approach and its system of the Linux server of ARM
CN109144840A (en) A kind of test method, device and its equipment
CN111382065A (en) Verification process management system and method based on test template
CN109669829A (en) A kind of diagnosis adjustment method, device and server based on BMC
CN114942878A (en) Automatic performance testing method for internet application and related equipment
Peñil et al. Automatic synthesis from UML/MARTE models using channel semantics

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180918

Termination date: 20191224

CF01 Termination of patent right due to non-payment of annual fee