Automatic test program generation method
AssigneesHitachi, Ltd., Hitachi Information Technology Co., Ltd.
InventorsNaohiro Kageyama, Zentaro Hirose, Michiyuki Kawauchi, Takeshi Fukuma
Life of this patent
Estimating the term…
Abstract
Architecturally complicated computers require functionally complicated compiler. For such a compiler, the present invention provides an automatic compiler test program generation method capable of reducing the man-hour required to prepare a test program and testing many aspects of the compiler. By a random number-used method, a plurality of program cells are selected from a set of program cells each of which may form an element of a test program. The selected program cells are combined into a test program.
Claims13
An automatic compiler test program generation method, comprising the steps of:
- selecting a plurality of sub-procedural descriptions by a random number-used method from a set of sub-procedural descriptions each of which may form an element of a compiler test program;
- and
- combining the selected sub-procedural descriptions to generate a compiler test program.
An automatic compiler test program generation method, comprising the steps of:
- selecting a plurality of program cells by a random number-used method from a set of program cells each of which may form an element of a test program for a compiler after compiled by the compiler;
- and
- combining the selected program cells to generate a test program;
- wherein each program cell has a description which specifying whether the program cell is to be compiled alone or in combination with the other selected program cells.
A compiler test system comprising:
- test program generation means for generating a test-program;
- testing means for taking in the generated test program, compiling the test program by using a test target compiler and outputting an execution result;
- expected value generating means for taking in the generated test program, compiling the test program by using a proven compiler and outputting an expected value;
- and
- result comparison means for taking in the execution result and the expected value for comparison with each other and storing the comparison result in a storage unit as a test result.
A compiler test method comprising the steps of:
- generating a test program;
- taking in the generated test program, compiling the test program by using a test target compiler and outputting an execution result;
- taking in the generated test program, compiling the test program by using a proven compiler and outputting an expected value;
- taking in the execution result and the expected value for comparison with each other;
- and
- storing the comparison result in a storage unit as a test result.
A program product for allowing a computer to execute a functional verification process for a compiler, said functional verification process comprising the steps of:
- selecting a plurality of sub-procedural descriptions by a random number-used method from a set of sub-procedural descriptions each of which may form an element of a test program for a compiler;
- combining the selected sub-procedural descriptions to generate a test program;
- taking in the generated test program, compiling the test program by using a test target compiler and outputting an execution result;
- taking in the generated test program, compiling the test program by using a proven compiler and outputting an expected value;
- taking in the execution result and the expected value for comparison with each other;
- and
- storing the comparison result in a storage unit as a test result.
Dependencies are inferred from the claim text.