From 577b8a300d2acac41ab77eba423b43626af0b734 Mon Sep 17 00:00:00 2001 From: amy0701 Date: Fri, 9 Dec 2011 07:16:22 +0000 Subject: [PATCH] add testcases for rmdsklsnode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../autotest/testcase/rmdsklsnode/cases0 | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 xCAT-test/autotest/testcase/rmdsklsnode/cases0 diff --git a/xCAT-test/autotest/testcase/rmdsklsnode/cases0 b/xCAT-test/autotest/testcase/rmdsklsnode/cases0 new file mode 100644 index 000000000..ea1abf740 --- /dev/null +++ b/xCAT-test/autotest/testcase/rmdsklsnode/cases0 @@ -0,0 +1,57 @@ +start:rmdsklsnode_h +os:AIX +cmd:rmdsklsnode -h +check:rc==0 +check:output=~Usage +end + +start:rmdsklsnode_node +os:AIX +cmd:mknimimage -r -t diskless -s $$SOURCE autotestdsklsimage +check:rc==0 +cmd:mkdsklsnode -i autotestdsklsimage $$CN -f +check:rc==0 +check:output=~Initializing NIM machine '$$CN' +check:output=~AIX/NIM diskless nodes were initialized +cmd:lsnim -l $$CN +check:rc==0 +cmd:rmdsklsnode $$CN +check:rc==0 +cmd:lsnim |grep $$CN +check:rc!=0 +check:output!~$$CN +cmd:nim -o remove autotestdsklsimage +cmd:nim -o remove autotestdsklsimage_lpp_source +cmd:nim -o remove autotestdsklsimage_shared_root +cmd:nim -o remove autotestdsklsimage_paging +cmd:chtab -d imagename=autotestdsklsimage osimage +cmd:rm -rf /install/nim/lpp_source/autotestdsklsimage_lpp_source +cmd:rm -rf /install/nim/paging/autotestdsklsimage_paging +cmd:rm -rf /install/nim/spot/autotestdsklsimage +cmd:rm -rf /install/nim/shared_root/autotestdsklsimage_shared_root +end + + +start:rmdsklsnode_i +os:AIX +cmd:mknimimage -r -t diskless -s $$SOURCE autotestdsklsimage +check:rc==0 +cmd:mkdsklsnode -n -i autotestdsklsimage $$CN +check:rc==0 +cmd:lsnim |grep $$CN|sed -e 's/_/ /g'|cut -d" " -f2 |grep ^autotestdsklsimage$ +check:rc==0 +cmd:rmdsklsnode -i autotestdsklsimage $$CN -V +check:rc==0 +cmd:lsnim |grep $$CN|sed -e 's/_/ /g'|cut -d" " -f2 |grep ^autotestdsklsimage$ +check:rc!=0 +cmd:nim -o remove autotestdsklsimage +cmd:nim -o remove autotestdsklsimage_lpp_source +cmd:nim -o remove autotestdsklsimage_shared_root +cmd:nim -o remove autotestdsklsimage_paging +cmd:chtab -d imagename=autotestdsklsimage osimage +cmd:rm -rf /install/nim/lpp_source/autotestdsklsimage_lpp_source +cmd:rm -rf /install/nim/paging/autotestdsklsimage_paging +cmd:rm -rf /install/nim/spot/autotestdsklsimage +cmd:rm -rf /install/nim/shared_root/autotestdsklsimage_shared_root +end +