add testcases for xcat2nim and chkosimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10785 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		
							
								
								
									
										44
									
								
								xCAT-test/autotest/testcase/chkosimage/cases0
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								xCAT-test/autotest/testcase/chkosimage/cases0
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,44 @@ | ||||
| start:chkosimage_h | ||||
| description:chkosimage -h and --help | ||||
| os:AIX | ||||
| cmd:chkosimage -h | ||||
| check:output=~usage|Usage | ||||
| cmd:chkosimage --help | ||||
| check:output=~usage|Usage | ||||
| end | ||||
|  | ||||
|  | ||||
| start:chkosimage_imagename | ||||
| description: chkosimage autotest | ||||
| os:AIX | ||||
| cmd:mknimimage -V -s $$SOURCE autotest | ||||
| check:rc==0 | ||||
| cmd:lsnim | grep autotest | ||||
| check:rc==0 | ||||
| check:output=~lpp_source | ||||
| check:output=~spot | ||||
| check:output=~bosinst_data | ||||
| cmd:nim -o update -a packages=all -a source=$$SSHPKG autotest_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 autotest installp_bundle="xCATaixCN71" | ||||
| check:rc==0 | ||||
| cmd:chkosimage autotest | ||||
| check:rc==0 | ||||
| end | ||||
|  | ||||
| start:chkosimage_V_c_imagename | ||||
| description:chkosimage -V -c autotest | ||||
| os:AIX | ||||
| cmd:lsnim | grep autotest | ||||
| check:rc==0 | ||||
| check:output=~lpp_source | ||||
| check:output=~spot | ||||
| check:output=~bosinst_data | ||||
| cmd:chkosimage -V -c autotest | ||||
| check:rc==0 | ||||
| end | ||||
|  | ||||
| @@ -8,6 +8,7 @@ check:output=~ exec /opt/xcat/share/xcat/cons/hmc testnode; | ||||
| check:output=~} | ||||
| cmd:rmdef -t node testnode | ||||
| end | ||||
|  | ||||
| start:makeconservercf_noderange | ||||
| cmd:chdef -t node -o testnode cons=hmc | ||||
| cmd:makeconservercf testnode | ||||
| @@ -18,6 +19,7 @@ check:output=~ exec /opt/xcat/share/xcat/cons/hmc testnode; | ||||
| check:output=~} | ||||
| cmd:rmdef -t node testnode | ||||
| end | ||||
|  | ||||
| start:makeconservercf_d | ||||
| cmd:chdef -t node -o testnode cons=hmc | ||||
| cmd:makeconservercf testnode | ||||
|   | ||||
							
								
								
									
										48
									
								
								xCAT-test/autotest/testcase/xcat2nim/cases0
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								xCAT-test/autotest/testcase/xcat2nim/cases0
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| start:xcat2nim_h | ||||
| description:xcat2nim -h and --help | ||||
| os:AIX | ||||
| cmd:xcat2nim -h  | ||||
| check:output=~usage|Usage | ||||
| cmd:xcat2nim --help | ||||
| check:output=~usage|Usage | ||||
| end | ||||
|  | ||||
|  | ||||
| start:xcat2nim_t_f_o_V_att | ||||
| description:xcat2nim -f -t node -o CN -V att= | ||||
| os:AIX | ||||
| cmd:xcat2nim -t node -f -o $$CN -V netboot_kernel=mp | ||||
| check:rc==0 | ||||
| cmd:lsnim -l $$CN | ||||
| check:output=~netboot_kernel = mp | ||||
| cmd:xcat2nim -t node -f -o $$CN -V  | ||||
| end | ||||
|  | ||||
|  | ||||
| start:xcat2nim_l | ||||
| description:xcat2nim -l CN | ||||
| os:AIX | ||||
| cmd:xcat2nim -l $$CN | ||||
| check:rc==0 | ||||
| check:output=~$$CN: | ||||
| end | ||||
|  | ||||
| start:xcat2nim_r | ||||
| description:xcat2nim -r CN | ||||
| os:AIX | ||||
| cmd:xcat2nim -r $$CN | ||||
| check:rc==0 | ||||
| cmd:lsnim | ||||
| check:output!~$$CN | ||||
| cmd:xcat2nim -t node -o $$CN | ||||
| end | ||||
|  | ||||
| start:xcat2nim_u | ||||
| description:xcat2nim -u CN | ||||
| os:AIX | ||||
| cmd:lsnim | ||||
| check:output=~$$CN | ||||
| cmd:xcat2nim -u $$CN | ||||
| check:rc==0 | ||||
| end | ||||
|  | ||||
		Reference in New Issue
	
	Block a user