add testcases for linux_statelite_installation

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10912 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
amy0701 2011-10-28 08:03:04 +00:00
parent 10d64c711a
commit 03618c5602

View File

@ -0,0 +1,55 @@
start:Linux_statelite_installation_flat
os:Linux
cmd:rscan __GETNODEATTR($$CN,hcp)__ -w
check:rc==0
cmd:makedns -n
check:rc==0
cmd:service named restart
check:rc==0
cmd:makeconservercf $$CN
check:rc==0
cmd:sleep 60
cmd:getmacs $$CN -D
check:rc==0
cmd:makedhcp -n
check:rc==0
cmd:makedhcp -a
check:rc==0
cmd:service dhcpd restart
check:rc==0
cmd:copycds $$ISO
check:rc==0
cmd:genimage -i __GETNODEATTR($$CN,installnic)__ -n $$NETDRIVER -o __GETNODEATTR($$CN,os)__ -p compute
check:rc==0
cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__
check:rc==0
cmd:tabrestore /opt/xcat/share/xcat/tools/autotest/testcase/installation/litefile.csv
check:rc==0
cmd:tabdump litefile
check:rc==0
cmd:mkdir -p /nodedata
cmd:chmod 755 /etc/exports
cmd:cat /etc/exports|grep nodedata; if [ "$?" -ne "0" ]; then echo "/nodedata *(rw,no_root_squash,sync,no_subtree_check)" >> /etc/exports; fi
check:rc==0
cmd:cd /etc; export exports;cd -
check:rc==0
cmd:service nfs restart
cmd:chtab node=$$CN statelite.statemnt="$$MN:/nodedata"
check:rc==0
cmd:chtab priority=4.7 policy.commands=litefile policy.rule=allow
check:rc==0
cmd:chtab priority=4.8 policy.commands=litetree policy.rule=allow
check:rc==0
cmd:liteimg -p compute -a __GETNODEATTR($$CN,arch)__ -o __GETNODEATTR($$CN,os)__
check:rc==0
cmd:nodeset $$CN statelite
check:rc==0
cmd:rnetboot $$CN
check:rc==0
cmd:sleep 600
cmd:lsdef -l $$CN | grep status
check:output=~booted
cmd:xdsh $$CN date
check:rc==0
check:output=~\d\d:\d\d:\d\d
end