From 371be3a523dbc2e5335ec9e3a1e06996db22f4f0 Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Tue, 28 Sep 2010 17:35:10 +0000 Subject: [PATCH] get the xcattest html man page to build correctly git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-test/pods/man1/xcattest.1.pod | 28 ++++++++++++++++++---------- xCAT-test/xCAT-test.spec | 11 +++-------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/xCAT-test/pods/man1/xcattest.1.pod b/xCAT-test/pods/man1/xcattest.1.pod index c84505996..bfb6420ee 100644 --- a/xCAT-test/pods/man1/xcattest.1.pod +++ b/xCAT-test/pods/man1/xcattest.1.pod @@ -82,21 +82,29 @@ B: Each test case can have more than one I sections and each I s =over 4 -1. To run all test cases related command rpower: +=item 1. + +To run all test cases related command rpower: xcattest -c /tmp/config -c rpower - -2. To run customized bundle: + +=item 2. + +To run customized bundle: xcattest -l > /tmp/custom.bundle Modify custom.bundle xcattest -b custom.bundle - -3. To run specified test cases. + +=item 3. + +To run specified test cases. xcattest -t lsdef_t_o_l_z -4. To add a new case to test chvm. In the example, we assume that the min_mem should not be equal to 16 in the lpar profile of computenode. The case name is chvm_custom. It create a test lpar named testnode firstly, that change the min_mem of the lpar to 16 using chvm, then check if min_mem have changed correctly. At last, the testnode be remove to ensure no garbage produced in the cases. +=item 4. + +To add a new case to test chvm. In the example, we assume that the min_mem should not be equal to 16 in the lpar profile of computenode. The case name is chvm_custom. It create a test lpar named testnode firstly, that change the min_mem of the lpar to 16 using chvm, then check if min_mem have changed correctly. At last, the testnode be remove to ensure no garbage produced in the cases. add a new test case file in /opt/xcat/share/xcat/tools/autotest/chvm edit filename @@ -126,10 +134,10 @@ The xCAT-test testing framework provides some inline functions. The inline funct 2. B To get value of digit+1. -For example: - To run rscan command against the hardware control point of compute node specified in configuration file - cmd: rscan __GETNODEATTR($$CN, hcp)__ -z - +For example, to run rscan command against the hardware control point of compute node specified in the configuration file: + + rscan __GETNODEATTR($$CN, hcp)__ -z + =head1 FILES /opt/xcat/bin/xcattest diff --git a/xCAT-test/xCAT-test.spec b/xCAT-test/xCAT-test.spec index ddba0e093..a7c218f2e 100644 --- a/xCAT-test/xCAT-test.spec +++ b/xCAT-test/xCAT-test.spec @@ -41,6 +41,7 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{prefix}/bin mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/tools/autotest mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man1 +mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man1 set +x @@ -50,14 +51,8 @@ chmod 755 $RPM_BUILD_ROOT/%{prefix}/bin/* # These were built dynamically in the build phase cp share/man/man1/* $RPM_BUILD_ROOT/%{prefix}/share/man/man1 chmod 444 $RPM_BUILD_ROOT/%{prefix}/share/man/man1/* - -#cp -r share/doc/* $RPM_BUILD_ROOT/%{prefix}/share/doc -#chmod 755 $RPM_BUILD_ROOT/%{prefix}/share/doc/* -# These were built dynamically during the build phase -# cp share/doc/man1/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man1 -#chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man1/* -#cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-autotest -#chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-autotest/* +cp share/doc/man1/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man1 +chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man1/* cp -r autotest $RPM_BUILD_ROOT/%{prefix}/share/xcat/tools set -x