Skip to content

Commit

Permalink
Merge "Install Jerasure and ISA-L libs"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Oct 22, 2018
2 parents b046ff7 + 096effe commit 405775c
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 13 deletions.
17 changes: 4 additions & 13 deletions playbooks/unittests/run.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
- hosts: all
roles:
- install_isal
- install_jerasure
- test_liberasurecode

tasks:
- name: Build and test
shell:
cmd: |
set -e
set -x
./autogen.sh
./configure
make
make test
make valgrind-test
executable: /bin/bash
chdir: '{{ zuul.project.src_dir }}'
26 changes: 26 additions & 0 deletions roles/install_isal/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory

- name: install yasm
package:
name: yasm
state: present
become: yes

- name: Build and Install ISA-L
shell:
cmd: |
set -e
set -x
cd $WORKSPACE
git clone git://github.com/01org/isa-l.git
cd isa-l
./autogen.sh
./configure
make
sudo make install
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
36 changes: 36 additions & 0 deletions roles/install_jerasure/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory

- name: Build and Install GF-Complete
shell:
cmd: |
set -e
set -x
cd $WORKSPACE
git clone http://lab.jerasure.org/jerasure/gf-complete.git
cd gf-complete
./autogen.sh
./configure
make
sudo make install
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

- name: Build and Install Jerasure
shell:
cmd: |
set -e
set -x
cd $WORKSPACE
git clone http://lab.jerasure.org/jerasure/jerasure.git
cd jerasure
autoreconf --force --install
./configure
make
sudo make install
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
14 changes: 14 additions & 0 deletions roles/test_liberasurecode/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- name: Build and test liberasurecode
shell:
cmd: |
set -e
set -x
sudo bash -c "echo /usr/local/lib >> /etc/ld.so.conf"
sudo ldconfig
./autogen.sh
./configure
make
make test
make valgrind-test
executable: /bin/bash
chdir: '{{ zuul.project.src_dir }}'

0 comments on commit 405775c

Please sign in to comment.