基于dejagnu平台的binutils自动测试设计与实现-计算机软件与理论专业论文.docxVIP

  • 187
  • 0
  • 约5.26万字
  • 约 65页
  • 2019-01-09 发布于上海
  • 举报

基于dejagnu平台的binutils自动测试设计与实现-计算机软件与理论专业论文.docx

基于dejagnu平台的binutils自动测试设计与实现-计算机软件与理论专业论文

浙江人学坝Ij学位论文 浙江人学坝Ij学位论文 摘要 摘要 软件测试是保证软件质量与可靠性的重要手段,随着软件复杂性的提高,软 件测试在软件开发过程中的地位也越来越重要。然而,软件测试过程复杂,且重 复性较高。提高软件测试的自动化程度能够大幅度降低人力投入和时间成本。高 性能嵌入式cpu关键技术是国家科技重大专项一“核高基项目中的一部分,本 课题以此技术为背景,主要研究与cpu配套工具链的自动化测试,具有重要的研 究价值和实际意义。 本文首先简要概述了软件测试相关知识、gnu binutils工具集以及测试所采 用的dejagnu平台。然后针对通用汇编器的测试特点,融入了语句等价指令的概 念,提出了一种自动生成测试用例的模型。该模型按照特定规则划分相应的指令 集,实现把指令集划分成多个语句等价指令集合的目的,然后根据等价类划分、 边界值分析等测试用例的设计原则分别为每个语句等价指令集合选择测试语句, 生成相应的测试用例。 本文把此模型应用于基于CSKY V2指令集的汇编器测试过程,按照语法规则、 操作数范围以及指令的16/32位映射方式划分该指令集,接着对每个划分子集分 别选择测试语句和生成测试用例,然后在dejagnu提供的自动测试平台上,利用 生成的测试用例对汇编器进行测试,并对测试结果进行分析。在工程实践中,该 模型在保证测试用例正确性的前提下,减少了测试人员的工作量,显著提高了整 个工具链测试的自动化程度。 关键词: 软件测试,dejagnu,指令集划分,语句等价指令,测试用例 浙江人学顸}j学位论文 浙江人学顸}j学位论文 Abstract Abstract Software testing has been widely used as an important means to ensure software quality and reliability,and with the increasing complexity of software,software testing is becoming more and more important in the software development process.However, software testing process is always complicated and highly repetitive,improving the level of software test automation contributes to greatly reduce labor cost and time efforts.Under the background of high—performance embedded CPU key technology,which is a part of National Core—High-Base Major Project,study on the automation test of CPU supporting tool—chain has important academic value and realistic significance. This paper first briefly introduces the basic knowledge of software testing, gnu binutils tool set and the dejagnu test platform which is adopted in assembler testing in our study.Then in view of general assembler testing feature,a testcase automatic genemtion model for assembler testing is proposed in this paper with the concept of the statement equivalent instructions. The model first divides the corresponding instruction set into several statement equivalent instructions sets according to certain rules,and t

文档评论(0)

1亿VIP精品文档

相关文档