Added top-level nosetests. Assumes certain additions to catkin.

This commit is contained in:
Brian Gerkey 2012-01-05 01:52:14 +00:00
parent e21fc0d56d
commit 64b78ea3b1
1 changed files with 14 additions and 2 deletions

View File

@ -3,6 +3,11 @@ project(ros)
find_package(catkin)
find_package(Boost COMPONENTS thread)
# Must call catkin_export_python() early, to ensure that things like
# rosunit are symlinked into build/bin, and can be found by things like
# add_gtest(), which is called from within lower-level CMakeLists.txts.
catkin_export_python()
foreach(subdir
core/roslib
tools/rosbash
@ -11,10 +16,17 @@ foreach(subdir
add_subdirectory(${subdir})
endforeach()
install(PROGRAMS
bin/rosrun
DESTINATION bin
)
catkin_export_python()
# nosetests are declared here to make them visible to the build system
# (e.g., for Jenkins to invoke) but keep them from polluting the pristine
# Python packages.
add_nosetests(core/roslib/test)
add_nosetests(tools/rosmake/test)
add_nosetests(tools/rosunit/test)
add_nosetests(tools/rosclean/test)
add_nosetests(tools/roscreate/test)