From 851094e6a197cc123bb9c8cf431c5919b693b2b0 Mon Sep 17 00:00:00 2001 From: litingt Date: Thu, 23 Oct 2014 19:23:32 -0700 Subject: [PATCH] add buildkit test cases --- xCAT-test/autotest/testcase/buildkit/cases0 | 251 ++++++++++++++++++-- 1 file changed, 232 insertions(+), 19 deletions(-) diff --git a/xCAT-test/autotest/testcase/buildkit/cases0 b/xCAT-test/autotest/testcase/buildkit/cases0 index cb2bd02e3..1dff639b4 100644 --- a/xCAT-test/autotest/testcase/buildkit/cases0 +++ b/xCAT-test/autotest/testcase/buildkit/cases0 @@ -63,7 +63,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/mykits end start:buildkit_buildrepo_all -os:Linux +os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit check:rc==0 @@ -75,7 +75,41 @@ check:output=~prodkit-1.0-1 cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir/prodkit-1.0-1-* check:output=~repodata check:output=~pkg1-1-1.noarch.rpm -check:output=~prodkit_compute-1.0-1.noarch.rpm +check:output=~prodkit-compute_1.0-1.noarch.rpm +cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end + +start:buildkit_buildrepo_all +os:sles +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +check:output!~error +cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir +check:output=~prodkit-1.0-1 +cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir/prodkit-1.0-1-* +check:output=~repodata +check:output=~pkg1-1-1.noarch.rpm +check:output=~prodkit-compute_1.0-1.noarch.rpm +cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end + +start:buildkit_buildrepo_all +os:ubuntu +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +check:output!~error +cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir +check:output=~prodkit-1.0-1 +cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir/prodkit-1.0-1-* +check:output=~Packages +check:output=~pkg1_1-2_all.deb +check:output=~prodkit-compute_1.0-1_all.deb cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end @@ -92,7 +126,7 @@ check:output=~prodkit-1.0-1 cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir/prodkit-1.0-1-* check:output=~repodata check:output=~pkg1-1-1.noarch.rpm -check:output=~prodkit_compute-1.0-1.noarch.rpm +check:output=~prodkit-compute-1.0-1.noarch.rpm cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end @@ -109,7 +143,24 @@ check:output=~prodkit-1.0-1 cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir/prodkit-1.0-1-* check:output=~repodata check:output=~pkg1-1-1.noarch.rpm -check:output=~prodkit_compute-1.0-1.noarch.rpm +check:output=~prodkit-compute-1.0-1.noarch.rpm +cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end + +start:buildkit_buildrepo_ubuntu +os:ubuntu +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;reponame=`cat buildkit.conf|grep kitrepoid|sed 's/ //g' |grep ^kitrepoid=|head -1|awk -F= '{print $2}'`;buildkit buildrepo $reponame +check:rc==0 +check:output!~error +cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir +check:output=~prodkit-1.0-1 +cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir/prodkit-1.0-1-* +check:output=~Packages +check:output=~pkg1_1-2_all.deb +check:output=~prodkit-compute_1.0-1_all.deb cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end @@ -138,7 +189,7 @@ cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit bu check:rc==0 cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;reponame=`cat buildkit.conf|grep kitrepoid|sed 's/ //g' |grep ^kitrepoid=|head -1|awk -F= '{print $2}'`;buildkit cleanrepo $reponame check:rc==0 -check:output=~Kit repository rhels[0-9].[0-9] has been removed +check:output=~been removed check:output!~error cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir|grep rhels check:output!~rhels @@ -161,6 +212,21 @@ check:output!~sles cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end +start:buildkit_cleanrepo_ubuntu +os:ubuntu +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;reponame=`cat buildkit.conf|grep kitrepoid|sed 's/ //g' |grep ^kitrepoid=|head -1|awk -F= '{print $2}'`;buildkit cleanrepo $reponame +check:rc==0 +check:output=~been removed +check:output!~error +cmd:ls /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build/kit_repodir|grep ubuntu +check:output!~ubuntu +cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end start:buildkit_listrepo os:rhels @@ -191,6 +257,19 @@ check:output!~error cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end +start:buildkit_listrepo +os:ubuntu +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit listrepo +check:rc==0 +check:output=~ DONE +check:output!~error +cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end start:buildkit_buildtar os:Linux @@ -212,12 +291,16 @@ end start:buildkit_cleantar -os:Linux +os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit check:rc==0 cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildtar +check:rc==0 +check:output=~prodkit-1.0-1.tar.bz2 successfully built +check:output!~error cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit cleantar check:rc==0 check:output=~Kit tar files have been successfully removed from /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit @@ -228,27 +311,50 @@ check:output!~prodkit-1.0-1.tar.bz2 cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end -start:buildkit_chkconfig -os:Linux +start:buildkit_cleantar +os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit check:rc==0 -cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit chkconfig +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all check:rc==0 -check:output=~No errors were found in Kit Build File /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf -cmd:mv /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/other_files/sample/exclude.lst /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/other_files/sample/exclude.lst.new -cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit chkconfig -check:rc!=0 -check:output=~Exclude List file /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/other_files/sample/exclude.lst defined in Kit Componenet "prodkit_compute" does not exist or is not readable -cmd:mv /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/other_files/sample/exclude.lst.new /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/other_files/sample/exclude.lst -cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit chkconfig +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildtar check:rc==0 -check:output=~~No errors were found in Kit Build File /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf +check:output=~prodkit-1.0-1.tar.bz2 successfully built +check:output!~error +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit cleantar +check:rc==0 +check:output=~Kit tar files have been successfully removed from /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +check:output=~Removed /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/rpmbuild +check:output!~error +cmd: ls |grep prodkit-1.0-1.tar.bz2 +check:output!~prodkit-1.0-1.tar.bz2 +cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end + +start:buildkit_cleantar +os:ubuntu +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildtar +check:rc==0 +check:output=~prodkit-1.0-1.tar.bz2 successfully built +check:output!~error +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit cleantar +check:rc==0 +check:output=~Kit tar files have been successfully removed from /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +check:output=~Removed /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/build +check:output!~error +cmd: ls |grep prodkit-1.0-1.tar.bz2 +check:output!~prodkit-1.0-1.tar.bz2 cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_partialkit -os:Linux +os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit check:rc==0 @@ -270,9 +376,54 @@ check:output!~pkg1-1-1.noarch.rpm cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end +start:buildkit_partialkit +os:sles +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf|sed 's/isexternalpkg=no/isexternalpkg=yes/g' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new |sed '/rpm_prebuiltdir/d' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp +check:rc==0 +cmd:mv /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildtar +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 +check:rc==0 +check:output=~prodkit-1.0-1/build_input/buildkit.conf +check:output=~prodkit-1.0-1/kit.conf +check:output=~prodkit-1.0-1/repos/ +check:output=~prodkit_compute-1.0-1.noarch.rpm +check:output!~pkg1-1-1.noarch.rpm +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end + +start:buildkit_partialkit_ubuntu +os:ubuntu +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf|sed 's/isexternalpkg=no/isexternalpkg=yes/g' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new |sed '/rpm_prebuiltdir/d' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp +check:rc==0 +cmd:mv /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildtar +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 +check:rc==0 +check:output=~prodkit-1.0-1/build_input/buildkit.conf +check:output=~prodkit-1.0-1/kit.conf +check:output=~prodkit-1.0-1/repos/ +check:output=~prodkit-compute_1.0-1_all.deb +check:output!~pkg1_1-2_all.deb +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end start:buildkit_partialkit_completekit -os:Linux +os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit check:rc==0 @@ -302,3 +453,65 @@ check:output=~pkg1-1-1.noarch.rpm cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end +start:buildkit_partialkit_completekit +os:sles +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf|sed 's/isexternalpkg=no/isexternalpkg=yes/g' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new |sed '/rpm_prebuiltdir/d' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp +check:rc==0 +cmd:mv /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildtar +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit addpkgs prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 -p source_packages/sample/pkg1 +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-1.0-1.tar.bz2 +check:rc==0 +check:output=~prodkit_compute-1.0-1.noarch.rpm +check:output=~pkg1-1-1.noarch.rpm +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;rm -f prodkit-1.0-1.tar.bz2 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit addpkgs prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 -p source_packages/sample/pkg1 -k 2.0 -r s002a +check:rc==0 +check:output=~/opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/prodkit-2.0-s002a.tar.bz2 successfully built +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-2.0-s002a.tar.bz2 +check:output=~prodkit_compute-2.0-s002a.noarch.rpm +check:output=~pkg1-1-1.noarch.rpm +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end + +start:buildkit_partialkit_completekit +os:ubuntu +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit +check:rc==0 +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf|sed 's/isexternalpkg=no/isexternalpkg=yes/g' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new +cmd:cat /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.new |sed '/rpm_prebuiltdir/d' > /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp +check:rc==0 +cmd:mv /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf.tmp /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/buildkit.conf +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit buildtar +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit addpkgs prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 -p source_packages/sample/pkg1 +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-1.0-1.tar.bz2 +check:rc==0 +check:output=~prodkit-compute_1.0-1_all.deb +check:output=~pkg1_1-2_all.deb +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;rm -f prodkit-1.0-1.tar.bz2 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;buildkit addpkgs prodkit-1.0-1.NEED_PRODUCT_PKGS.tar.bz2 -p source_packages/sample/pkg1 -k 2.0 -r s002a +check:rc==0 +check:output=~/opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit/prodkit-2.0-s002a.tar.bz2 successfully built +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit;tar -tf prodkit-2.0-s002a.tar.bz2 +check:output=~prodkit-compute_2.0-s002a_all.deb +check:output=~pkg1_1-2_all.deb +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit +end +