diff --git a/xCAT-test/autotest/testcase/makentp/cases0 b/xCAT-test/autotest/testcase/makentp/cases0 new file mode 100644 index 000000000..13b951adf --- /dev/null +++ b/xCAT-test/autotest/testcase/makentp/cases0 @@ -0,0 +1,66 @@ +start:makentp_v +descriptiop:makentp -v +cmd:makentp -v +check:rc==0 +check:output=~Version +end +start:makentp_h +descriptiop:makentp -h +cmd:makentp -h +check:rc==0 +check:output=~Usage: makentp +end +start:makentp_V +descriptiop:makentp -V +cmd:makentp -V +check:rc==0 +check:output=~checking if nptd is installed +end +start:makentp +descriptiop:makentp +cmd:date -s 20000101 +check:rc==0 +cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock -w;else hwclock -w ; fi +cmd:chtab key=extntpservers site.value="$$extntpserversip" +check:rc==0 +cmd:makentp +check:rc==0 +check:output=~configuring management node +cmd:date +check:output=~2015 +#cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock ;else hwclock ; fi +#check:output=~2015 +end +start:makentp_a +descriptiop:makentp -a +cmd:date -s 20000101 +check:rc==0 +cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock -w;else hwclock -w ; fi +cmd:chtab key=extntpservers site.value="$$extntpserversip" +check:rc==0 +cmd:makentp -a +check:rc==0 +check:output=~configuring management node +cmd:date +check:output=~2015 +#cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then clock ;else hwclock ; fi +#check:output=~2015 +end + +start:updatenode_computenode_P_setupntp +descriptiop:using updatenode -p synch +cmd:xdsh $$CN date -s 20000101 +check:rc==0 +cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then xdsh $$CN clock -w;else xdsh $$CN hwclock -w ; fi +cmd:chdef $$CN -p postscripts=setupntp +cmd:chtab key=extntpservers site.value="" +check:rc==0 +cmd:updatenode $$CN -P setupntp +check:rc==0 +check:output=~Running of postscripts has completed +cmd:xdsh $$CN date +check:output=~2015 +#cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "rhel" ]];then xdsh $$CN clock ;else xdsh $$CN hwclock ; fi +#check:output=~2015 +end +