首页> 外文学位 >The analysis and generation of tests for programming language translators.
【24h】

The analysis and generation of tests for programming language translators.

机译:编程语言翻译人员的测试分析和生成。

获取原文
获取原文并翻译 | 示例

摘要

This thesis addresses the automation of two aspects of compiler validation testing: semantic analysis of existing test programs, and construction of new test programs. Semantic analysis is required during test modification and maintenance, and also when evaluating the language coverage attained by the test suite. In the current state of practice, both the semantic analysis and the construction of new test programs are extremely labor-intensive tasks; both, however, are amenable to automation. We describe two systems; one, which we have implemented, involves test case analysis and feature identification. The other is a proposed system for automatic generation of tests from test specifications. We tested our methods on the largest and most comprehensive compiler validation project to date--the Ada Compiler Validation Capability (ACVC), a large collection of Ada test programs used to verify that compilers conform to the Ada language standard.;We first describe the Ada Features Identification System (AFIS), a system which automates test program analysis. AFIS provides three different methods for identifying Ada language features in test programs, ranging from elementary syntactic items to complex context-sensitive combinations of semantic features. Semantic feature combinations are specified by writing program templates in a pattern language which is an extension of Ada, and pattern-matching these templates against test programs.;In the second part of this thesis we define a language to facilitate the specification of Ada compiler test objectives, and the design of a system that uses these specifications to automatically generate valid Ada test programs. The language allows a test developer to write a specification that embodies the testing goal of a given objective, without including all type and expression information required in a complete test program. These details are supplied automatically by the generator system. We show, by numerous examples taken from the Ada Implementors Guide (the design document for the Ada validation suite), how Ada test objectives can be specified in this language. The focus of our examples is constraint violation checking, which is an important component of Ada's strong typing system, and also a basic organizing principle of the ACVC tests.
机译:本文讨论了编译器验证测试的两个方面的自动化:现有测试程序的语义分析和新测试程序的构建。在测试修改和维护期间,以及在评估测试套件所达到的语言覆盖范围时,都需要进行语义分析。在当前的实践状态下,语义分析和新测试程序的构建都是非常劳动密集型的任务。但是,两者都适合自动化。我们描述了两个系统;我们已经实现的一种涉及测试用例分析和功能识别。另一个是提出的系统,用于根据测试规范自动生成测试。我们在迄今为止最大,最全面的编译器验证项目-Ada编译器验证功能(ACVC)中测试了我们的方法,Ada编译器验证功能(ACVC)是大量Ada测试程序的集合,用于验证编译器是否符合Ada语言标准。 Ada功能识别系统(AFIS),该系统可自动执行测试程序分析。 AFIS提供三种不同的方法来识别测试程序中的Ada语言功能,从基本句法项目到复杂的上下文相关语义功能组合。通过使用作为Ada的扩展的模式语言编写程序模板,并根据测试程序对这些模板进行模式匹配,来指定语义特征组合。在本文的第二部分,我们定义了一种语言,以方便Ada编译器测试的规范目标,以及使用这些规范自动生成有效的Ada测试程序的系统设计。该语言使测试开发人员可以编写体现给定目标的测试目标的规范,而无需在完整的测试程序中包含所有类型和表达式信息。这些详细信息由生成器系统自动提供。通过从《 Ada实施者指南》(Ada验证套件的设计文档)中获取的大量示例,我们展示了如何用这种语言指定Ada测试目标。我们的示例的重点是约束违例检查,它是Ada强大的键入系统的重要组成部分,也是ACVC测试的基本组织原理。

著录项

  • 作者

    Rennels, Deborah Jo.;

  • 作者单位

    New York University.;

  • 授予单位 New York University.;
  • 学科 Computer science.
  • 学位 Ph.D.
  • 年度 1992
  • 页码 193 p.
  • 总页数 193
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号