run_bug_detection.pl -- bug detection analysis for generated test suites.
run_bug_detection.pl -p project_id -d suite_dir -o out_dir [-f include_file_pattern] [-v version_id] [-t tmp_dir] [-D]
project_id
The id of the project for which the generated test suites are analyzed. See Project module for available project IDs.
The directory that contains the test suite archives. See Test Suites.
The output directory for the results and log files.
include_file_pattern
The pattern of the file names of the test classes that should be included (optional). Per default all files (*.java) are included.
version_id
Only analyze test suites for this version id (optional). Per default all test suites for the given project id are analyzed.
The temporary root directory to be used to check out program versions (optional). The default is /tmp.
Debug: Enable verbose logging and do not delete the temporary check-out directory (optional).
Runs the following worflow for each provided test suite (i.e., each test suite archive in suite_dir):
The results of the analysis are stored in the database table out_dir/TAB_BUG_DETECTION. The corresponding log files are stored in out_dir/TAB_BUG_DETECTION_log.
For each step the database table contains a column, indicating the result of the step or '-' if the step was not applicable. Note that the workflow is interrupted as soon as one of the steps fails and the script continues with the next test suite.
By default, the script logs all errors and warnings to run_bug_detection.pl.log in the temporary project root. Upon success, the log file of this script and the detailed bug detection results for each executed test suite are copied to: out_dir/TAB_BUG_DETECTION_log/project_id.
To be considered for the analysis, a test suite has to be provided as an archive in suite_dir. Format of the archive file name:
project_id-version_id-test_suite_src(\.test_id)?\.tar\.bz2
Note that test_id
is optional, the default is 1.
Examples: