-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catkin test: add option to manually specify test target
- Loading branch information
Showing
10 changed files
with
109 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/system/resources/catkin_pkgs/python_tests_targets/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cmake_minimum_required(VERSION 2.8.12) | ||
project(python_tests_targets) | ||
find_package(catkin REQUIRED) | ||
|
||
catkin_package() | ||
|
||
if(CATKIN_ENABLE_TESTING) | ||
catkin_add_nosetests(test_good.py) | ||
catkin_add_nosetests(test_bad.py) | ||
endif() |
11 changes: 11 additions & 0 deletions
11
tests/system/resources/catkin_pkgs/python_tests_targets/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<package> | ||
<name>python_tests_targets</name> | ||
<version>0.1.0</version> | ||
<license>BSD</license> | ||
<maintainer email="todo@todo.com">todo</maintainer> | ||
<description>This package contains two python tests.</description> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<test_depend>unittest</test_depend> | ||
</package> | ||
|
6 changes: 6 additions & 0 deletions
6
tests/system/resources/catkin_pkgs/python_tests_targets/setup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python | ||
from distutils.core import setup | ||
from catkin_pkg.python_setup import generate_distutils_setup | ||
|
||
d = generate_distutils_setup() | ||
setup(**d) |
12 changes: 12 additions & 0 deletions
12
tests/system/resources/catkin_pkgs/python_tests_targets/test_bad.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python | ||
|
||
import unittest | ||
|
||
|
||
class TestBad(unittest.TestCase): | ||
|
||
def test_zero(self): | ||
self.assertEqual(0, 1) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
12 changes: 12 additions & 0 deletions
12
tests/system/resources/catkin_pkgs/python_tests_targets/test_good.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python | ||
|
||
import unittest | ||
|
||
|
||
class TestGood(unittest.TestCase): | ||
|
||
def test_zero(self): | ||
self.assertEqual(0, 0) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters