From e6b4ca991389cbca3c4957c75fcb3de7ce5f9d27 Mon Sep 17 00:00:00 2001 From: Junxiaw Date: Mon, 24 Nov 2014 18:56:03 -0800 Subject: [PATCH] add autotest testcase --- .../installation/sles_full_installation_p8le | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 xCAT-test/autotest/testcase/installation/sles_full_installation_p8le diff --git a/xCAT-test/autotest/testcase/installation/sles_full_installation_p8le b/xCAT-test/autotest/testcase/installation/sles_full_installation_p8le new file mode 100644 index 000000000..989225fa1 --- /dev/null +++ b/xCAT-test/autotest/testcase/installation/sles_full_installation_p8le @@ -0,0 +1,42 @@ +start:sles_full_installation_flat_p8le_vm +os:Linux +cmd:makedns -n +check:rc==0 +cmd:makeconservercf $$CN +check:rc==0 +cmd:cat /etc/conserver.cf | grep $$CN +check:output=~$$CN +cmd:sleep 60 +cmd:makedhcp -n +check:rc==0 +cmd:makedhcp -a +check:rc==0 +cmd:if [ ! -e /install/custom/netboot/sles/compute.synclist ]; then echo "/etc/resolv.conf -> /etc/resolv.conf" > /install/custom/netboot/sles/compute.synclist; fi +check:rc==0 +cmd:chdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute synclists=/install/custom/install/sles/compute.synclist +check:rc==0 +cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute +check:rc==0 +cmd:rpower $$CN reset +check:rc==0 +cmd:sleep 2000 +cmd:ping $$CN -c 3 +check:output=~64 bytes from $$CN +cmd:lsdef -l $$CN | grep status +check:output=~booted +cmd:xdsh $$CN date +check:rc==0 +check:output=~\d\d:\d\d:\d\d +cmd:nodeset $$CN osimage +check:rc==0 +cmd:rpower $$CN boot +check:rc==0 +cmd:sleep 2000 +cmd:ping $$CN -c 3 +check:output=~64 bytes from $$CN +cmd:lsdef -l $$CN | grep status +check:output=~booted +cmd:xdsh $$CN date +check:rc==0 +check:output=~\d\d:\d\d:\d\d +end