Install HTX on OS
For details, please refer to 'Building HTX from source tree'
section of https://github.com/open-power/HTX.
Resolves openbmc/openbmc-test-automation#573
Change-Id: Ib7c08ebc4d311589afd00cf3701d6a6aa92954e7
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/syslib/utils_install.robot b/syslib/utils_install.robot
new file mode 100755
index 0000000..bdf6e5c
--- /dev/null
+++ b/syslib/utils_install.robot
@@ -0,0 +1,54 @@
+***Settings***
+Documentation Keywords for system related tools installation.
+... For HTX refer to https://github.com/open-power/HTX
+
+
+Resource utils_os.robot
+
+***Keywords***
+
+Prep OS For HTX Installation
+ [Documentation] Prepare OS for HTX tool installation.
+
+ Boot To OS
+ ${status}= Run Keyword And Return Status HTX Tool Exist
+
+ Return From Keyword If '${status}' == 'True'
+ ... HTX tool already installed.
+
+ # Downloads the package lists from the repositories and "update"
+ # them to get information on the newest versions of packages and
+ # their dependencies.
+ Log To Console \n Update package list.
+ Execute Command On OS sudo apt-get update
+
+ # Download and install Git.
+ Log To Console \n Install Git.
+ Execute Command On OS sudo apt-get -y install git
+
+
+Setup HTX On OS
+ [Documentation] Download and install HTX exerciser tool from github.
+
+ # Download HTX source code from github.
+ Log To Console \n Download HTX source code from github.
+ Execute Command sudo git clone https://www.github.com/open-power/HTX
+
+ # Download and install pre-requisite packages before compiling HTX.
+ Log To Console \n Download pre-requisite packages before compiling HTX.
+ Execute Command On OS
+ ... sudo apt-get -y install gcc make libncurses5 g++ libdapl-dev
+
+ # To fix ncurse compile warning and errors.
+ Execute Command On OS
+ ... sudo apt-get -y install libncurses5-dev libncursesw5-dev
+
+ Execute Command On OS sudo apt-get -y install libibverbs-dev librdmacm-dev
+
+ # Compile HTX source code and install.
+ Log To Console \n Compile HTX source code.
+ Execute Command On OS cd HTX && sudo make all
+
+ Log To Console \n Installed compiled HTX binaries.
+ Execute Command On OS sudo make install
+