Find all paths which match the search criteria. All workspaces are searched in order. Each workspace, each search_in subfolder, the project name and the path are concatenated to define a candidate path. If the candidate path exists it is appended to the result list. Note: the search might return multiple paths for ‘share’ from devel- and source-space.
Parameters: |
|
---|---|
Raises ValueError: | |
if search_dirs contains an invalid folder name |
|
Returns: | List of paths |
Create a toplevel CMakeLists.txt in the root of a workspace.
The toplevel.cmake file is looked up either in the catkin workspaces contained in the CMAKE_PREFIX_PATH or relative to this file. Then it tries to create a symlink first and if that fails copies the file.
It installs manifest.xml to share/${PROJECT_NAME}.
Note
The symlink is absolute when catkin is found outside the workspace_dir (since that indicates a different workspace and it may change relative location to the workspace referenced as a parameter). The symlink is relative when catkin is part of the to-be-initialized workspace.
Parameters: | workspace_dir (string) – the path to the workspace where the CMakeLists.txt should be created |
---|
bulk replace of version: searches for package.xml files directly in given folders and replaces version tag within.
Parameters: |
|
---|---|
Raises RuntimeError: | |
if any one package.xml cannot be updated |
Same as aggregate_results2 except it doesn’t return num_skipped.
Aggregate results
Parameters: | results – dict as from test_results() |
---|---|
Returns: | tuple (num_tests, num_errors, num_failures, num_skipped) |
Same as print_summary2 except it doesn’t print skipped tests.
print summary to stdout
Parameters: |
|
---|
Same as read_junit2 except it doesn’t return num_skipped.
parses xml file expected to follow junit/gtest conventions see http://code.google.com/p/googletest/wiki/AdvancedGuide#Generating_an_XML_Report
Parameters: | filename – str junit xml file name |
---|---|
Returns: | num_tests, num_errors, num_failures, num_skipped |
Raises: |
|
Same as test_results2 except the returned values don’t include num_skipped.
Collects test results by parsing all xml files in given path, attempting to interpret them as junit results.
Parameters: |
|
---|---|
Returns: | dict {rel_path, (num_tests, num_errors, num_failures, num_skipped)} |