test/vm_setup: Add clearlinux package manager

Also remove unnecessary jq from pkgdep

Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Change-Id: I259e8f00a4a6e9c5463fa9e8bdefb19f9bdaa93d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3198
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Maciej Wawryk 2020-07-03 10:59:12 +02:00 committed by Tomasz Zawadzki
parent 3c8451e69a
commit c7d1abba18
3 changed files with 24 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# Install main dependencies
swupd bundle-add -y c-basic make dev-utils openssl devpkg-libiscsi \
devpkg-ncurses python3-basic python-extras devpkg-open-iscsi \
jq storage-utils
storage-utils
# Additional dependencies for ISA-L used in compression
swupd bundle-add -y dev-utils-dev
# Additional dependencies for DPDK

View File

@ -0,0 +1,21 @@
package_manager=swupd
upgrade() {
sudo "$package_manager" update -y
}
install() {
(($#)) || return 0
sudo "$package_manager" bundle-add -y "$@"
}
packages=(
jq
)
pre_install() {
if [[ $INTSALL_TSOCKS == true ]]; then
install tsocks || echo "Installation of the tsocks package failed, proxy may not be available"
fi
}

View File

@ -72,6 +72,8 @@ elif hash pacman &> /dev/null; then
source "$vmsetupdir/pkgdep/pacman"
elif hash pkg &> /dev/null; then
source "$vmsetupdir/pkgdep/pkg"
elif hash swupd &> /dev/null; then
source "$vmsetupdir/pkgdep/swupd"
else
package_manager="undefined"
fi