diff options
author | Li Zhijian <zhijianx.li@intel.com> | 2019-06-27 09:41:14 +0800 |
---|---|---|
committer | Philip Li <philip.li@intel.com> | 2019-06-27 10:01:21 +0800 |
commit | b65420eedd3788f20619c23b26b28b0217806bc3 (patch) | |
tree | 360bab4d613e4c4ff490b8221087b777df394964 | |
parent | c404010839ed290af5c288acbe39a84213e08c5e (diff) | |
download | lkp-tests-b65420eedd3788f20619c23b26b28b0217806bc3.tar.gz |
aliyunos: add pack support
Signed-off-by: Li Zhijian <zhijianx.li@intel.com>
Signed-off-by: Philip Li <philip.li@intel.com>
l--------- | distro/adaptation-pkg/aliyun | 1 | ||||
l--------- | distro/adaptation/aliyun | 1 | ||||
-rwxr-xr-x | distro/aliyun | 47 | ||||
l--------- | distro/installer/aliyun | 1 |
4 files changed, 50 insertions, 0 deletions
diff --git a/distro/adaptation-pkg/aliyun b/distro/adaptation-pkg/aliyun new file mode 120000 index 00000000..4d082798 --- /dev/null +++ b/distro/adaptation-pkg/aliyun @@ -0,0 +1 @@ +redhat
\ No newline at end of file diff --git a/distro/adaptation/aliyun b/distro/adaptation/aliyun new file mode 120000 index 00000000..4d082798 --- /dev/null +++ b/distro/adaptation/aliyun @@ -0,0 +1 @@ +redhat
\ No newline at end of file diff --git a/distro/aliyun b/distro/aliyun new file mode 100755 index 00000000..933d9715 --- /dev/null +++ b/distro/aliyun @@ -0,0 +1,47 @@ +#!/bin/bash + +shopt -s nullglob + +. $LKP_SRC/lib/install.sh +. $LKP_SRC/distro/common +. $LKP_SRC/lib/debug.sh + +yum_install_depends() +{ + local script + local bm="$1" + local scripts=$(find $LKP_SRC/distro/depends/ -name "$bm" -o -name "${bm}.[0-9]") + + for script in $scripts + do + script=$(basename $script) + packages=$(get_dependency_packages $DISTRO $script) + + [ -z "$packages" ] && continue + + echo install packages for $script: $packages + + yum install -y $packages + done +} + +pack_benchmark() +{ + yum_install_depends lkp-dev + + # Process each benchmark + for BM_NAME in $benchmark + do + yum_install_depends $BM_NAME-dev || continue + echo $LKP_SRC/sbin/pack -d $DISTRO -f -c -s $PKG_MNT/$pack_to $BM_NAME + ( + setup_proxy + $LKP_SRC/sbin/pack -d $DISTRO -f -c -s $PKG_MNT/$pack_to $BM_NAME + ) + done +} + +pack_benchmark_deps() +{ + : +} diff --git a/distro/installer/aliyun b/distro/installer/aliyun new file mode 120000 index 00000000..4d082798 --- /dev/null +++ b/distro/installer/aliyun @@ -0,0 +1 @@ +redhat
\ No newline at end of file |