def test_vowpal_wabbit_installation(tmpdir):
    tmpdir.chdir()

    # Test existence of module, and ability to call VW subprocess
    wabbit_imports = ['import wabbit_wappa']

    perform_standard_test('wabbit_wappa==0.2.0', wabbit_imports, [], [])
Exemple #2
0
def test_pyside_installation(tmpdir):
    tmpdir.chdir()
    imports = [
        'import PySide', 'from PySide import QtCore',
        'from PySide import QtGui'
    ]
    perform_standard_test('PySide==1.2.1', imports)
Exemple #3
0
def _do_test_opencv_installation(tmpdir, requirement):
    tmpdir.chdir()

    imports = ['import cv2',
               'from cv2 import imread']
    
    perform_standard_test(requirement, imports, [], ['patchelf==6fb4cdb', 'numpy==1.7.1'])
Exemple #4
0
def test_gscam_installation(tmpdir):
    tmpdir.chdir()

    imports = ['import rospy', 'import boto']
    dependencies = [
        'boto==2.19.0', 'ros==hydro.ros_comm', 'opencv==2.4.4', 'numpy==1.7.1'
    ]

    perform_standard_test(
        """ros_overlay==https://github.com/ros-drivers/gscam.git#3d976c80324f5723cd7a23c18d452c4231044cc0,\
        https://github.com/ros/nodelet_core.git#71a90d671e49f6e4b8b73d4e856f6335e9511dba,\
        https://github.com/ros/bond_core.git#37a4f47699e2c262725a34a2a7104659664e9089,\
        https://github.com/ros/dynamic_reconfigure.git#c12a36d00c720ca21ed5e8a43f3d8acb0c33daa8,\
        https://github.com/ros/pluginlib.git#ccd88bc1c2b46847fc02c65dcc75524ca160ecd6,\
        https://github.com/ros/class_loader.git#e75eeb7ff595618785461db6f0510ca5854b078a,\
        https://github.com/ros-perception/image_common.git#a0e3c042f10ab3a1c9ae052b306b45f1fdc046ea,\
        https://github.com/ros-perception/image_pipeline.git#4835f7216b1e83981dd443f8e9517b3dd362e0ed,\
        https://github.com/ros/common_msgs.git#bd3b67b48eca80575f32640e8fc4c1549ecf6c5a,\
        https://github.com/ros-perception/vision_opencv.git#9323c27a9337253b4e50eb8818b76fc799ab4f92,\
        https://github.com/ros/geometry.git#2f4ecff64a13d0c41faf3f8859f210636d159669,\
        https://github.com/ros-perception/perception_pcl.git#d49e78e05f2c8e589e758709d6d2cb93f26e119a,\
        https://github.com/orocos/orocos_kinematics_dynamics.git#6d842711d2247c740a5ed16d043fd74ff3577f60,\
        https://github.com/braincorp/geometry_experimental.git#2600a027715fcabbdf6f09fa89c34212e5d596bc,\
        https://github.com/ros/angles.git#3f94acf9926ee18174bb82748194d1ac6f5be5f9,\
        https://github.com/ros/actionlib.git#1c6275607793eabd963cc1dc5b09d3975b52a2ed,\
        https://github.com/ros-perception/pcl_conversions.git#5b52fedea20b383f19e82e1fcc892e7187782476,\
        https://github.com/ros-perception/pcl_msgs.git#68e914f8a975dfba9827ae545f62e3b8280b8aaf""",
        imports, [],
        dependencies,
        postinstall_script='. test_env/bin/activate && . test_env/ros/setup.sh'
    )
