utest::RospackTestCase Class Reference

Process-level tests of rospack executable. More...

List of all members.

Public Member Functions

def check_ordered_list
def check_unordered_list
def echeck_ordered_list
def echeck_unordered_list
def erospack_fail
 assert that rospack fails on the specified args.
def erospack_succeed
 assert that rospack succeeds on the specified args
def erun_rospack
def erun_rospack_status
def rospack_fail
 assert that rospack fails on the specified args
def rospack_succeed
 assert that rospack succeeds on the specified args
def run_rospack
def run_rospack_status
 runs rospack with ROS_ROOT set to .
def strip_opt_ros
def test_backquote_invalid
def test_bad_ros_root
def test_cflags_backquote
def test_circular
def test_depends_on
def test_depends_on1
def test_depends_on_nonexistent
def test_deps
 DEPENDENCIES.
def test_deps1
def test_deps1_invalid
def test_deps_indent
def test_deps_invalid
def test_deps_manifests
def test_empty_cflags
def test_empty_lflags
def test_empty_ros_package_path
 test rospack with ROS_PACKAGE_PATH set to the empty string
def test_empty_vcs
def test_export_bad
def test_export_cpp
 EXPORT.
def test_export_non_existent_attrib
def test_export_roslang
def test_fake_option
def test_invalid_option
def test_invalid_option_order
def test_langs
def test_langs_disable
def test_langs_empty
def test_lflags_archive
def test_Lflags_backquote
def test_lflags_backquote
def test_lflags_base
def test_lflags_deps
def test_lflags_deps_only
def test_lflags_invalid
def test_lflags_no_package_attrib
def test_list_duplicates
 tests list-duplicates
def test_msg_gen
def test_no_option
 ARG PARSING.
def test_no_package_allowed
def test_no_package_allowed_bad
def test_no_ros_root
 ENVIRONMENT TEST.
def test_plugins
 Plugins.
