From 11d7b92d0a87e9ca756973599f761f464b942a94 Mon Sep 17 00:00:00 2001 From: amy0701 Date: Wed, 13 Jul 2011 08:15:11 +0000 Subject: [PATCH] update git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10076 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-test/autotest/testcase/gettab/cases0 | 36 +++++++++++++++ xCAT-test/autotest/testcase/nodegrpch/cases0 | 47 ++++++++++++++++++++ xCAT-test/autotest/testcase/noderm/cases0 | 29 ++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 xCAT-test/autotest/testcase/nodegrpch/cases0 diff --git a/xCAT-test/autotest/testcase/gettab/cases0 b/xCAT-test/autotest/testcase/gettab/cases0 index 379627df4..c5ee2021c 100644 --- a/xCAT-test/autotest/testcase/gettab/cases0 +++ b/xCAT-test/autotest/testcase/gettab/cases0 @@ -3,3 +3,39 @@ cmd:gettab key=xcatdport site.value check:rc==0 check:output==3001 end + + +start:gettab_H +description:gettab -H and --with-fieldname +cmd:gettab -H key=master site.value +check:rc==0 +check:output=~site.value: +cmd:gettab --with-fieldname key=master site.value +check:rc==0 +check:output=~site.value: +end + +start:gettab_err +description:gettab with error symble ,error key ,error attr. +cmd:gettab -c +check:rc!=0 +check:output=~Usage +cmd:gettab -H groups=master site.key +check:rc!=0 +cmd:gettab -H key=master site.groups +check:rc==0 +check:output=site.groups: +end + +end + + +start:gettab_h +description:gettab -h and -? and --help +cmd:gettab -h +check:output=~Usage +cmd:gettab -? +check:output=~Usage +cmd:gettab --help +check:output=~Usage +end diff --git a/xCAT-test/autotest/testcase/nodegrpch/cases0 b/xCAT-test/autotest/testcase/nodegrpch/cases0 new file mode 100644 index 000000000..f1ccf68e8 --- /dev/null +++ b/xCAT-test/autotest/testcase/nodegrpch/cases0 @@ -0,0 +1,47 @@ +start:nodegrpch_v +description:nodegrpch -v and --version +cmd:nodegrpch -v +check:output=~Version +cmd:nodegrpch --version +check:output=~Version +end + +start:nodegrpch_h +description:nodegrpch -? and -h --help +cmd:nodegrpch -h +check:output=~Usage +cmd:nodegrpch -? +check:output=~Usage +cmd:nodegrpch --help +check:output=~Usage +end + + +start:nodegrpch_groups +description:nodegrpch rh4.1234567890 mgt=hmc +cmd:chdef -t node -o testnode groups=rh4.1234567890 mgt=blade +check:rc==0 +cmd:nodegrpch rh4.1234567890 mgt=hmc +check:rc==0 +cmd:lsdef -t node -o testnode -i mgt +check:rc==0 +check:output=~mgt=hmc +cmd:rmdef -t node testnode +end + + +start:nodegrpch_err +description: +cmd:nodegrpch -c +check:rc!=0 +check:output=~Usage +end + + + + + + + + + diff --git a/xCAT-test/autotest/testcase/noderm/cases0 b/xCAT-test/autotest/testcase/noderm/cases0 index d055f3f34..c8a0cb4a4 100644 --- a/xCAT-test/autotest/testcase/noderm/cases0 +++ b/xCAT-test/autotest/testcase/noderm/cases0 @@ -1,4 +1,5 @@ start:noderm_noderange +description:noderm testnode1,testnode2 cmd:nodeadd testnode1,testnode2 groups=all check:rc==0 cmd:lsdef -t node testnode1,testnode2 @@ -10,3 +11,31 @@ cmd:lsdef -t node testnode1,testnode2 check:output=~Could not find an object named 'testnode1' of type 'node'. check:output=~Could not find an object named 'testnode2' of type 'node'. end + +start:noderm_h +description:noderm -h +cmd:noderm -h +check:output=~Usage +cmd:noderm --help +check:output=~Usage +end + +start:noderm_null +description:noderm +cmd:noderm +check:output=~Usage +end + +start:noderm_err_node +description:noderm err +cmd:rmdef -t node testnode +cmd:noderm testnode +check:rc!=0 +check:output=~Invalid nodes and/or groups in noderange: testnode +end + + + + + +