xcat-core/xCAT-test/autotest/testcase/addkit/cases0

123 lines
4.9 KiB
Plaintext
Raw Normal View History

2013-12-10 07:19:18 +00:00
start:addkit_v
cmd:addkit -v
check:rc==0
check:output~=Version
check:output~=kitframework
check:output~=compatible_frameworks
end
start:addkit_h
cmd:addkit -h
check:rc==0
check:output~=Usage
check:outpur!~error
end
start:addkit_kit
os:Linux
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prodkit
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildrepo all
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildtar
check:rc==0
cmd:addkit /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2
check:rc==0
check:output=~Adding Kit prodkit-1.0-1
check:output=~Kit prodkit-1.0-1 was successfully added
check:output!~error
cmd:tabdump kit|grep prodkit-1.0-1
check:rc==0
cmd:rmkit prodkit-1.0-1
cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
end
start:addkit_i
os:Linux
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prodkit
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildrepo all
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildtar
check:rc==0
cmd:addkit -i /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2
check:rc==0
check:output=~kitname=prodkit-1.0-1
check:output=~description=description for prodkit
check:output=~version=1.0
check:output=~ostype=Linux
cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
end
start:addkit_multikit
os:Linux
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
2014-10-24 02:25:37 +00:00
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit
2013-12-10 07:19:18 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prodkit
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildrepo all
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildtar
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prod2kit
2013-12-10 07:19:18 +00:00
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit;buildkit buildrepo all
2013-12-10 07:19:18 +00:00
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit;buildkit buildtar
2013-12-10 07:19:18 +00:00
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:addkit /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2,/opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit/prod2kit-1.0-1.tar.bz2
2013-12-10 07:19:18 +00:00
check:rc==0
check:output=~Adding Kit prodkit-1.0-1
2014-10-24 02:25:37 +00:00
check:output=~Adding Kit prod2kit-1.0-1
check:output=~Kit prodkit-1.0-1,prod2kit-1.0-1 was successfully added
2013-12-10 07:19:18 +00:00
cmd:tabdump kit|grep prodkit-1.0-1
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:tabdump kit|grep prod2kit-1.0-1
2013-12-10 07:19:18 +00:00
check:rc==0
cmd:rmkit prodkit-1.0-1
2014-10-24 02:25:37 +00:00
cmd:rmkit prod2kit-1.0-1
2013-12-10 07:19:18 +00:00
cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2
2014-10-24 02:25:37 +00:00
cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit/prod2kit-1.0-1.tar.bz2
2013-12-10 07:19:18 +00:00
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
2014-10-24 02:25:37 +00:00
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit
2013-12-10 07:19:18 +00:00
end
start:addkit_p
os:Linux
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
2014-10-24 02:25:37 +00:00
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit
2013-12-10 07:19:18 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prodkit
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildrepo all
check:rc==0
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit;buildkit buildtar
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prod2kit
2013-12-10 07:19:18 +00:00
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit;buildkit buildrepo all
2013-12-10 07:19:18 +00:00
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit;buildkit buildtar
2013-12-10 07:19:18 +00:00
check:rc==0
cmd:mkdir -p /install/test
2014-10-24 02:25:37 +00:00
cmd:addkit -p /install/test /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2,/opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit/prod2kit-1.0-1.tar.bz2
2013-12-10 07:19:18 +00:00
check:rc==0
check:output=~Adding Kit prodkit-1.0-1
2014-10-24 02:25:37 +00:00
check:output=~Adding Kit prod2kit-1.0-1
check:output=~Kit prodkit-1.0-1,prod2kit-1.0-1 was successfully added
2013-12-10 07:19:18 +00:00
cmd:tabdump kit|grep prodkit-1.0-1
check:rc==0
2014-10-24 02:25:37 +00:00
cmd:tabdump kit|grep prod2kit-1.0-1
2013-12-10 07:19:18 +00:00
cmd:rmkit prodkit-1.0-1
2014-10-24 02:25:37 +00:00
cmd:rmkit prod2kit-1.0-1
2013-12-10 07:19:18 +00:00
cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit/prodkit-1.0-1.tar.bz2
2014-10-24 02:25:37 +00:00
cmd:rm -f /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit/prod2kit-1.0-1.tar.bz2
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit
2013-12-10 07:19:18 +00:00
cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit
end