From 359ed0f565b87e8465399af14795795b5cbfc9bb Mon Sep 17 00:00:00 2001 From: amy0701 Date: Tue, 11 Oct 2011 08:34:12 +0000 Subject: [PATCH] add testcases for xdshbak git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10737 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-test/autotest/testcase/xdshbak/cases0 | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 xCAT-test/autotest/testcase/xdshbak/cases0 diff --git a/xCAT-test/autotest/testcase/xdshbak/cases0 b/xCAT-test/autotest/testcase/xdshbak/cases0 new file mode 100644 index 000000000..d956d6d86 --- /dev/null +++ b/xCAT-test/autotest/testcase/xdshbak/cases0 @@ -0,0 +1,27 @@ +start:xdshbak_h +cmd:xdshbak -h +check:rc==0 +check:output=~Usage +end + +start:xdshbak_display +cmd:xdsh $$CN cat /etc/hosts | xdshbak +check:rc==0 +check:output=~HOST:$$CN +end + +start:xdshbak_c +cmd:xdsh $$CN pwd |xdshbak -c +check:rc==0 +end + +start:xdshbak_q +cmd:xdsh $$CN ls / |xdshbak -q +check:rc==0 +end + +start:xdshbak_x +cmd:xdsh $$CN cat /etc/passwd|xdshbak -c +check:rc==0 +end +