From ec7f8410a35e00c5b5b31d779e4755162266cbf5 Mon Sep 17 00:00:00 2001 From: amy0701 Date: Tue, 6 Dec 2011 06:18:15 +0000 Subject: [PATCH] testcase for imgexport git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11130 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-test/autotest/testcase/imgexport/cases0 | 62 ++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 xCAT-test/autotest/testcase/imgexport/cases0 diff --git a/xCAT-test/autotest/testcase/imgexport/cases0 b/xCAT-test/autotest/testcase/imgexport/cases0 new file mode 100644 index 000000000..05b61c712 --- /dev/null +++ b/xCAT-test/autotest/testcase/imgexport/cases0 @@ -0,0 +1,62 @@ +start:imagexport_imagename_destination +os:Linux +description:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz +cmd:copycds $$ISO +cmd:$$NETBOOTDIR/genimage -i __GETNODEATTR($$CN,installnic)__ -n $$NETDRIVER -o __GETNODEATTR($$CN,os)__ -p compute +check:rc==0 +cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg +check:rc==0 +cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__ +check:rc==0 +cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.gz +check:rc==0 +cmd:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz +check:rc==0 +check:output=~Done! +cmd:ls foo.tgz +check:rc==0 +cmd:rm -rf foo.tgz +end + +start:imgexport_imagename_destination_p_e +os:Linux +description:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz -p $$CN -e /install/postscripts/testscript1 +cmd:copycds $$ISO +cmd:$$NETBOOTDIR/genimage -i __GETNODEATTR($$CN,installnic)__ -n $$NETDRIVER -o __GETNODEATTR($$CN,os)__ -p compute +check:rc==0 +cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg +check:rc==0 +cmd:packimage -o __GETNODEATTR($$CN,os)__ -p compute -a __GETNODEATTR($$CN,arch)__ +check:rc==0 +cmd:ls -l /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.gz +check:rc==0 +cmd:echo testscrpit >> /install/postscripts/testscript1 +cmd:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz -p $$CN -e /install/postscripts/testscript1 +check:rc==0 +check:output=~Done! +cmd:ls foo.tgz +check:rc==0 +cmd:rm -rf foo.tgz +cmd:rm -rf /install/postscripts/testscript1 +end + + + + +start:imgexport_h +os:Linux +description: +cmd:imgexport -h +check:output=~Usage|usage +cmd:imgexport --help +check:output=~Usage|usage +end + + +start:imgexport_v +os:Linux +cmd:imgexport -v +check:output=~version|Version +cmd:imgexport --version +check:output=~version|Version +edn