2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00
2023-01-10 10:21:40 -05:00

62 lines
2.0 KiB
Plaintext

start:set_up_env_for_support_openbmc_in_python
description:this case is used to test environment setup for supporting openbmc in python on RH7
label:others,hctrl_openbmc
os:Linux
hcp:openbmc,kvm
cmd:mkdir -p /tmp/set_up_env_for_support_openbmc_in_python
check:rc==0
cmd:#!/usr/bin/bash
echo "[xcat-python-dep-EPEL]
name=epel generated repo
baseurl=file://__REPLACE_PATH__EPEL__
enabled=1
gpgcheck=0
[xcat-python-dep-EXTRAS]
name=extras generated repo
baseurl=file://__REPLACE_PATH__EXTRAS__
enabled=1
gpgcheck=0
[xcat-python-dep-FEDORA28]
name=FC28 generated repo
baseurl=file://__REPLACE_PATH__FED__
enabled=1
gpgcheck=0" > /etc/yum.repos.d/xcat-dep-python-local.repo
check:rc==0
cmd:sed -i "s|__REPLACE_PATH__EPEL__|$$PYTHON_DEP_EPEL_DIR|g" /etc/yum.repos.d/xcat-dep-python-local.repo
check:rc==0
cmd:sed -i "s|__REPLACE_PATH__EXTRAS__|$$PYTHON_DEP_EXTRAS_DIR|g" /etc/yum.repos.d/xcat-dep-python-local.repo
check:rc==0
cmd:sed -i "s|__REPLACE_PATH__FED__|$$PYTHON_DEP_FED_DIR|" /etc/yum.repos.d/xcat-dep-python-local.repo
check:rc==0
cmd:cat /etc/yum.repos.d/xcat-dep-python-local.repo
check:rc==0
cmd:wget https://xcat.org/files/xcat/xcat-dep/2.x_Linux/beta/xCAT-openbmc-py-RH7-2.14.6-snap202204090016.noarch.rpm --no-check-certificate -O /tmp/xCAT-openbmc-py-RH7.noarch.rpm
check:rc==0
cmd:ls -l /tmp/xCAT-openbmc-py-RH7.noarch.rpm
check:rc==0
cmd:yum install -y /tmp/xCAT-openbmc-py-RH7.noarch.rpm
check:rc==0
cmd:rpm -qa|grep "^xCAT-openbmc-py"
check:output=~ xCAT-openbmc-py-\d
check:rc==0
cmd:rm -rf /tmp/set_up_env_for_support_openbmc_in_python
check:rc==0
end
start:set_up_env_for_RH8_support_openbmc_in_python
description:this case is used to test environment setup for supporting openbmc in python on RH8
label:others,hctrl_openbmc
os:Linux
hcp:openbmc,kvm
cmd:yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
check:rc==0
cmd:yum install -y xCAT-openbmc-py
check:rc==0
cmd:rpm -qa|grep "^xCAT-openbmc-py"
check:output=~ xCAT-openbmc-py-\d
check:rc==0
end