Difference between revisions of "Delta debugging testcase 02"
RichardChu (talk | contribs) (→Test Method) |
RichardChu (talk | contribs) (→Test Method) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | ([[Delta_debugging_testcases|Back to Delta Debugging Test Cases]]) | ||
+ | |||
== Name == | == Name == | ||
Line 31: | Line 33: | ||
== Test Method == | == Test Method == | ||
− | * Download the source code. | + | * Download the source code '''from the repository!'''. This test can't be run from the zipped source code. |
+ | <pre> svn checkout svn://cdot.senecac.on.ca/deltatest </pre> | ||
* run deltadebugsudoku.pl | * run deltadebugsudoku.pl | ||
perl deltadebugsudoku.pl | perl deltadebugsudoku.pl | ||
* It should be able to find the last known good revision (revision 4) | * It should be able to find the last known good revision (revision 4) | ||
− | * Fails on finding the minimal set of failure inducing directories and files. | + | * Fails on finding the minimal set of failure inducing directories and files. The reason for this is still being investigated. The suspected reason is inconsistent or unreliable test case. |
Latest revision as of 23:05, 13 December 2006
(Back to Delta Debugging Test Cases)
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
- Download the source code from the repository!. This test can't be run from the zipped source code.
svn checkout svn://cdot.senecac.on.ca/deltatest
- run deltadebugsudoku.pl
perl deltadebugsudoku.pl
- It should be able to find the last known good revision (revision 4)
- Fails on finding the minimal set of failure inducing directories and files. The reason for this is still being investigated. The suspected reason is inconsistent or unreliable test case.