Some minor code shuffle + removal of the autorun-spdk.conf creation. Creating this config has little sense as some of these flags cannot be used together anyway - it basically serves as a dump of all supported flags which we usually are having a hard time to keep up to date. That said, autotest_common.sh (and get_config_params()) gives a better view as to what flags are actually supported and how they are used in practice. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: Ib223ec90be58e68ecab69176d213c353df530498 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16925 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
103 lines
1.4 KiB
Plaintext
103 lines
1.4 KiB
Plaintext
package_manager=apt-get
|
|
|
|
update() {
|
|
sudo "$package_manager" update
|
|
}
|
|
|
|
install() {
|
|
(( $# )) || return 0
|
|
|
|
sudo "$package_manager" install -y "$@"
|
|
}
|
|
|
|
upgrade() {
|
|
update
|
|
sudo "$package_manager" upgrade -y
|
|
}
|
|
|
|
|
|
pre_install() {
|
|
echo "Package perl-open is not available at Ubuntu repositories" >&2
|
|
|
|
update
|
|
|
|
if [[ $INSTALL_TSOCKS == true ]]; then
|
|
install tsocks
|
|
fi
|
|
|
|
# asan an ubsan have to be installed together to not mix up gcc versions
|
|
if install libasan5; then
|
|
install libubsan1
|
|
else
|
|
echo "Latest libasan5 is not available" >&2
|
|
echo " installing libasan2 and corresponding libubsan0" >&2
|
|
install libasan2
|
|
install libubsan0
|
|
fi
|
|
}
|
|
|
|
packages=(
|
|
valgrind
|
|
jq
|
|
nvme-cli
|
|
ceph
|
|
gdb
|
|
fio
|
|
libaio-dev
|
|
libgflags-dev
|
|
autoconf
|
|
automake
|
|
libtool
|
|
libmount-dev
|
|
open-iscsi
|
|
libglib2.0-dev
|
|
libpixman-1-dev
|
|
astyle
|
|
elfutils
|
|
libelf-dev
|
|
flex
|
|
bison
|
|
libswitch-perl
|
|
gdisk
|
|
socat
|
|
openssl
|
|
sshfs
|
|
sshpass
|
|
python3-pandas
|
|
bc
|
|
smartmontools
|
|
wget
|
|
xfsprogs
|
|
ibverbs-utils
|
|
rdmacm-utils
|
|
ruby-dev
|
|
llvm
|
|
avahi-daemon
|
|
avahi-utils
|
|
)
|
|
|
|
install_vagrant_dependencies() {
|
|
local vagrant_packages
|
|
vagrant_packages=(
|
|
qemu
|
|
libvirt-bin
|
|
ebtables
|
|
dnsmasq-base
|
|
libxslt-dev
|
|
libxml2-dev
|
|
libvirt-dev
|
|
zlib1g-dev
|
|
ruby-dev
|
|
)
|
|
|
|
install "${vagrant_packages[@]}"
|
|
}
|
|
|
|
if [[ $OSID == debian ]]; then
|
|
packages+=("linux-headers-$kernel_ver-*")
|
|
else
|
|
packages+=(linux-headers-generic)
|
|
fi
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|