mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
modified depending on comments
This commit is contained in:
parent
b1d75f8704
commit
c557dea948
0
xCAT-test/autotest/testcase/simulator/change_ip.sh
Normal file → Executable file
0
xCAT-test/autotest/testcase/simulator/change_ip.sh
Normal file → Executable file
@ -1,4 +1,5 @@
|
||||
start:clear_openbmc_simulator
|
||||
cmd:sh /opt/xcat/share/xcat/tools/autotest/testcase/setup_simulator/change_ip.sh -c $$MN $$CN
|
||||
description:clear evironment
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/setup_simulator/change_ip.sh -c $$MN $$CN
|
||||
check:rc==0
|
||||
end
|
||||
|
24
xCAT-test/autotest/testcase/simulator/install_git.sh
Executable file
24
xCAT-test/autotest/testcase/simulator/install_git.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
os=`cat /etc/*release*`
|
||||
|
||||
if [[ "$os" =~ "Red Hat" ]] || [[ "$os" =~ "suse" ]]; then
|
||||
yum install git
|
||||
if [ $? != 0 ]; then
|
||||
echo "Install git Failed." >> $log_file
|
||||
exit 1
|
||||
fi
|
||||
elif [[ "$os" =~ "ubuntu" ]]; then
|
||||
apt-get install git
|
||||
if [ $? != 0 ]; then
|
||||
echo "Install git Failed." >> $log_file
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
cd
|
||||
|
||||
git clone git@github.com:xuweibj/openbmc_simulator.git
|
||||
|
||||
exit $?
|
||||
|
@ -1,8 +1,9 @@
|
||||
start:setup_openbmc_simulator
|
||||
cmd:git clone git@github.com:xuweibj/openbmc_simulator.git
|
||||
description:install dependent packaages, setup and start openbmc simulator
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/install_git.sh
|
||||
check:rc==0
|
||||
cmd:/root/openbmc_simulator/simulator &
|
||||
check:rc==0
|
||||
cmd:sh /opt/xcat/share/xcat/tools/autotest/testcase/setup_simulator/change_ip.sh -s $$MN $$CN
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/change_ip.sh -s $$MN $$CN
|
||||
check:rc==0
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user