Merge "Add Robot Framework and RIDE to fedora VM tool"
authorDaniel Farrell <dfarrell@redhat.com>
Tue, 14 Apr 2015 20:48:48 +0000 (20:48 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 14 Apr 2015 20:48:48 +0000 (20:48 +0000)
test/tools/tools_vm/README.md
test/tools/tools_vm/scripts/fedora.sh

index edcf71e717b3d7ebe9f1c33088809aa8739e8c73..de069b0ff02b88132240859c905237b991d0543c 100644 (file)
@@ -115,3 +115,25 @@ To totally remove a VM:
 ```ShellSession
 $ vagrant destroy -f <name of box>
 ```
+
+#### 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
index c7dc7aea895315541860e3a9bb4e58f21675fca4..24d1fe70fb18e06fac625224372e0c9d1af3d719 100644 (file)
@@ -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