mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			134 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			134 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| start:del_ospkg
 | |
| descreption:del ospkg
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -g $$osimage -t pkglist -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep "ii  rpm"|grep "package manager for RPM" ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c -g $$osimage -t pkglist -v  __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -r -g $$osimage -t pkglist -v  __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c -g $$osimage -t pkglist -v  __GETNODEATTR($$CN,os)__
 | |
| cmd:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep "ii  rpm" |grep "package manager for RPM";else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc!=0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| end
 | |
| 
 | |
| start:add_ospkg_updatenode
 | |
| descreption:add ospkg
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -g $$osimage -t pkglist -v  __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep "ii  rpm"|grep "package manager for RPM";else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c -g $$osimage -t pkglist -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN  dpkg -r rpm; else  xdsh $$CN rpm -e xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep "ii  rpm"|grep "package manager for RPM" ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc!=0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| end
 | |
| 
 | |
| start:add_includeospkg_updatenode
 | |
| descreption:add include ospkg list
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -i -g $$osimage -t pkglist -v __GETNODEATTR($$CN,os)__ 
 | |
| check:rc==0
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep "ii  rpm"|grep "package manager for RPM" ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c  -g $$osimage -t pkglist -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN  dpkg -r rpm; else  xdsh $$CN rpm -e xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep "ii  rpm"|grep "package manager for RPM" ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc!=0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| end
 | |
| 
 | |
| start:add_other_pkg
 | |
| descreption:add other pkg
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep xcat ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c -o -g $$osimage -t otherpkgdir  -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN  dpkg -r xcat-test; else  xdsh $$CN rpm -e xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep xcat ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc!=0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| end
 | |
| 
 | |
| start:del_other_pkg
 | |
| descreption:del other pkg
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:sleep 10 
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep xcat ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -r -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep xcat ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc!=0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__ 
 | |
| check:rc==0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| end
 | |
| 
 | |
| start:add_other_pkg_include
 | |
| descreption:add other pkg include other list 
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -i -o -g $$osimage -t otherpkgdir  -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:updatenode $$CN -S
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep xcat ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -c -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN  dpkg -r xcat-test; else  xdsh $$CN rpm -e xCAT-test; fi
 | |
| check:rc==0
 | |
| cmd:if echo "__GETNODEATTR($$CN,os)__" | grep ubuntu >/dev/null; then xdsh $$CN dpkg -l |grep xcat ;else xdsh $$CN rpm -qa |grep xCAT-test; fi
 | |
| check:rc!=0
 | |
| cmd:copycds $$ISO
 | |
| check:rc==0
 | |
| end
 | |
| 
 |