blob: bdf6e5c02ca337c635f9d4aaca748d857ac4d092 [file] [log] [blame]
George Keishingfece9792017-05-05 10:28:33 -05001***Settings***
2Documentation Keywords for system related tools installation.
3... For HTX refer to https://github.com/open-power/HTX
4
5
6Resource utils_os.robot
7
8***Keywords***
9
10Prep OS For HTX Installation
11 [Documentation] Prepare OS for HTX tool installation.
12
13 Boot To OS
14 ${status}= Run Keyword And Return Status HTX Tool Exist
15
16 Return From Keyword If '${status}' == 'True'
17 ... HTX tool already installed.
18
19 # Downloads the package lists from the repositories and "update"
20 # them to get information on the newest versions of packages and
21 # their dependencies.
22 Log To Console \n Update package list.
23 Execute Command On OS sudo apt-get update
24
25 # Download and install Git.
26 Log To Console \n Install Git.
27 Execute Command On OS sudo apt-get -y install git
28
29
30Setup HTX On OS
31 [Documentation] Download and install HTX exerciser tool from github.
32
33 # Download HTX source code from github.
34 Log To Console \n Download HTX source code from github.
35 Execute Command sudo git clone https://www.github.com/open-power/HTX
36
37 # Download and install pre-requisite packages before compiling HTX.
38 Log To Console \n Download pre-requisite packages before compiling HTX.
39 Execute Command On OS
40 ... sudo apt-get -y install gcc make libncurses5 g++ libdapl-dev
41
42 # To fix ncurse compile warning and errors.
43 Execute Command On OS
44 ... sudo apt-get -y install libncurses5-dev libncursesw5-dev
45
46 Execute Command On OS sudo apt-get -y install libibverbs-dev librdmacm-dev
47
48 # Compile HTX source code and install.
49 Log To Console \n Compile HTX source code.
50 Execute Command On OS cd HTX && sudo make all
51
52 Log To Console \n Installed compiled HTX binaries.
53 Execute Command On OS sudo make install
54