mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 18:16:39 +00:00
140 lines
6.0 KiB
Plaintext
140 lines
6.0 KiB
Plaintext
start:del_ospkg
|
|
description:del ospkg
|
|
label:others,postscripts,updatenode
|
|
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
|
|
description:add ospkg
|
|
label:others,postscripts,updatenode
|
|
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
|
|
description:add include ospkg list
|
|
label:others,postscripts,updatenode
|
|
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
|
|
description:add other pkg
|
|
label:others,postscripts,updatenode
|
|
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
|
|
description:del other pkg
|
|
label:others,postscripts,updatenode
|
|
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
|
|
description:add other pkg include other list
|
|
label:others,postscripts,updatenode
|
|
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
|
|
|