Difference between revisions of "Delta debugging testcase 02"

From CDOT Wiki
Jump to: navigation, search
 
(Components)
Line 15: Line 15:
 
'''SudokuBuild.pl'''
 
'''SudokuBuild.pl'''
 
* Build Script.
 
* Build Script.
* User should modify the shell call here to reflect the C++ compiler in the system.
+
* It builds the program, creating an '''a.exe''' file if compilation is successful.
* If the compilation fails, '''a.out''' file will not be generated.
+
* If the compilation fails, '''a.exe''' file will not be generated.
  
 
'''SudokuTestCase1.pm'''
 
'''SudokuTestCase1.pm'''
* Test Module.
+
* The Test Module.
* Tests the '''a.out''' output file produced by UNIX C++ compiler.
+
* Wrapper around the real test case ('''SudokuTest.cpp''' located in the Sudoku folder). It runs the test case and reports the results of the test (pass or fail).
 +
 
 +
'''SudokuTest.cpp'''
 +
* The actual test case.  
  
 
'''deltadebugsudoku.pl'''
 
'''deltadebugsudoku.pl'''
 
* Delta Debugging Script.
 
* Delta Debugging Script.
* Runs the Delta Debugging Algorithm to detect failed test (in this case, compilation error) and perform fixes.
+
* Runs the Delta Debugging Algorithm to detect the failed test (in this case, wrong output from a function) and attempt to find the failure inducing changes.
 
 
'''testsudokubuild.pl'''
 
* Unit test, runs the build.
 
 
 
'''testsudokutest.pl'''
 
* Unit test, runs the test.
 
  
 
== Test Method ==
 
== Test Method ==

Revision as of 19:40, 13 December 2006

Name

Sudoku Test

Description

This test case compiles and runs the Sudoku program written in C++, made by Richard Chu for the Design Patterns class. The purpose of this test is to demonstrate how the algorithm build system can be customized to use other compilers or build systems in the host environment.

Repository

The test uses svn://cdot.senecac.on.ca/deltatest.

Components

SudokuBuild.pl

  • Build Script.
  • It builds the program, creating an a.exe file if compilation is successful.
  • If the compilation fails, a.exe file will not be generated.

SudokuTestCase1.pm

  • The Test Module.
  • Wrapper around the real test case (SudokuTest.cpp located in the Sudoku folder). It runs the test case and reports the results of the test (pass or fail).

SudokuTest.cpp

  • The actual test case.

deltadebugsudoku.pl

  • Delta Debugging Script.
  • Runs the Delta Debugging Algorithm to detect the failed test (in this case, wrong output from a function) and attempt to find the failure inducing changes.

Test Method