|
ABSTRACT
In this paper we present techniques to find subsets of nodes of a flowgraph that satisfy the following property: A test set that exercises all nodes in a subset exercises all nodes in the flowgraph. Analogous techniques to find subsets of edges are also proposed. These techniques may be used to significantly reduce the cost of coverage testing of programs. A notion of a super block consisting of one or more basic blocks in that super block must be exercised by the same input. Dominator relationships among super blocks are used to identify a subset of the super blocks whose coverage implies that of all super blocks and, in turn, that of all basic blocks. Experiments with eight systems in the range of 1-75K lines of code show that, on the average, test cases targeted to cover just 29% of the basic blocks and 32% of the branches ensure 100% block and branch coverage, respectively.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
| |
2
|
Alfred V. Aho , John E. Hopcroft , Jeffrey Ullman , J. D. Ullman , J. E. Hopcroft, Data Structures and Algorithms, Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1983
|
| |
3
|
Alfred V. Aho , Ravi Sethi , Jeffrey D. Ullman, Compilers: principles, techniques, and tools, Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1986
|
 |
4
|
|
| |
5
|
|
| |
6
|
|
| |
7
|
S. L. Graham, P. B. Kessler, and M. K. McKusick. An execution profiler for modular programs. Software Practice and Experience, 13:671-685, 1983.
|
 |
8
|
|
 |
9
|
|
| |
10
|
J. R. Horgan and S. L. London. ATAC: A data flow coverage testing tool for C. In Proceedings of the Symposium on Assessment of Quality Software Development Tools, pages 2-10. IEEE Computer Society Press, May 1992.
|
| |
11
|
D. E. Knuth and F. R. Stevenson. Optimal measurement points for program frequency counts. BIT, 13:313-322, 1973.
|
 |
12
|
|
 |
13
|
|
| |
14
|
|
| |
15
|
R. L. Probert. Optimal insertion of software probes in well-delimited programs. IEEE Transactions on Software Engineering, SE-8(1):34-42, Jan. 1982.
|
 |
16
|
|
| |
17
|
C. V. Ramamoorthy, K. H. Kim, and W. T. Chert. Optimal placement of software monitors aiding systematic testing. IEEE Transactions on Software Engineering, SE-1(4):403-411, Dec. 1975.
|
CITED BY 23
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Hira Agrawal , James L. Alberi , Joseph R. Horgan , J. Jenny Li , Saul London , W. Eric Wong , Sudipto Ghosh , Norman Wilde, Mining System Tests to Aid Software Maintenance, Computer, v.31 n.7, p.64-73, July 1998
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
REVIEW
"Peter A. Bigot : Reviewer"
Complete testing of a software system requires that each component
within it be exercised by at least one input in a test suite. The author
presents a program analysis that extends the dominator relation of
flowgraphs to yield a un
more...
|