Install isa-l from source when testing liberasure-master
Change-Id: I93506b63f2a4f86358d5ffbca8b7360e797729d1
Tim Burke
6 years ago
6 | 6 |
autoconf
|
7 | 7 |
automake
|
8 | 8 |
libtool
|
|
9 |
yasm
|
9 | 10 |
liberasurecode-dev [platform:dpkg]
|
10 | 11 |
liberasurecode-devel [platform:rpm]
|
11 | 12 |
python-dev [platform:dpkg]
|
2 | 2 |
echo "Expected VIRTUAL_ENV to be set!"
|
3 | 3 |
exit 1
|
4 | 4 |
fi
|
|
5 |
|
|
6 |
if [ -n "$ISAL_DIR" ]; then
|
|
7 |
if [ ! -d "$ISAL_DIR" ]; then
|
|
8 |
git clone git://github.com/01org/isa-l.git "$ISAL_DIR"
|
|
9 |
fi
|
|
10 |
pushd "$ISAL_DIR"
|
|
11 |
./autogen.sh
|
|
12 |
./configure --prefix "$VIRTUAL_ENV"
|
|
13 |
make
|
|
14 |
make install
|
|
15 |
popd
|
|
16 |
fi
|
|
17 |
|
5 | 18 |
if [ -z "$LIBERASURECODE_DIR" ]; then
|
6 | 19 |
echo "Expected LIBERASURECODE_DIR to be set!"
|
7 | 20 |
exit 1
|
|
19 | 32 |
make
|
20 | 33 |
make install
|
21 | 34 |
popd
|
|
35 |
|
22 | 36 |
pip install "$@"
|
8 | 8 |
|
9 | 9 |
[testenv:liberasurecode-git]
|
10 | 10 |
setenv = LIBERASURECODE_DIR={envdir}/liberasurecode
|
|
11 |
ISAL_DIR={envdir}/isa-l
|
11 | 12 |
passenv = LIBERASURECODE_REF
|
12 | 13 |
install_command =
|
13 | 14 |
{toxinidir}/tools/pip-install-with-liberasurecode.sh {opts} {packages}
|