Skip to content

Commit

Permalink
tests: adding test to try to reproduce failing ctest reported in #354
Browse files Browse the repository at this point in the history
  • Loading branch information
jbohren committed Apr 22, 2016
1 parent 6bc4b53 commit a18bc5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/system/verbs/catkin_build/test_unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,18 @@ def test_build_pkg_unit_tests_broken():
assert catkin_success(
['run_tests', 'python_tests_err', '--no-deps', '--no-notify', '--no-status'])
assert_cmd_failure(['catkin_test_results', 'build/python_tests_err'])


@in_temporary_directory
def test_ctest():
"""Test ctest-based tests"""
cwd = os.getcwd()
source_space = os.path.join(cwd, 'src')
shutil.copytree(os.path.join(RESOURCES_DIR, 'cmake_pkgs'), source_space)

with redirected_stdio() as (out, err):
assert catkin_success(
['build', '--no-notify', '--no-status', '--verbose', 'test_pkg'])
assert catkin_success(
['build', '--no-notify', '--no-status', '--verbose', '--no-deps',
'test_pkg', '--make-args', 'test'])

0 comments on commit a18bc5d

Please sign in to comment.