From 82a890167212717a335c147ea3b92fbae6c3ef5b Mon Sep 17 00:00:00 2001 From: amy0701 Date: Mon, 10 Oct 2011 09:46:05 +0000 Subject: [PATCH] add testcases for rmnimimage git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10728 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-test/autotest/testcase/rmnimimage/cases0 | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 xCAT-test/autotest/testcase/rmnimimage/cases0 diff --git a/xCAT-test/autotest/testcase/rmnimimage/cases0 b/xCAT-test/autotest/testcase/rmnimimage/cases0 new file mode 100644 index 000000000..1bfa1de20 --- /dev/null +++ b/xCAT-test/autotest/testcase/rmnimimage/cases0 @@ -0,0 +1,59 @@ +start:rmnimimage_imagename +description:rmnimimage testimage +os:AIX +cmd:mknimimage -s $$SOURCE testimage +check:rc==0 +check:output=~lpp_source=testimage_lpp_source +check:output=~bosinst_data=testimage_bosinst_data +check:output=~testimage +cmd:rmnimimage testimage +check:rc==0 +cmd:lsnim +check:output!~testimage_bosinst_data +check:output=~testimage_lpp_source +cmd:rmdef -t osimage -o testimage +end + +start:rmnimimage_d_imagename +description:rmnimimage -d imagename +os:AIX +cmd:mknimimage -s $$SOURCE testimage +check:rc==0 +check:output=~lpp_source=testimage_lpp_source +check:output=~bosinst_data=testimage_bosinst_data +check:output=~testimage +cmd:rmnimimage -d testimage +check:rc==0 +cmd:lsnim +check:output!~testimage +cmd:tabdump osimage +check:output=~testimage +cmd:rmdef -t osimage -o testimage +end + +start:rmnimimage_x_imagename +os:AIX +cmd:mknimimage -s $$SOURCE testimage +check:rc==0 +check:output=~lpp_source=testimage_lpp_source +check:output=~bosinst_data=testimage_bosinst_data +check:output=~testimage +cmd:rmnimimage testimage +check:rc==0 +cmd:tabdump osimage +check:output=~testimage +cmd:rmnimimage -x testimage +ckeck:rc==0 +cmd:tabdump osimage +ckeck:output!~testimage +end + +start:rmnimimage_h +description:rmnimimage -h and --help +os:AIX +cmd:rmnimimage -h +check:output=~usage|Usage +cmd:rmnimimage --help +check:output=~usage|Usage +end +