From 284ae1da1cab3bd172edcc31fac00ad42acf6006 Mon Sep 17 00:00:00 2001 From: amy0701 Date: Fri, 28 Oct 2011 05:26:42 +0000 Subject: [PATCH] add aix_statelite_installation testcase git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../installation/aix_statelite_installation | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 xCAT-test/autotest/testcase/installation/aix_statelite_installation diff --git a/xCAT-test/autotest/testcase/installation/aix_statelite_installation b/xCAT-test/autotest/testcase/installation/aix_statelite_installation new file mode 100644 index 000000000..55522cc14 --- /dev/null +++ b/xCAT-test/autotest/testcase/installation/aix_statelite_installation @@ -0,0 +1,71 @@ +start:aix_statelite_installation_flat +os:AIX +cmd:mkdir -p /nodedata +cmd:chmod 755 /etc/exports +cmd:cat /etc/exports|grep nodedata; if [ "$?" -ne "0" ]; then echo "/nodedata -sec=sys:none,anon=0,rw " >> /etc/exports; fi +check:rc==0 +cmd:exportfs -a +check:rc==0 +cmd:chtab node=$$CN statelite.statemnt="$$MN:/nodedata" +check:rc==0 +cmd:chtab litefile.image="ALL" litefile.file="/logs/" litefile.options="persistent" +check:rc==0 +cmd:mknimimage -u autotestcosi -V +check:rc==0 +check:output=~Installing installp filesets in SPOT $$CN +check:output=~Installing RPM packages in SPOT $$CN +check:output=~Completed Installing RPM packages in SPOT $$CN +check:output=~Updated software in the NIM SPOT called +cmd:lsnim | grep autotestcosi +check:rc==0 +check:output=~lpp_source +check:output=~spot +check:output=~paging +check:output=~shared_root +cmd:nim -o update -a packages=all -a source=$$SSHPKG autotestcosi_lpp_source +check:rc==0 +cmd:mkdir -p /install/nim/installp_bundle +cmd:cp $$SSHPKG/xCATaixCN71.bnd /install/nim/installp_bundle/ +check:rc==0 +cmd:nim -o define -t installp_bundle -a server=master -a location=/install/nim/installp_bundle/xCATaixCN71.bnd xCATaixCN71 +cmd:chdef -t osimage -o autotestcosi installp_bundle="xCATaixCN71" +check:rc==0 +cmd:xcatchroot -i autotestcosi "/usr/bin/echo root:cluster|/usr/bin/chpasswd -c" +check:rc==0 +cmd:mknimimage -u autotestcosi +check:rc==0 +cmd:rscan __GETNODEATTR($$CN, hcp)__ -z > test.node +check:rc==0 +cmd:sleep 60 +cmd:cat test.node|mkdef -z +cmd:makeconservercf $$CN +check:rc==0 +cmd:sleep 60 +cmd:cat /etc/conserver.cf | grep $$CN +check:output=~$$CN +cmd:getmacs $$CN -f -D +check:rc==0 +cmd:mkdsklsnode -i autotestcosi $$CN -f +check:rc==0 +cmd:lsnim | grep $$CN +check:output=~machines +cmd:lsnim -l $$CN +check:output=~diskless or dataless boot is enabled +cmd:cat /etc/bootptab | grep $$CN +check:output=~__GETNODEATTR($$CN, mac)__ +cmd:ls -l /tftpboot/$$CN* +check:output=~$$CN +cmd:cat /etc/exports | grep $$CN +check:output=~autotestcosi_shared_root +check:output=~spot/autotestcosi/usr +check:output=~autotestcosi_paging +cmd:rnetboot $$CN +check:rc==0 +cmd:sleep 300 +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 +