Font Size: a A A

Design And Implementation Of Driver Testing Framework Based On Vala Language

Posted on:2024-05-22Degree:MasterType:Thesis
Country:ChinaCandidate:Z Y FanFull Text:PDF
GTID:2542307079458704Subject:Instrument Science and Technology
Abstract/Summary:
With the continuous improvement of the performance indicators of instruments and equipment,the software testing of instruments and equipment has gradually become the key development direction of the instrument software industry.Test developers usually use test frameworks to build test programs,while the existing test frameworks are mostly designed for pure software systems,which cannot meet the test requirements of instrument user-level drivers.Additionally,instrument software testing is usually implemented in a process-oriented way combined with breakpoint debugging,which makes the testing non-regressive and non-repeatable.In order to solve the above problems,this thesis designs a software testing framework called VMTest(Vala Mock Test),which has the function of testing and designing user-level drivers for instruments and is applicable to the testing and development of instrument systems.The main research content of this thesis is as follows.1.In order to solve the problem that the driver needs the programming language to have high build-time efficiency and run-time efficiency,Vala language is used to write the instrument system driver and test framework.The VMTest framework has the functions of running time test,test case reuse and test log generation.2.In order to solve the problem of high coupling between instrument driver and hardware,which is difficult to test program logic,the layered test method of driver logic and IO logic is adopted,and the test auxiliary function provided by the test framework is used.The test auxiliary function is composed of container and mock function,and the decoupling of hardware is realized by building mock object.3.The testing framework has designed a parallel testing function to address the issue of difficulty in testing instrument functional modules working simultaneously.This function can analyze dependency graph,build adjacency matrix,automatically determine the execution priority of test,allocate thread resources,and improve test efficiency.4.Taking the driver program of SOC testing system and DDR memory testing system as an example,the application of test framework in practical cases is studied.The test plan is formulated by combining the software test method and project development method.After the test is completed,the test results are counted,and the test results are analyzed with the code coverage as an indicator,which proves the practicability of the test framework.5.The basic testing function,instrument driven testing function,and test program execution entry of the framework were tested,and its functional stability was verified.In addition,efficiency testing has demonstrated that the parallel testing function has higher testing efficiency.VMTest has been applied in arbitrary wave generator system,PXIe data acquisition system,SOC test system and DDR memory test system.It has been proved by the practical application of several projects that the use of this test framework can effectively and comprehensively test the instrument driver.
Keywords/Search Tags:Instrument Driver, Test Framework, Software Test, Test Method
Related items