2011-02-12 06:02:46 +00:00
|
|
|
#comment out for developper will not fix it
|
|
|
|
#start:chvm_null
|
|
|
|
#cmd:chvm
|
|
|
|
#check:rc!=0
|
|
|
|
#check:output=~Usage
|
|
|
|
#end
|
2010-09-20 08:10:57 +00:00
|
|
|
start:chvm_p
|
|
|
|
hcp:hmc
|
|
|
|
cmd:mkdef -t node -o testnode mgt=hmc groups=all
|
|
|
|
cmd:mkvm testnode -i $$MaxLparID -l $$CN
|
|
|
|
check:rc==0
|
2011-02-14 06:26:57 +00:00
|
|
|
cmd:lsvm testnode > /tmp/autotest.profile
|
|
|
|
check:rc==0
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:perl -pi -e 's/min_mem=\d+/min_mem=1024/g' /tmp/autotest.profile
|
|
|
|
cmd:cat /tmp/autotest.profile|chvm testnode
|
|
|
|
check:rc==0
|
|
|
|
cmd:lsvm testnode
|
|
|
|
check:output=~min_mem=1024
|
|
|
|
cmd:chvm testnode -p __GETNODEATTR($$CN, pprofile)__
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Success
|
2011-02-14 06:26:57 +00:00
|
|
|
cmd:lsvm -a testnode
|
|
|
|
check:output=~__GETNODEATTR($$CN, pprofile)__
|
2011-02-14 06:34:33 +00:00
|
|
|
cmd:lsdef -t node -l testnode -i pprofile
|
|
|
|
check:output=~__GETNODEATTR($$CN, pprofile)__
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:rmvm testnode
|
|
|
|
cmd:rm -f /tmp/autotest.profile
|
|
|
|
end
|
|
|
|
start:chvm_attr
|
|
|
|
hcp:hmc
|
|
|
|
cmd:mkdef -t node -o testnode mgt=hmc groups=all
|
|
|
|
cmd:mkvm testnode -i $$MaxLparID -l $$CN
|
|
|
|
check:rc==0
|
|
|
|
cmd:chvm testnode min_mem=1024
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Success
|
|
|
|
cmd:lsvm testnode
|
|
|
|
check:output=~min_mem=1024
|
|
|
|
cmd:rmvm testnode
|
|
|
|
end
|
|
|
|
start:chvm_node
|
|
|
|
cmd:chvm $$CN
|
|
|
|
check:rc!=0
|
2011-02-12 06:02:46 +00:00
|
|
|
check:output=~Usage
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
|
|
|
start:chvm_err_node
|
|
|
|
cmd:chvm testnode
|
|
|
|
check:rc!=0
|
|
|
|
check:output=~Error
|
|
|
|
end
|