diff options
author | Tim Burke <tim.burke@gmail.com> | 2016-12-07 18:46:40 +0000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2017-09-13 21:26:14 +0000 |
commit | 08bfdb2e48b67332a7468bb44fbb280a529a020c (patch) | |
tree | 5686ca88d116db46f485b5638255e657e88b32d4 | |
parent | 249ea7cc3ea68fbdbae80ac06cd78a6249652a50 (diff) | |
download | pyeclib-08bfdb2e48b67332a7468bb44fbb280a529a020c.tar.gz |
Install isa-l from source when testing liberasure-master
Change-Id: I93506b63f2a4f86358d5ffbca8b7360e797729d1
-rw-r--r-- | bindep.txt | 1 | ||||
-rwxr-xr-x | tools/pip-install-with-liberasurecode.sh | 14 | ||||
-rw-r--r-- | tox.ini | 1 |
3 files changed, 16 insertions, 0 deletions
@@ -7,6 +7,7 @@ make [platform:rpm] autoconf automake libtool +yasm liberasurecode-dev [platform:dpkg] liberasurecode-devel [platform:rpm] python-dev [platform:dpkg] diff --git a/tools/pip-install-with-liberasurecode.sh b/tools/pip-install-with-liberasurecode.sh index 2be036f..7745ef8 100755 --- a/tools/pip-install-with-liberasurecode.sh +++ b/tools/pip-install-with-liberasurecode.sh @@ -3,6 +3,19 @@ if [ -z "$VIRTUAL_ENV" ]; then echo "Expected VIRTUAL_ENV to be set!" exit 1 fi + +if [ -n "$ISAL_DIR" ]; then + if [ ! -d "$ISAL_DIR" ]; then + git clone git://github.com/01org/isa-l.git "$ISAL_DIR" + fi + pushd "$ISAL_DIR" + ./autogen.sh + ./configure --prefix "$VIRTUAL_ENV" + make + make install + popd +fi + if [ -z "$LIBERASURECODE_DIR" ]; then echo "Expected LIBERASURECODE_DIR to be set!" exit 1 @@ -20,4 +33,5 @@ fi make make install popd + pip install "$@" @@ -9,6 +9,7 @@ commands= [testenv:liberasurecode-git] setenv = LIBERASURECODE_DIR={envdir}/liberasurecode + ISAL_DIR={envdir}/isa-l passenv = LIBERASURECODE_REF install_command = {toxinidir}/tools/pip-install-with-liberasurecode.sh {opts} {packages} |