From: ting t. l. <xca...@so...> - 2014-10-24 01:20:58
|
The branch, master has been updated via ad2b7370cc73ed00f5ac2f203ae97b5d12be419c (commit) from 0db64ebb8e5029a1e4af8a1a596577da01dd1bf3 (commit) ----------------------------------------------------------------------- commit ad2b7370cc73ed00f5ac2f203ae97b5d12be419c Author: litingt <li...@cn...> Date: Thu Oct 23 19:17:35 2014 -0700 add lskit test cases ----------------------------------------------------------------------- diff --git a/xCAT-test/autotest/testcase/lskit/case0 b/xCAT-test/autotest/testcase/lskit/case0 new file mode 100644 index 0000000..2a3a2c8 --- /dev/null +++ b/xCAT-test/autotest/testcase/lskit/case0 @@ -0,0 +1,115 @@ +start:lskit_v +os:Linux +cmd:lskit -v +check:rc==0 +check:output=~lskit +check:output=~kitframework +check:output=~compatible_frameworks +cmd:lskit --version +check:rc==0 +check:output=~lskit +check:output=~kitframework +check:output=~compatible_frameworks +end + +start:lskit_h +os:Linux +cmd:lskit -h +check:rc==0 +check:output =~ Usage +cmd:lskit --help +check:rc==0 +check:output=~ Usage +end + +start:lskit_F +os:Linux +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits +check:rc==0 +check:output=~Kit template for mykits created in /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits directory +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildtar +check:rc==0 +cmd:lskit -F /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +check:rc==0 +check:output=~Extracting the kit.conf file from /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +check:output=~kitframework +check:output=~compatible_kitframeworks +cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +end + +start:lskit_K +os:Linux +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits +check:rc==0 +check:output=~Kit template for mykits created in /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits directory +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildtar +check:rc==0 +cmd:addkit /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +check:rc==0 +check:output=~Kit mykits-1.0-1 was successfully added +cmd:lskit -K basename mykits-1.0-1 +check:rc==0 +check:output=~basename +cmd:rmkit mykits-1.0-1 +check:rc==0 +check:output=~Kit mykits-1.0-1 was successfully removed +cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +end + +start:lskit_R +os:Linux +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits +check:rc==0 +check:output=~Kit template for mykits created in /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits directory +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildtar +check:rc==0 +cmd:addkit /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +check:rc==0 +check:output=~Kit mykits-1.0-1 was successfully added +cmd:lskit -R kitrepodir mykits-1.0-1 +check:rc==0 +check:output=~kitrepodir +cmd:lskit -R kitreponame mykits-1.0-1 +check:rc==0 +check:output=~kitreponame +cmd:rmkit mykits-1.0-1 +check:rc==0 +check:output=~Kit mykits-1.0-1 was successfully removed +cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +end + +start:lskit_C +os:Linux +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits +check:rc==0 +check:output=~Kit template for mykits created in /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits directory +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildrepo all +check:rc==0 +cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits;buildkit buildtar +check:rc==0 +cmd:addkit /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +check:rc==0 +check:output=~Kit mykits-1.0-1 was successfully added +cmd:lskit -C kitcompname mykits-1.0-1 +check:rc==0 +check:output=~kitcompname +cmd:rmkit mykits-1.0-1 +check:rc==0 +check:output=~Kit mykits-1.0-1 was successfully removed +cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits/mykits-1.0-1.tar.bz2 +cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits +end + |