diff --git a/xCAT-test/autotest/testcase/tabgrep/cases0 b/xCAT-test/autotest/testcase/tabgrep/cases0 index 232fae50c..b0c2d8cbb 100644 --- a/xCAT-test/autotest/testcase/tabgrep/cases0 +++ b/xCAT-test/autotest/testcase/tabgrep/cases0 @@ -1,3 +1,22 @@ +start:tabgrep_null +description: tabgrep with no argument +cmd:tabgrep +check:output=~Usage +end + + + +start:tabgrep_h +description:tabgrep -h an d -? and --help +cmd:tabgrep -h +check:output=~Usage +cmd:tabgrep -? +check:output=~Usage +cmd:tabgrep --help +check:output=~Usage +end + + start:tabgrep_node cmd:mkdef -t node testnode groups=all check:rc==0 @@ -6,3 +25,12 @@ check:rc==0 check:output=~nodelist cmd:rmdef -t node testnode end + + +start:tabgrep_err +description:tabgrep with error noderange +cmd:rmdef -t node testnode +cmd:tabgrep testnode +check:rc!=0 +check:output=~Invalid nodes and/or groups in noderange: testnode +end