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 519 of file utest.py.

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

Definition at line 822 of file utest.py.

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

rospack list

Definition at line 504 of file utest.py.

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

rospack list-names

Definition at line 569 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 726 of file utest.py.

def utest::RospackTestCase::test_backquote_invalid (   self  ) 

Definition at line 722 of file utest.py.

def utest::RospackTestCase::test_bad_ros_root (   self  ) 

Definition at line 388 of file utest.py.

def utest::RospackTestCase::test_cflags_backquote (   self  ) 

Definition at line 747 of file utest.py.

def utest::RospackTestCase::test_circular (   self  ) 

Definition at line 705 of file utest.py.

def utest::RospackTestCase::test_depends_on (   self  ) 

Definition at line 670 of file utest.py.

def utest::RospackTestCase::test_depends_on1 (   self  ) 

Definition at line 683 of file utest.py.

def utest::RospackTestCase::test_depends_on_nonexistent (   self  ) 

Definition at line 693 of file utest.py.

def utest::RospackTestCase::test_deps (   self  ) 

DEPENDENCIES.

Definition at line 647 of file utest.py.

def utest::RospackTestCase::test_deps1 (   self  ) 

Definition at line 658 of file utest.py.

def utest::RospackTestCase::test_deps1_invalid (   self  ) 

Definition at line 796 of file utest.py.

def utest::RospackTestCase::test_deps_indent (   self  ) 

Definition at line 815 of file utest.py.

def utest::RospackTestCase::test_deps_invalid (   self  ) 

Definition at line 667 of file utest.py.

def utest::RospackTestCase::test_deps_manifests (   self  ) 

Definition at line 808 of file utest.py.

def utest::RospackTestCase::test_empty_cflags (   self  ) 

Definition at line 771 of file utest.py.

def utest::RospackTestCase::test_empty_lflags (   self  ) 

Definition at line 765 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 405 of file utest.py.

def utest::RospackTestCase::test_empty_vcs (   self  ) 

Definition at line 777 of file utest.py.

def utest::RospackTestCase::test_export_bad (   self  ) 

Definition at line 314 of file utest.py.

def utest::RospackTestCase::test_export_cpp (   self  ) 

EXPORT.

Definition at line 339 of file utest.py.

def utest::RospackTestCase::test_export_non_existent_attrib (   self  ) 

Definition at line 359 of file utest.py.

def utest::RospackTestCase::test_export_roslang (   self  ) 

Definition at line 352 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 309 of file utest.py.

def utest::RospackTestCase::test_langs (   self  ) 

Definition at line 841 of file utest.py.

def utest::RospackTestCase::test_langs_disable (   self  ) 

Definition at line 851 of file utest.py.

def utest::RospackTestCase::test_langs_empty (   self  ) 

Definition at line 862 of file utest.py.

def utest::RospackTestCase::test_lflags_archive (   self  ) 

Definition at line 751 of file utest.py.

def utest::RospackTestCase::test_Lflags_backquote (   self  ) 

Definition at line 743 of file utest.py.

def utest::RospackTestCase::test_lflags_backquote (   self  ) 

Definition at line 718 of file utest.py.

def utest::RospackTestCase::test_lflags_base (   self  ) 

Definition at line 701 of file utest.py.

def utest::RospackTestCase::test_lflags_deps (   self  ) 

Definition at line 757 of file utest.py.

def utest::RospackTestCase::test_lflags_deps_only (   self  ) 

Definition at line 761 of file utest.py.

def utest::RospackTestCase::test_lflags_invalid (   self  ) 

Definition at line 790 of file utest.py.

def utest::RospackTestCase::test_lflags_no_package_attrib (   self  ) 

Definition at line 787 of file utest.py.

def utest::RospackTestCase::test_list_duplicates (   self  ) 

tests list-duplicates

Definition at line 439 of file utest.py.

def utest::RospackTestCase::test_msg_gen (   self  ) 

Definition at line 869 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 293 of file utest.py.

def utest::RospackTestCase::test_no_package_allowed_bad (   self  ) 

Definition at line 301 of file utest.py.

def utest::RospackTestCase::test_no_ros_root (   self  ) 

ENVIRONMENT TEST.

Definition at line 384 of file utest.py.

def utest::RospackTestCase::test_plugins (   self  ) 

Plugins.

Definition at line 366 of file utest.py.

def utest::RospackTestCase::test_plugins_bad (   self  ) 

Definition at line 323 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 877 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 488 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_bad_paths (   self  ) 

Definition at line 476 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_colons (   self  ) 

Definition at line 459 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_direct_package (   self  ) 

Definition at line 447 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_precedence (   self  ) 

tests internal rpp precedence (#2854)

Definition at line 413 of file utest.py.

def utest::RospackTestCase::test_ros_package_path_precedence_1 (   self  ) 

tests rpp vs rr precedence

Definition at line 426 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 395 of file utest.py.

def utest::RospackTestCase::test_rosdep (   self  ) 

Definition at line 329 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 539 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 620 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 628 of file utest.py.

def utest::RospackTestCase::test_rospack_find_fail (   self  ) 

rospack find

test rospack find on non-existent package

Definition at line 615 of file utest.py.

def utest::RospackTestCase::test_rospack_find_no_rpp (   self  ) 

Definition at line 634 of file utest.py.

def utest::RospackTestCase::test_rospack_list_dups (   self  ) 

Definition at line 547 of file utest.py.

def utest::RospackTestCase::test_rospack_list_empty (   self  ) 

test rospack list on an empty tree

Definition at line 532 of file utest.py.

def utest::RospackTestCase::test_rospack_list_names_dups (   self  ) 

Definition at line 592 of file utest.py.

def utest::RospackTestCase::test_rospack_list_names_empty (   self  ) 

test rospack list-names on an empty tree

Definition at line 585 of file utest.py.

def utest::RospackTestCase::test_rospack_list_names_no_rpp (   self  ) 

Definition at line 601 of file utest.py.

def utest::RospackTestCase::test_rospack_list_no_rpp (   self  ) 

Definition at line 556 of file utest.py.

def utest::RospackTestCase::test_vcs0_deps (   self  ) 

Definition at line 799 of file utest.py.

def utest::RospackTestCase::test_vcs_deps (   self  ) 

Definition at line 803 of file utest.py.

def utest::RospackTestCase::test_vcs_invalid (   self  ) 

Definition at line 793 of file utest.py.

def utest::RospackTestCase::test_vcs_no_type_or_url (   self  ) 

Definition at line 783 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 11:39:07 2013