From: Daniel Farrell Date: Tue, 14 Apr 2015 20:48:48 +0000 (+0000) Subject: Merge "Add Robot Framework and RIDE to fedora VM tool" X-Git-Tag: release/lithium~155 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=d2a433708b84ec2e81521ae64658b4701e2e65eb;hp=f6d914377f16db966e7db1c24b50a56b889830af;p=integration%2Ftest.git Merge "Add Robot Framework and RIDE to fedora VM tool" --- diff --git a/test/tools/tools_vm/README.md b/test/tools/tools_vm/README.md index edcf71e717..de069b0ff0 100644 --- a/test/tools/tools_vm/README.md +++ b/test/tools/tools_vm/README.md @@ -115,3 +115,25 @@ To totally remove a VM: ```ShellSession $ vagrant destroy -f ``` + +#### Pre-installed software + +######OpenDaylight: +OpenDaylight software is a combination of components including a fully pluggable controller, interfaces, protocol plug-ins and applications. +######Netopeer: +Netopeer is a set of NETCONF tools built on the libnetconf library. +######Robot Famework: +Generic test automation framework for acceptance testing and ATDD +######RIDE: +RIDE is a light-weight and intuitive editor for Robot Framework test case files + +#### Additionnal information + +The vagrantfile is configured to enable X fowarding through ssh. +For example, to launch RIDE + +```ShellSession +[vagrant@tools-fedora ~]$ ride +``` + +More pre-installed software will be added to provide necessary tools for the Opendaylight Integration Group diff --git a/test/tools/tools_vm/scripts/fedora.sh b/test/tools/tools_vm/scripts/fedora.sh index c7dc7aea89..24d1fe70fb 100644 --- a/test/tools/tools_vm/scripts/fedora.sh +++ b/test/tools/tools_vm/scripts/fedora.sh @@ -10,13 +10,15 @@ HOME="/home/vagrant" # Install initial packages sudo yum install -y \ git \ - puppet + puppet \ + python-pip \ + python-devel # ---------------- # Install netopeer # ---------------- -# Install required system dependencies +# Install required dependencies sudo yum install -y \ readline \ readline-devel \ @@ -56,4 +58,32 @@ sudo chown -R vagrant:vagrant $HOME/netopeer/ cd $HOME/netopeer/server/ && \ sh configure --prefix=/usr && \ make && \ - sudo make install \ No newline at end of file + sudo make install + +# -------------------------------- +# Install Robot Framework and RIDE +# -------------------------------- + +# Install required dependencies +sudo yum install -y \ + wxGTK-devel \ + gcc-c++ \ + xorg-x11-xauth + +# Install Robot Framework libraries +sudo pip install \ + robotframework-ride \ + robotframework-sshlibrary \ + robotframework-requests + +# Install wxPython, a blending of the wxWidgets C++ class library used for RIDE +cd $HOME && \ + wget http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython-src-2.8.12.1.tar.bz2 && \ + tar -xjvf wxPython-src-2.8.12.1.tar.bz2 && \ + rm wxPython-src-2.8.12.1.tar.bz2 && \ + cd wxPython-src-2.8.12.1/wxPython && \ + python setup.py build && \ + sudo python setup.py install + +# Add 'ride' alias for quietly running RIDE gui +echo "alias ride=\"nohup ride.py >/dev/null 2>&1 &\"" >> $HOME/.bashrc