Towards Automatic and Flexible Unit Test Generation for Legacy HPC Code

被引:0
|
作者
Hovy, Christian [1 ]
Kunkel, Julian [2 ]
机构
[1] Univ Hamburg, Dept Informat, Hamburg, Germany
[2] Deutsch Klimarechenzentrum GmbH, Hamburg, Germany
关键词
D O I
10.1109/SE-HPCCSE.2016.6
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Unit testing is an established practice in professional software development. However, in high-performance computing (HPC) with its scientific applications, it is not widely applied. Besides general problems regarding testing of scientific software, for many HPC applications the effort of creating small test cases with a consistent set of test data is high. We have created a tool called FortranTestGenerator, that significantly reduces the effort of creating unit tests for subroutines of an existing Fortran application. It is based on Capture & Replay (C&R), that is, it extracts data while running the original application and uses the extracted data as test input data. The tool automatically generates code for capturing the input data and a basic test driver which can be extended by the developer to an appropriate unit test. A static source code analysis is conducted, to reduce the number of captured variables. Code is generated based on flexibly customizable templates. Thus, both the capturing process and the unit tests can easily be integrated into an existing software ecosystem. Since most HPC applications use message passing for parallel processing, we also present an approach to extend our C&R model to MPI communication. This allows extraction of unit tests from massively parallel applications that can be run with a single process.
引用
收藏
页码:1 / 8
页数:8
相关论文
共 50 条
  • [1] Random Test Case Generation and Manual Unit Testing: Substitute or Complement in Retrofitting Tests for Legacy Code?
    Ramler, Rudolf
    Winkler, Dietmar
    Schmidt, Martina
    2012 38TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA), 2012, : 286 - 293
  • [2] Enhancing UML expressivity towards automatic code generation
    Pais, APV
    Oliveira, CET
    OOIS 2001: 7TH INTERNATIONAL CONFERENCE ON OBJECT-ORIENTED INFORMATION SYSTEMS, PROCEEDINGS, 2001, : 335 - 344
  • [3] Towards execution in automatic test suite generation
    Zhao, Y.X.
    Wang, J.G.
    Wu, J.P.
    Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2001, 38 (01):
  • [4] Towards execution in automatic test suite generation
    Zhao, YX
    Wu, JP
    CHINESE JOURNAL OF ELECTRONICS, 2001, 10 (01): : 24 - 28
  • [5] The Design of an Automated Unit Test Code Generation System
    Fix, Gary
    PROCEEDINGS OF THE 2009 SIXTH INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: NEW GENERATIONS, VOLS 1-3, 2009, : 743 - 747
  • [6] Towards Automatic Code Generation for Robotic Soccer Behavior Simulation
    Sales, Raoni
    Mascarenhas, Ana Patricia Fontes Magalhaes
    Simoes, Marco A. C.
    Rodrigues de Souza, Josemar
    JOURNAL OF INTELLIGENT & ROBOTIC SYSTEMS, 2024, 110 (01)
  • [7] Towards Automatic Code Generation for Robotic Soccer Behavior Simulation
    Raoni Sales
    Ana Patrícia Fontes Magalhães Mascarenhas
    Marco A. C. Simões
    Josemar Rodrigues de Souza
    Journal of Intelligent & Robotic Systems, 2024, 110
  • [8] An Approach to Automatic Test Case Generation for Unit Testing
    Liu, Pan
    Xu, Zhenning
    Ai, Jun
    2018 IEEE 18TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C), 2018, : 545 - 552
  • [9] Automatic test data generation from embedded C code
    Dillon, E
    Meudec, C
    COMPUTER SAFETY, RELIABILITY, AND SECURITY, PROCEEDINGS, 2004, 3219 : 180 - 194
  • [10] Towards automatic generation of relevance judgments for a test collection
    Makary, Mireille
    Oakes, Michael
    Yamout, Fadi
    2016 ELEVENTH INTERNATIONAL CONFERENCE ON DIGITAL INFORMATION MANAGEMENT (ICDIM 2016), 2016, : 121 - 126