def test_plugins_bad
def test_profile
def test_quiet_option
def test_ros_cache_timeout
def test_ros_home
def test_ros_in_package
def test_ros_package_path_bad_paths
def test_ros_package_path_colons
def test_ros_package_path_direct_package
def test_ros_package_path_precedence
 tests internal rpp precedence (#2854)
def test_ros_package_path_precedence_1
 tests rpp vs rr precedence
def test_ros_root_ros_package_path_identical
 test rospack with ROS_ROOT=ROS_PACKAGE_PATH
def test_rosdep
def test_rospack_depends_on_not_a_package
 test rospack depends-on1 in a directory that's not a package (#2556)
def test_rospack_find_direct
 test rospack find with ros_package_path set directly to a package
def test_rospack_find_direct_with_rospack_nosubdirs
 test rospack find with ros_package_path set directly to a package, where that package contains a rospack_nosubdirs file, #3191.
def test_rospack_find_fail
 rospack find
def test_rospack_find_no_rpp
def test_rospack_list_dups
def test_rospack_list_empty
 test rospack list on an empty tree
def test_rospack_list_names_dups
def test_rospack_list_names_empty
 test rospack list-names on an empty tree
def test_rospack_list_names_no_rpp
def test_rospack_list_no_rpp
def test_vcs0_deps
def test_vcs_deps
def test_vcs_invalid
def test_vcs_no_type_or_url

Private Member Functions

def _check_rospack_list
def _rospack_langs
def _rospack_list
 rospack list
def _rospack_list_names
 rospack list-names
def _run_rospack
 runs rospack with ROS_ROOT set to .

Detailed Description

Process-level tests of rospack executable.

Definition at line 77 of file utest.py.


Member Function Documentation

def utest::RospackTestCase::_check_rospack_list (   self,
  expected,
  retval 
) [private]

Definition at line 527 of file utest.py.

def utest::RospackTestCase::_rospack_langs (   self,
  ros_root,
  ros_package_path,
  ros_lang_disable 
) [private]

Definition at line 830 of file utest.py.

def utest::RospackTestCase::_rospack_list (   self,
  ros_root,
  ros_package_path 
) [private]

rospack list

Definition at line 512 of file utest.py.

def utest::RospackTestCase::_rospack_list_names (   self,
  ros_root,
  ros_package_path 
) [private]

rospack list-names

Definition at line 577 of file utest.py.

def utest::RospackTestCase::_run_rospack (   self,
  ros_root,
  ros_package_path,
  pkgname,
  command 
) [private]

runs rospack with ROS_ROOT set to .

/test and ROS_PACKAGE_PATH unset

Returns:
int, str: return code, stdout

Definition at line 81 of file utest.py.

def utest::RospackTestCase::check_ordered_list (   self,
  command,
  tests 
)

Definition at line 175 of file utest.py.

def utest::RospackTestCase::check_unordered_list (   self,
  command,
  tests 
)

Definition at line 196 of file utest.py.

def utest::RospackTestCase::echeck_ordered_list (   self,
  command,
  tests 
)

Definition at line 187 of file utest.py.

def utest::RospackTestCase::echeck_unordered_list (   self,
  command,
  tests 
)

Definition at line 206 of file utest.py.

def utest::RospackTestCase::erospack_fail (   self,
  ros_root,
  ros_package_path,
  package,
  command 
)

assert that rospack fails on the specified args.

includes ROS_ROOT and ROS_PACKAGE_PATH

Definition at line 158 of file utest.py.

def utest::RospackTestCase::erospack_succeed (   self,
  ros_root,
  ros_package_path,
  package,
  command 
)

assert that rospack succeeds on the specified args

Definition at line 169 of file utest.py.

def utest::RospackTestCase::erun_rospack (   self,
  ros_root,
  ros_package_path,
  pkgname,
  command 
)
Returns:
str: stdout

Definition at line 138 of file utest.py.

def utest::RospackTestCase::erun_rospack_status (   self,
  ros_root,
  ros_package_path,
  pkgname,
  command 
)
Returns:
int: status code

Definition at line 148 of file utest.py.

def utest::RospackTestCase::rospack_fail (   self,
  package,
  command 
)

assert that rospack fails on the specified args

Definition at line 152 of file utest.py.

def utest::RospackTestCase::rospack_succeed (   self,
  package,
  command 
)

assert that rospack succeeds on the specified args

Definition at line 163 of file utest.py.

def utest::RospackTestCase::run_rospack (   self,
  pkgname,
  command 
)
Returns:
str: stdout

Definition at line 133 of file utest.py.

def utest::RospackTestCase::run_rospack_status (   self,
  pkgname,
  command 
)

runs rospack with ROS_ROOT set to .

/test and ROS_PACKAGE_PATH unset

Returns:
int: status code

Definition at line 143 of file utest.py.

def utest::RospackTestCase::strip_opt_ros (   self,
  flags 
)

Definition at line 734 of file utest.py.

def utest::RospackTestCase::test_backquote_invalid (   self  ) 

Definition at line 730 of file utest.py.

def utest::RospackTestCase::test_bad_ros_root (   self  ) 

Definition at line 396 of file utest.py.

def utest::RospackTestCase::test_cflags_backquote (   self  ) 

Definition at line 755 of file utest.py.

def utest::RospackTestCase::test_circular (   self  ) 

Definition at line 713 of file utest.py.

def utest::RospackTestCase::test_depends_on (   self  ) 

Definition at line 678 of file utest.py.

def utest::RospackTestCase::test_depends_on1 (   self  ) 

Definition at line 691 of file utest.py.

def utest::RospackTestCase::test_depends_on_nonexistent (   self  ) 

Definition at line 701 of file utest.py.

def utest::RospackTestCase::test_deps (   self  ) 

DEPENDENCIES.

Definition at line 655 of file utest.py.

def utest::RospackTestCase::test_deps1 (   self  ) 

Definition at line 666 of file utest.py.

def utest::RospackTestCase::test_deps1_invalid (   self  ) 

Definition at line 804 of file utest.py.

def utest::RospackTestCase::test_deps_indent (   self  ) 

Definition at line 823 of file utest.py.

def utest::RospackTestCase::test_deps_invalid (   self  ) 

Definition at line 675 of file utest.py.

def utest::RospackTestCase::test_deps_manifests (   self  ) 

Definition at line 816 of file utest.py.

def utest::RospackTestCase::test_empty_cflags (   self  ) 

Definition at line 779 of file utest.py.

def utest::RospackTestCase::test_empty_lflags (   self  ) 

Definition at line 773 of file utest.py.

def utest::RospackTestCase::test_empty_ros_package_path (   self  ) 

test rospack with ROS_PACKAGE_PATH set to the empty string

Definition at line 413 of file utest.py.

def utest::RospackTestCase::test_empty_vcs (   self  ) 

Definition at line 785 of file utest.py.

def utest::RospackTestCase::test_export_bad (   self  ) 

Definition at line 322 of file utest.py.

def utest::RospackTestCase::test_export_cpp (   self  ) 

EXPORT.

Definition at line 347 of file utest.py.

def utest::RospackTestCase::test_export_non_existent_attrib (   self  ) 

Definition at line 367 of file utest.py.

def utest::RospackTestCase::test_export_roslang (   self  ) 

Definition at line 360 of file utest.py.

def utest::RospackTestCase::test_fake_option (   self  ) 

Definition at line 221 of file utest.py.

def utest::RospackTestCase::test_invalid_option (   self  ) 

Definition at line 224 of file utest.py.

def utest::RospackTestCase::test_invalid_option_order (   self  ) 

Definition at line 317 of file utest.py.

def utest::RospackTestCase::test_langs (   self  ) 

Definition at line 849 of file utest.py.

def utest::RospackTestCase::test_langs_disable (   self  ) 

Definition at line 859 of file utest.py.

def utest::RospackTestCase::test_langs_empty (   self  ) 

Definition at line 870 of file utest.py.

def utest::RospackTestCase::test_lflags_archive (   self  ) 

Definition at line 759 of file utest.py.

def utest::RospackTestCase::test_Lflags_backquote (   self  ) 

Definition at line 751 of file utest.py.

def utest::RospackTestCase::test_lflags_backquote (   self  ) 

Definition at line 726 of file utest.py.

def utest::RospackTestCase::test_lflags_base (   self  ) 

Definition at line 709 of file utest.py.

def utest::RospackTestCase::test_lflags_deps (   self  ) 

Definition at line 765 of file utest.py.

def utest::RospackTestCase::test_lflags_deps_only (   self  ) 

Definition at line 769 of file utest.py.

def utest::RospackTestCase::test_lflags_invalid (   self  ) 

Definition at line 798 of file utest.py.

def utest::RospackTestCase::test_lflags_no_package_attrib (   self  ) 

Definition at line 795 of file utest.py.

def utest::RospackTestCase::test_list_duplicates (   self  ) 

tests list-duplicates

Definition at line 447 of file utest.py.

def utest::RospackTestCase::test_msg_gen (   self  ) 

Definition at line 877 of file utest.py.

def utest::RospackTestCase::test_no_option (   self  ) 

ARG PARSING.

Definition at line 218 of file utest.py.

def utest::RospackTestCase::test_no_package_allowed (   self  ) 

Definition at line 301 of file utest.py.

def utest::RospackTestCase::test_no_package_allowed_bad (   self  ) 

Definition at line 309 of file utest.py.

def utest::RospackTestCase::test_no_ros_root (   self  ) 

ENVIRONMENT TEST.

Definition at line 392 of file utest.py.

def utest::RospackTestCase::test_plugins (   self  ) 

Plugins.

Definition at line 374 of file utest.py.

def utest::RospackTestCase::test_plugins_bad (   self  ) 

Definition at line 331 of file utest.py.

def utest::RospackTestCase::test_profile (   self  ) 

Definition at line 246 of file utest.py.

def utest::RospackTestCase::test_quiet_option (   self  ) 

Definition at line 885 of file utest.py.

def utest::RospackTestCase::test_ros_cache_timeout (   self  ) 

Definition at line 234 of file utest.py.

def utest::RospackTestCase::test_ros_home (   self  ) 

Definition at line 252 of file utest.py.

def utest::RospackTestCase::test_ros_in_package (   self  ) 

Definition at line 496 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_bad_paths (   self  ) 

Definition at line 484 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_colons (   self  ) 

Definition at line 467 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_direct_package (   self  ) 

Definition at line 455 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_precedence (   self  ) 

tests internal rpp precedence (#2854)

Definition at line 421 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_precedence_1 (   self  ) 

tests rpp vs rr precedence

Definition at line 434 of file utest.py.

def utest::RospackTestCase::test_ros_root_ros_package_path_identical (   self  ) 

test rospack with ROS_ROOT=ROS_PACKAGE_PATH

Definition at line 403 of file utest.py.

def utest::RospackTestCase::test_rosdep (   self  ) 

Definition at line 337 of file utest.py.

def utest::RospackTestCase::test_rospack_depends_on_not_a_package (   self  ) 

test rospack depends-on1 in a directory that's not a package (#2556)

Definition at line 547 of file utest.py.

def utest::RospackTestCase::test_rospack_find_direct (   self  ) 

test rospack find with ros_package_path set directly to a package

Definition at line 628 of file utest.py.

def utest::RospackTestCase::test_rospack_find_direct_with_rospack_nosubdirs (   self  ) 

test rospack find with ros_package_path set directly to a package, where that package contains a rospack_nosubdirs file, #3191.

Definition at line 636 of file utest.py.

def utest::RospackTestCase::test_rospack_find_fail (   self  ) 

rospack find

test rospack find on non-existent package

Definition at line 623 of file utest.py.

def utest::RospackTestCase::test_rospack_find_no_rpp (   self  ) 

Definition at line 642 of file utest.py.

def utest::RospackTestCase::test_rospack_list_dups (   self  ) 

Definition at line 555 of file utest.py.

def utest::RospackTestCase::test_rospack_list_empty (   self  ) 

test rospack list on an empty tree

Definition at line 540 of file utest.py.

def utest::RospackTestCase::test_rospack_list_names_dups (   self  ) 

Definition at line 600 of file utest.py.

def utest::RospackTestCase::test_rospack_list_names_empty (   self  ) 

test rospack list-names on an empty tree

Definition at line 593 of file utest.py.

def utest::RospackTestCase::test_rospack_list_names_no_rpp (   self  ) 

Definition at line 609 of file utest.py.

def utest::RospackTestCase::test_rospack_list_no_rpp (   self  ) 

Definition at line 564 of file utest.py.

def utest::RospackTestCase::test_vcs0_deps (   self  ) 

Definition at line 807 of file utest.py.

def utest::RospackTestCase::test_vcs_deps (   self  ) 

Definition at line 811 of file utest.py.

def utest::RospackTestCase::test_vcs_invalid (   self  ) 

Definition at line 801 of file utest.py.

def utest::RospackTestCase::test_vcs_no_type_or_url (   self  ) 

Definition at line 791 of file utest.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables


test_rospack
Author(s): Brian Gerkey
autogenerated on Fri Jan 11 09:35:07 2013