more unit tests

This commit is contained in:
Tully Foote 2009-12-18 04:41:52 +00:00
parent 61522a2930
commit 651d0e3640
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,32 @@
boost:
ubuntu:
9.10: libboost1.40-all-dev
9.04: libboost1.37-dev
8.10: |
this is a script
debian:
squeeze/sid: libboost-dev libboost-regex-dev libboost-thread-dev libboost-signals-dev libboost-filesystem-dev libboost-python-dev libboost-program-options-dev
lenny: |
another_script
3.1: |
if [ ! -f /opt/ros/lib/libboost_date_time-gcc33-mt*-1_37.a ] ; then
mkdir -p ~/ros/ros-deps
cd ~/ros/ros-deps
wget --tries=10 http://pr.willowgarage.com/downloads/boost_1_37_0.tar.gz
tar xzf boost_1_37_0.tar.gz
cd boost_1_37_0
./configure --prefix=/opt/ros
make
sudo make install
fi
fedora: boost-devel
rhel: boost-devel
arch: boost
macports: boost
zlib:
ubuntu: zlib1g-dev
debian: zlib1g-dev
fedora: zlib-devel
rhel: zlib-devel
arch: zlib
macports: zlib

View File

@ -40,6 +40,19 @@ import rostest
import rosdep.core
class RosdepCoreTest(unittest.TestCase):
def test_Rosdep_get_os_from_yaml(self):
rdlp = rosdep.core.RosdepLookupPackage("ubuntu", "9.04", "rosdep")
yaml_os_map = {"ubuntu":"one", "other":"two", "three":"three"};
output = rdlp.get_os_from_yaml(yaml_os_map)
self.assertEqual("one", output)
def test_Rosdep_get_version_from_yaml(self):
rdlp = rosdep.core.RosdepLookupPackage("ubuntu", "9.04", "rosdep")
yaml_map = {"8.04":"one", "9.04":"two", "three":"three"};
output = rdlp.get_version_from_yaml(yaml_map)
self.assertEqual("two", output)
def test_RosdepLookupPackage_tripwire(self):
rdlp = rosdep.core.RosdepLookupPackage("ubuntu", "9.04", "rosdep")