Exemple #5
0
def test_gscam_installation(tmpdir):
    tmpdir.chdir()

    imports = ['import rospy',
               'import boto']
    dependencies = ['boto==2.19.0', 'ros==hydro.ros_comm',
                    'opencv==2.4.4', 'numpy==1.7.1']
    
    perform_standard_test("""ros_overlay==https://github.com/ros-drivers/gscam.git#3d976c80324f5723cd7a23c18d452c4231044cc0,\
        https://github.com/ros/nodelet_core.git#71a90d671e49f6e4b8b73d4e856f6335e9511dba,\
        https://github.com/ros/bond_core.git#37a4f47699e2c262725a34a2a7104659664e9089,\
        https://github.com/ros/dynamic_reconfigure.git#c12a36d00c720ca21ed5e8a43f3d8acb0c33daa8,\
        https://github.com/ros/pluginlib.git#ccd88bc1c2b46847fc02c65dcc75524ca160ecd6,\
        https://github.com/ros/class_loader.git#e75eeb7ff595618785461db6f0510ca5854b078a,\
        https://github.com/ros-perception/image_common.git#a0e3c042f10ab3a1c9ae052b306b45f1fdc046ea,\
        https://github.com/ros-perception/image_pipeline.git#4835f7216b1e83981dd443f8e9517b3dd362e0ed,\
        https://github.com/ros/common_msgs.git#bd3b67b48eca80575f32640e8fc4c1549ecf6c5a,\
        https://github.com/ros-perception/vision_opencv.git#9323c27a9337253b4e50eb8818b76fc799ab4f92,\
        https://github.com/ros/geometry.git#2f4ecff64a13d0c41faf3f8859f210636d159669,\
        https://github.com/ros-perception/perception_pcl.git#d49e78e05f2c8e589e758709d6d2cb93f26e119a,\
        https://github.com/orocos/orocos_kinematics_dynamics.git#6d842711d2247c740a5ed16d043fd74ff3577f60,\
        https://github.com/braincorp/geometry_experimental.git#2600a027715fcabbdf6f09fa89c34212e5d596bc,\
        https://github.com/ros/angles.git#3f94acf9926ee18174bb82748194d1ac6f5be5f9,\
        https://github.com/ros/actionlib.git#1c6275607793eabd963cc1dc5b09d3975b52a2ed,\
        https://github.com/ros-perception/pcl_conversions.git#5b52fedea20b383f19e82e1fcc892e7187782476,\
        https://github.com/ros-perception/pcl_msgs.git#68e914f8a975dfba9827ae545f62e3b8280b8aaf""",
                          imports,
                          [],
                          dependencies,
                          postinstall_script='. test_env/bin/activate && . test_env/ros/setup.sh')
Exemple #6
0
def _do_test_opencv_installation(tmpdir, requirement):
    tmpdir.chdir()

    imports = ['import cv2', 'from cv2 import imread']

    perform_standard_test(requirement, imports, [],
                          ['patchelf==6fb4cdb', 'numpy==1.7.1'])
Exemple #7
0
def test_bullet_installation(tmpdir):
    tmpdir.chdir()
    bullet_versions = ['bc2']
    for ver in bullet_versions:
        bullet_files = ['lib/bullet-%s/lib/libBulletCollision.a' % ver,
                        'lib/bullet-%s/lib/libBulletDynamics.a' % ver,
                        'lib/bullet-%s/lib/libLinearMath.a' % ver]
        perform_standard_test('bullet==%s' % ver, [], bullet_files)
Exemple #8
0
def test_gazebo_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('gazebo==2.2.1',
                          [],
                          ['lib/sdformat-1.4.11/lib/libsdformat.so',
                           'lib/gazebo-2.2.1/bin/gazebo',
                           'lib/gazebo-2.2.1/lib/libgazebo.so'],
                          ['patchelf==6fb4cdb', 'sdformat==1.4.11'])
Exemple #9
0
def test_gazebo_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test(
        "gazebo==2.2.1",
        [],
        ["lib/sdformat-1.4.11/lib/libsdformat.so", "lib/gazebo-2.2.1/bin/gazebo", "lib/gazebo-2.2.1/lib/libgazebo.so"],
        ["patchelf==6fb4cdb", "sdformat==1.4.11"],
    )
Exemple #10
0
def test_pyaudio_installation(tmpdir):
    tmpdir.chdir()
    exprs = ['import pyaudio']
    install_options = [
        '--allow-external', 'PyAudio', '--allow-unverified', 'PyAudio'
    ]
    perform_standard_test('PyAudio==0.2.8',
                          exprs, [], [],
                          install_options=install_options)
Exemple #11
0
def test_openni_installation(tmpdir):
    tmpdir.chdir()
    # ok if sensor is not connected, should fail if library not found
    exprs = ['from primesense import openni2\nopenni2.initialize()']
    if sys.platform == "linux" or sys.platform == "linux2":
        files = ['lib/libOpenNI2.so']
    else:
        files = []
    dependencies = ['OpenNI']
    perform_standard_test('primesense==2.2.0.30-5', exprs, files, dependencies)
Exemple #12
0
def test_panda_installation(tmpdir):
    tmpdir.chdir()

    panda_imports = [
        'import panda3d', 'import panda3d.core', 'import panda3d.bullet',
        'from panda3d.core import Mat4, TransformState',
        'from panda3d.bullet import BulletWorld'
    ]
    panda_dependencies = ['patchelf==6fb4cdb', 'bullet==bc2']

    perform_standard_test('panda3d==bc2', panda_imports, [],
                          panda_dependencies)
Exemple #13
0
def test_ros_installation(tmpdir):
    tmpdir.chdir()

    imports = ['import rospy',
               'import boto']
    dependencies = ['boto==2.19.0']  # boto is just to ensure that non-ROS requirements are also in venv
    
    perform_standard_test('ros==hydro.ros_comm',
                          imports,
                          [],
                          dependencies,
                          postinstall_script='. test_env/bin/activate && . test_env/ros/setup.sh')
Exemple #14
0
def test_panda_installation(tmpdir):
    tmpdir.chdir()

    panda_imports = [
        "import panda3d",
        "import panda3d.core",
        "import panda3d.bullet",
        "from panda3d.core import Mat4, TransformState",
        "from panda3d.bullet import BulletWorld",
    ]
    panda_dependencies = ["patchelf==6fb4cdb", "bullet==bc2"]

    perform_standard_test("panda3d==bc2", panda_imports, [], panda_dependencies)
Exemple #15
0
def test_ros_installation(tmpdir):
    tmpdir.chdir()

    imports = ['import rospy', 'import boto']
    dependencies = [
        'boto==2.19.0'
    ]  # boto is just to ensure that non-ROS requirements are also in venv

    perform_standard_test(
        'ros==hydro.ros_comm',
        imports, [],
        dependencies,
        postinstall_script='. test_env/bin/activate && . test_env/ros/setup.sh'
    )
Exemple #16
0
def test_pocketsphinx_installation(tmpdir):
    tmpdir.chdir()
    files = ['lib/libsphinxbase.so']
    imports = ['import wrap_pocketsphinx']
    dependencies = ['patchelf==6fb4cdb', 'cython==0.20.1', 'sphinxbase==0.8']
    perform_standard_test('pocketsphinx==0.8', imports, files, dependencies)
Exemple #17
0
def test_sdformat_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('sdformat==1.4.11', [], ['lib/sdformat-1.4.11/lib/libsdformat.so'])
def test_brainos_core_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('brainos_core==develop', ['import brainos2'],
                          ['bin/brainosd'])
Exemple #19
0
def test_pygst_installation(tmpdir):
    tmpdir.chdir()
    files = []
    imports = ['import pygtk', 'import gtk', 'import pygst', 'import gst']
    dependencies = ['PyGObject', 'PyGTK']
    perform_standard_test('PyGST==0.10', imports, files, dependencies)
Exemple #20
0
def test_protobuf_installation(tmpdir):
    tmpdir.chdir()

    protobuf_imports = ['import google.protobuf']

    perform_standard_test('protobuf==2.6.0', protobuf_imports, [], [])
Exemple #21
0
def test_pocketsphinx_installation(tmpdir):
    tmpdir.chdir()
    files = ['lib/libsphinxbase.so']
    imports = ['import wrap_pocketsphinx']
    dependencies = ['patchelf==6fb4cdb', 'cython==0.20.1', 'sphinxbase==0.8']
    perform_standard_test('pocketsphinx==0.8', imports, files, dependencies)
Exemple #22
0
def test_sdformat_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('sdformat==1.4.11', [],
                          ['lib/x86_64-linux-gnu/libsdformat.so'])
Exemple #23
0
def test_pygame_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('Pygame==bc1', ['import pygame'])
    # need lib4l-videodev for Pygame 1.9.1
    if os.path.isfile('/usr/include/libv4l1-videodev.h'):
        perform_standard_test('Pygame==1.9.1', ['import pygame'])
Exemple #24
0
def test_pyside_installation(tmpdir):
    tmpdir.chdir()
    imports = ['import PySide',
               'from PySide import QtCore',
               'from PySide import QtGui']
    perform_standard_test('PySide==1.2.1', imports)
Exemple #25
0
def test_pygame_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('Pygame==bc1', ['import pygame'])
    # need lib4l-videodev for Pygame 1.9.1
    if os.path.isfile('/usr/include/libv4l1-videodev.h'):
        perform_standard_test('Pygame==1.9.1', ['import pygame'])
def test_brainos_core_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('brainos_core==develop', ['import brainos2'], ['bin/brainosd'])
Exemple #27
0
def test_pep8_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('pep8', ['import pep8'], [], [])
Exemple #28
0
def test_pyaudio_installation(tmpdir):
    tmpdir.chdir()
    exprs = ['import pyaudio']
    install_options = ['--allow-external', 'PyAudio', '--allow-unverified', 'PyAudio']
    perform_standard_test('PyAudio==0.2.8', exprs, [], [], install_options=install_options)
Exemple #29
0
def test_sdformat_installation(tmpdir):
    tmpdir.chdir()
    perform_standard_test('sdformat==1.4.11', [], ['lib/x86_64-linux-gnu/libsdformat.so'])