diff --git a/xCAT-test/autotest/testcase/HA/case0 b/xCAT-test/autotest/testcase/HA/case0 index 28618f211..e1fdb14af 100644 --- a/xCAT-test/autotest/testcase/HA/case0 +++ b/xCAT-test/autotest/testcase/HA/case0 @@ -1,5 +1,6 @@ #only support redhat and postgresql start:setup_2_new_HA_MN +label:others,HA os:Linux #back up cmd:lsdef -z $$PRIMARYMN > /tmp/node.stanza @@ -149,6 +150,7 @@ cmd:if [[ -f /install/postscripts/check_node_state.bak ]] ;then mv -f /install/p end start:configure_exist_xCAT_MN_to_HA_MN +label:others,HA os:Linux #back up cmd:lsdef -z $$PRIMARYMN > /tmp/node.stanza diff --git a/xCAT-test/autotest/testcase/addkit/cases0 b/xCAT-test/autotest/testcase/addkit/cases0 index 0ee49701a..c69256c44 100644 --- a/xCAT-test/autotest/testcase/addkit/cases0 +++ b/xCAT-test/autotest/testcase/addkit/cases0 @@ -1,4 +1,5 @@ start:addkit_v +label:others,KIT cmd:addkit -v check:rc==0 check:output~=Version @@ -7,6 +8,7 @@ check:output~=compatible_frameworks end start:addkit_h +label:others,KIT cmd:addkit -h check:rc==0 check:output~=Usage @@ -14,6 +16,7 @@ check:outpur!~error end start:addkit_kit +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prodkit @@ -35,6 +38,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit end start:addkit_i +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkit;buildkit create prodkit @@ -54,6 +58,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit end start:addkit_multikit +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit @@ -87,6 +92,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit end start:addkit_p +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prodkit cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkit/prod2kit diff --git a/xCAT-test/autotest/testcase/addkitcomp/case0 b/xCAT-test/autotest/testcase/addkitcomp/case0 index aea1ed058..1265e1d4d 100644 --- a/xCAT-test/autotest/testcase/addkitcomp/case0 +++ b/xCAT-test/autotest/testcase/addkitcomp/case0 @@ -1,4 +1,5 @@ start:addkitcomp_v +label:others,KIT os:Linux cmd:addkitcomp -v check:rc==0 @@ -13,6 +14,7 @@ check:output=~compatible_frameworks end start:addkitcomp_h +label:others,KIT os:Linux cmd:addkitcomp -h check:rc==0 @@ -23,6 +25,7 @@ check:output=~ Usage end start:addkitcomp_i +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp;buildkit create mykits @@ -54,6 +57,7 @@ check:rc==0 end start:addkitcomp_f +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp;buildkit create mykits @@ -84,6 +88,7 @@ check:rc==0 end start:addkitcomp_a +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp/$$KITDATA cmd:mkdir -p /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp/$$KITDATA @@ -126,6 +131,7 @@ check:rc==0 end start:addkitcomp_noscripts +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp/$$KITDATA cmd:mkdir -p /opt/xcat/share/xcat/tools/autotest/testcase/addkitcomp/$$KITDATA diff --git a/xCAT-test/autotest/testcase/bmcdiscover/cases0 b/xCAT-test/autotest/testcase/bmcdiscover/cases0 index 203b5ae2d..5cc7fc0d7 100644 --- a/xCAT-test/autotest/testcase/bmcdiscover/cases0 +++ b/xCAT-test/autotest/testcase/bmcdiscover/cases0 @@ -1,4 +1,5 @@ start:bmcdiscover_q +label:others,discovery os:linux decription:query usage for bmcdiscover cmd:bmcdiscover ? @@ -10,6 +11,7 @@ check:output=~bmcdiscover \[-v|--version\] end start:bmcdiscover_help +label:others,discovery os:linux decription:show bmcdiscover help information cmd:bmcdiscover help @@ -21,6 +23,7 @@ check:output=~bmcdiscover \[-v|--version\] end start:bmcdiscover_version +label:others,discovery os:linux description:show bmcdiscover version cmd:bmcdiscover --version @@ -29,6 +32,7 @@ check:output=~bmcdiscover - xCAT Version end start:bmcdiscover_h +label:others,discovery os:Linux decription:help cmd:bmcdiscover -h @@ -37,30 +41,35 @@ check:output=~Usage end start:bmcdiscover_nmap_range +label:others,discovery cmd:bmcdiscover -s nmap --range $$bmcrange -u $$bmcusername -p $$bmcpasswd check:rc==0 check:output=~$$bmcrange end start:bmcdiscover_v +label:others,discovery cmd:bmcdiscover -v check:rc==0 checkout:output=~xCAT Version end start:bmcdiscover_check_paswd +label:others,discovery cmd:bmcdiscover -i $$bmcrange -u $$bmcusername -p $$bmcpasswd --check check:rc==1 check:output=~is not supported end start:bmcdiscover_get_ipsource +label:others,discovery cmd:bmcdiscover -i $$bmcrange -u $$bmcusername -p $$bmcpasswd --ipsource check:rc==1 check:output=~is not supported end start:bmcdiscover_range_w +label:others,discovery cmd:bmcdiscover --range $$bmcrange -u $$bmcusername -p $$bmcpasswd -w check:rc==0 check:output=~Writing node @@ -69,6 +78,7 @@ end start:bmcdiscover_range_z +label:others,discovery cmd:bmcdiscover --range $$bmcrange -u $$bmcusername -p $$bmcpasswd -z check:rc==0 check:output=~bmc=$$bmcrange diff --git a/xCAT-test/autotest/testcase/buildkit/cases0 b/xCAT-test/autotest/testcase/buildkit/cases0 index 0855adf94..995dcdcb0 100644 --- a/xCAT-test/autotest/testcase/buildkit/cases0 +++ b/xCAT-test/autotest/testcase/buildkit/cases0 @@ -1,4 +1,5 @@ start:buildkit_v +label:others,KIT os:Linux cmd:buildkit -v check:rc==0 @@ -13,6 +14,7 @@ check:output=~compatible_frameworks end start:buildkit_h +label:others,KIT os:Linux cmd:buildkit -h check:rc==0 @@ -23,6 +25,7 @@ check:output=~ Usage end start:buildkit_create +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/mykits cmd:mkdir -p /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/mykits @@ -44,6 +47,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/mykits end start:buildkit_create_l +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/mykits cmd:mkdir -p /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/mykits @@ -63,6 +67,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/mykits end start:buildkit_buildrepo_all +label:others,KIT os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -80,6 +85,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_buildrepo_all +label:others,KIT os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -97,6 +103,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_buildrepo_all +label:others,KIT os:ubuntu cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -114,6 +121,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_buildrepo_rhels +label:others,KIT os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -131,6 +139,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_buildrepo_sles +label:others,KIT os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -148,6 +157,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_buildrepo_ubuntu +label:others,KIT os:ubuntu cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -165,6 +175,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_cleanrepo_all +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -181,6 +192,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_cleanrepo_rhels +label:others,KIT os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -197,6 +209,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_cleanrepo_sles +label:others,KIT os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -213,6 +226,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_cleanrepo_ubuntu +label:others,KIT os:ubuntu cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -229,6 +243,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_listrepo +label:others,KIT os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -244,6 +259,7 @@ end start:buildkit_listrepo +label:others,KIT os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -258,6 +274,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_listrepo +label:others,KIT os:ubuntu cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -272,6 +289,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_buildtar +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -291,6 +309,7 @@ end start:buildkit_cleantar +label:others,KIT os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -312,6 +331,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_cleantar +label:others,KIT os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -333,6 +353,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_cleantar +label:others,KIT os:ubuntu cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -354,6 +375,7 @@ cmd:cd -;rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_partialkit +label:others,KIT os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -377,6 +399,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_partialkit +label:others,KIT os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -400,6 +423,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_partialkit_ubuntu +label:others,KIT os:ubuntu cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -423,6 +447,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_partialkit_completekit +label:others,KIT os:rhels cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -454,6 +479,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_partialkit_completekit +label:others,KIT os:sles cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit @@ -485,6 +511,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit end start:buildkit_partialkit_completekit +label:others,KIT os:ubuntu cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/buildkit/prodkit cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/buildkit;buildkit create prodkit diff --git a/xCAT-test/autotest/testcase/chkkitcomp/cases0 b/xCAT-test/autotest/testcase/chkkitcomp/cases0 index c7cfb6c49..2a8ea8935 100644 --- a/xCAT-test/autotest/testcase/chkkitcomp/cases0 +++ b/xCAT-test/autotest/testcase/chkkitcomp/cases0 @@ -1,4 +1,5 @@ start:chkkitcomp_v +label:others,KIT cmd:chkkitcomp -v check:rc==0 check:output~=Version @@ -7,6 +8,7 @@ check:output~=compatible_frameworks end start:chkkitcomp_h +label:others,KIT cmd:addkit -h check:rc==0 check:output~=Usage @@ -14,6 +16,7 @@ check:outpur!~error end start:chkkitcomp_V +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/chkkitcomp/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/chkkitcomp;buildkit create mykits diff --git a/xCAT-test/autotest/testcase/confignetwork/cases0 b/xCAT-test/autotest/testcase/confignetwork/cases0 index 969f7fbee..cb1248391 100644 --- a/xCAT-test/autotest/testcase/confignetwork/cases0 +++ b/xCAT-test/autotest/testcase/confignetwork/cases0 @@ -1,5 +1,6 @@ start: confignetwork_s_installnic_diskful description: this case is to test confignetwork -s could configure installnic successfully in diskful provision. +label:others,network,invoke_provision cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN check:rc==0 @@ -41,6 +42,7 @@ end start:confignetwork_s_installnic_diskless description: this case is to test confignetwork -s could configure installnic successfully in diskless provision. +label:others,network,invoke_provision cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN check:rc==0 cmd:chdef -t node -o $$CN postbootscripts="confignetwork -s" @@ -89,6 +91,7 @@ end start: confignetwork_secondarynic_diskless description: this case is to test confignetwork -s could config installnic and secondarynic at the same time successfully in diskless provision. +label:others,network,invoke_provision cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN check:rc==0 cmd:mkdef -t network -o 100_1_0_0-255_255_0_0 net=100.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC @@ -149,6 +152,7 @@ end start:confignetwork_s_installnic_secondarynic_updatenode description: this case is to test confignetwork -s could configure installnic and secondarynic successfully with updatenode. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -180,6 +184,7 @@ end start:confignetwork_secondarynic_updatenode description: this case is to test confignetwork could configure secondarynic successfully with updatenode. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -209,6 +214,7 @@ end start: confignetwork_secondarynic_nicaliases_updatenode description: this case is to test confignetwork could config secondarynic nicaliases successfully with updatenode. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -251,6 +257,7 @@ end start:confignetwork_secondarynic_nicextraparams_updatenode description: this case is to test confignetwork could configure secondarynic nicextraparams successfully with updatenode. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -294,6 +301,7 @@ end start:confignetwork_secondarynic_nicnetworks_updatenode_false description: this case is to test confignetwork could return error message when there is no not enough attributes when configing secondarynic with updatenode. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=11.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC @@ -310,6 +318,7 @@ end start:confignetwork_secondarynic_nicips_updatenode_false description: this case is to test confignetwork could return error message when there is no not enough attributes when configing secondarynic with updatenode. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=11.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC @@ -326,6 +335,7 @@ end start:confignetwork_secondarynic_nictype_updatenode_false description: this case is to test confignetwork could return error message when there is no not enough attributes when configing secondarynic with updatenode. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=11.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC @@ -343,6 +353,7 @@ end start:confignetwork_disable_set_to_yes description: this case is to test if confignetwork could work correctly when disable is set to yes in nics table +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=100.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC @@ -363,6 +374,7 @@ end start:confignetwork_disable_set_to_1 description: this case is to test if confignetwork could work correctly when disable is set to 1 in nics table +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=100.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC @@ -383,6 +395,7 @@ end start:confignetwork_niccustomscripts description: this case is to test confignetwork could config secondarynic and envoke scripts to execute. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:echo "echo hello > /tmp/confignetwork_niccustomscript" > /tmp/script1 @@ -410,6 +423,7 @@ end start:confignetwork_secondarynic_thirdnic_multiplevalue_updatenode description:this case is to verify if confignetwork could config serveral nics' multiple value at the same time. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -469,6 +483,7 @@ end start:confignetwork_vlan_eth0 description: this case is to verify if confignetwork could config vlan for CN.When CN has Ethernet nic eth0, user wants to confgure 2 vlans, Configure vlan eth0.6 60.5.106.9 and eth0.7 70.5.106.9 based on ethernet nic eth0 +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -520,6 +535,7 @@ end start:confignetwork_vlan_false description:this case is to verify if confignetwork could process the false value when vlan nicdevice is not correctly set +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -564,6 +580,7 @@ end start:confignetwork_bond_eth2_eth3 description: this case is to verify if confignetwork could config bond for CN.CN has 2 Ethernet nics, eth2 and eth3, user configures bond bond0 using ethernet nic eth2 and eth3. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -618,6 +635,7 @@ end start:confignetwork_bond_false description: this case is to verify if confignetwork could process when bond is not correctly set. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -666,6 +684,7 @@ end start:confignetwork_vlan_bond description: this case is to verify if confignetwork could config bond for CN.CN has 2 Ethernet nic eth2 and eth3, user wants to bond them to bond0, then make 2 vlan bond0.2 and bond0.3 for data network. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -731,6 +750,7 @@ end start:confignetwork_2eth_bridge_br0 description:this case is to verify if confignetwork could config bridge for CN.CN has 2 Ethernet nics eth2 and eth3, user want to configure bond bond0 using eth2 and eth3, creates bridge br0 based on bond0. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -785,6 +805,7 @@ end start:confignetwork_2eth_bridge_br22_br33 description:this case is to verify if confignetwork could config bridge for CN.CN has 2 Ethernet nics eth2 and eth3, user wants to bond them as bond0, then make vlan bond0.2 and bond0.3, using bond0.2 create bridge br22,using bond0.3 create bridge br33. Use confignetwork to configure bond bond0, create vlan bond0.2 and bond0.3, create bridge br22 and br33. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -851,6 +872,7 @@ end start:confignetwork_installnic_2eth_bridge_br22_br33 description:this case is to test if confignetwork could config installnic and 2 bridges at the same time +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -920,6 +942,7 @@ end start:confignetwork__bridge_false description:this case is to test if confignetwork could process false value when the bridge is not correctly set. +label:others,network,invoke_provision cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "rm -rf /tmp/backupnet/" @@ -952,6 +975,7 @@ end start:confignetwork_static_installnic description:Reconfigure installnic without dhclient lease file +label:others,network,invoke_provision cmd:lsdef $$CN -z && lsdef -l $$CN -z >/tmp/CN.stanza check:rc==0 cmd:xdsh $$CN "mkdir -p /tmp/backupnet" diff --git a/xCAT-test/autotest/testcase/confignics/cases0 b/xCAT-test/autotest/testcase/confignics/cases0 index 6b161461e..173e582ea 100644 --- a/xCAT-test/autotest/testcase/confignics/cases0 +++ b/xCAT-test/autotest/testcase/confignics/cases0 @@ -1,5 +1,6 @@ start:confignics_config_one_port_single_value description:confignics +label:others,network,confignics,updatenode cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 100_1_0_0-255_255_0_0 net=100.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC mtu=1501 @@ -19,6 +20,7 @@ end start:confignics_config_multiple_ports_single_value description:confignics +label:others,network,confignics,updatenode cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 100_1_0_0-255_255_0_0 net=100.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC mtu=1501 @@ -49,6 +51,7 @@ end start:confignics_config_multiple_ports_multiple_value description:confignics +label:others,network,confignics,updatenode cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=11.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC mtu=1501 @@ -93,6 +96,7 @@ end start:confignics_config_multiple_port_withnichostnamesuffixes_multiple_value description:confignics +label:others,network,confignics,updatenode cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=11.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC mtu=1501 @@ -147,6 +151,7 @@ end start:confignics_config_multiple_port_withnicaliases_multiple_value description:confignics +label:others,network,confignics,updatenode cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:mkdef -t network -o 11_1_0_0-255_255_0_0 net=11.1.0.0 mask=255.255.0.0 mgtifname=$$SECONDNIC @@ -200,6 +205,7 @@ end start:confignics_disable_set_to_yes description:confignics +label:others,network,confignics,updatenode cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN ifdown $$SECONDNIC @@ -222,6 +228,7 @@ end start:confignics_disable_set_to_1 description:confignics +label:others,network,confignics,updatenode cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN ifdown $$SECONDNIC @@ -244,6 +251,7 @@ end start:confignics_s description:confignics_s +label:others,network,confignics,updatenode cmd:tabdump networks > /opt/xcat/share/xcat/tools/autotest/testcase/confignics/networks.csv check:rc==0 cmd:/opt/xcat/share/xcat/tools/autotest/testcase/confignics/mtu_set_clean S 1496 @@ -268,6 +276,7 @@ check:rc==0 end start:chdef_nicips description:nicip could be set to null +label:others,network,confignics,updatenode Attribute: $$CN-The operation object of chdef command cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 diff --git a/xCAT-test/autotest/testcase/copycds/cases1 b/xCAT-test/autotest/testcase/copycds/cases1 index a814a99cc..d2ed72467 100644 --- a/xCAT-test/autotest/testcase/copycds/cases1 +++ b/xCAT-test/autotest/testcase/copycds/cases1 @@ -1,5 +1,6 @@ start:copycds_bogus_disc description: Test cases for the copycds with a bogus disc +label:others cmd:/opt/xcat/share/xcat/tools/autotest/testcase/copycds/copycds_bogus_disc check:rc==0 end diff --git a/xCAT-test/autotest/testcase/discovery/bmc_discovery_only b/xCAT-test/autotest/testcase/discovery/bmc_discovery_only index 0b871c218..3fc566434 100644 --- a/xCAT-test/autotest/testcase/discovery/bmc_discovery_only +++ b/xCAT-test/autotest/testcase/discovery/bmc_discovery_only @@ -1,5 +1,6 @@ start:bmc_discovery_only description: test the whole process of bmc discovery +label:others,discovery Attribute: $$NODE_DISCOVERY_TARGET:The machine plan to be discovered. $$NODE_DISCOVERY_BMC_DYNAMIC_IP_RANGE :The valid dymanic ip range which has been configured in DHCP server and can offer service. cmd:/opt/xcat/share/xcat/tools/autotest/testcase/discovery/discovery_test --discovery_target_node $$NODE_DISCOVERY_TARGET --bmc_dynamic_ip_range $$NODE_DISCOVERY_BMC_DYNAMIC_IP_RANGE --bmc_discovery_only check:rc==0 diff --git a/xCAT-test/autotest/testcase/discovery/mtm_based_node_discovery b/xCAT-test/autotest/testcase/discovery/mtm_based_node_discovery index 80e28fa3c..135c70b7e 100644 --- a/xCAT-test/autotest/testcase/discovery/mtm_based_node_discovery +++ b/xCAT-test/autotest/testcase/discovery/mtm_based_node_discovery @@ -1,5 +1,6 @@ start:mtms_based_node_discovery description: test the whole process of mtms_based node discovery +label:others,discovery Attribute: $$NODE_DISCOVERY_TARGET:The machine plan to be discovered. $$NODE_DISCOVERY_BMC_DYNAMIC_IP_RANGE :The valid dymanic ip range which has been configured in DHCP server and can offer service. cmd:/opt/xcat/share/xcat/tools/autotest/testcase/discovery/discovery_test --discovery_mode mtms --discovery_target_node $$NODE_DISCOVERY_TARGET --bmc_dynamic_ip_range $$NODE_DISCOVERY_BMC_DYNAMIC_IP_RANGE --osimage __GETNODEATTR($$NODE_DISCOVERY_TARGET,os)__-__GETNODEATTR($$NODE_DISCOVERY_TARGET,arch)__-install-compute check:rc==0 diff --git a/xCAT-test/autotest/testcase/discovery/switch_based_node_discovery b/xCAT-test/autotest/testcase/discovery/switch_based_node_discovery index 092e33388..a25bc0c9e 100644 --- a/xCAT-test/autotest/testcase/discovery/switch_based_node_discovery +++ b/xCAT-test/autotest/testcase/discovery/switch_based_node_discovery @@ -1,5 +1,6 @@ start:switch_based_node_discovery description: test the whole process of switch_based node discovery +label:others,discovery Attribute: $$NODE_DISCOVERY_TARGET:The machine plan to be discovered. $$NODE_DISCOVERY_BMC_DYNAMIC_IP_RANGE :The valid dymanic ip range which has been configured in DHCP server and can offer service. cmd:/opt/xcat/share/xcat/tools/autotest/testcase/discovery/discovery_test --discovery_mode switch --discovery_target_node $$NODE_DISCOVERY_TARGET --bmc_dynamic_ip_range $$NODE_DISCOVERY_BMC_DYNAMIC_IP_RANGE --osimage __GETNODEATTR($$NODE_DISCOVERY_TARGET,os)__-__GETNODEATTR($$NODE_DISCOVERY_TARGET,arch)__-install-compute check:rc==0 diff --git a/xCAT-test/autotest/testcase/dockercommand/cases0 b/xCAT-test/autotest/testcase/dockercommand/cases0 index 3ae9503b4..c1cb737be 100644 --- a/xCAT-test/autotest/testcase/dockercommand/cases0 +++ b/xCAT-test/autotest/testcase/dockercommand/cases0 @@ -1,5 +1,6 @@ start:rpower_stop_docker description:stop a created docker instance +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -27,6 +28,7 @@ check:rc==0 end start:rpower_start_docker description:start a created docker instance +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -52,6 +54,7 @@ end start:rpower_state_docker description:get state of the instance +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -84,6 +87,7 @@ end start:rpower_restart_docker description:restart a created docker instance +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -141,6 +145,7 @@ end start:rpower_unpause_docker description:unpause all processes in the instance +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -167,12 +172,14 @@ check:rc==0 end start:mkdocker_h description:output usage for mkdocker +label:others,docker cmd:mkdocker -h check:rc==0 check:output=~Usage: mkdocker end start:mkdocker_command description:create docker instance image should be ubuntu and command should be bash here +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -204,12 +211,14 @@ check:rc==0 end start:rmdocker_h description:output usage for rmdocker +label:others,docker cmd:rmdocker -h check:rc==0 check:output=~Usage: rmdocker end start:rmdocker_command description:remove docker instance +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -231,6 +240,7 @@ check:rc==0 end start:rmdocker_f_command description:force to remove docker instance +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN @@ -255,12 +265,14 @@ check:rc==0 end start:lsdocker_h_command description:output usage for lsdocker +label:others,docker cmd:lsdocker -h check:rc==0 check:output=~Usage: lsdocker end start:lsdocker_l_command description:list docker instance info +label:others,docker cmd:chdef $$DOCKERCN dockerhost=$$DOCKERHOST:2375 dockercpus=1 ip=$$DOCKERCONIP dockermemory=4096 groups=docker,all mgt=docker check:rc==0 cmd:makehosts $$DOCKERCN diff --git a/xCAT-test/autotest/testcase/genesis/cases0 b/xCAT-test/autotest/testcase/genesis/cases0 index 92796a276..5ebe97e30 100644 --- a/xCAT-test/autotest/testcase/genesis/cases0 +++ b/xCAT-test/autotest/testcase/genesis/cases0 @@ -1,4 +1,5 @@ start:nodeset_shell +label:others,genesis description: verify could log in genesis shell cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g check:rc==0 @@ -10,6 +11,7 @@ cmd:cat /tmp/genesistestlog/* end start:nodeset_cmdline +label:others,genesis description:verify could run cmdline successfully cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g check:rc==0 @@ -21,6 +23,7 @@ cmd:cat /tmp/genesistestlog/* end start:nodeset_runimg +label:others,genesis description:verify runimg could work cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/genesis/genesistest.pl -n $$CN -g check:rc==0 @@ -31,6 +34,7 @@ check:rc==0 cmd:cat /tmp/genesistestlog/* end start:nodeset_shell_incorrectmasterip +label:others,genesis description:very if computenode need to do nodeset shell in different net with master will success cmd:/opt/xcat/share/xcat/tools/autotest/testcase/genesis/test.sh --check xnba check:rc==0 diff --git a/xCAT-test/autotest/testcase/genimage/cases0 b/xCAT-test/autotest/testcase/genimage/cases0 index ff4c2a804..559773020 100644 --- a/xCAT-test/autotest/testcase/genimage/cases0 +++ b/xCAT-test/autotest/testcase/genimage/cases0 @@ -1,4 +1,5 @@ start:genimage_h +label:others os:Linux cmd:genimage -h check:output=~Usage @@ -6,6 +7,7 @@ check:rc==0 end start:genimage_help +label:others os:Linux cmd:genimage --help check:output=~Usage @@ -13,6 +15,7 @@ check:rc==0 end start:genimage_stateless +label:others os:Linux cmd:copycds $$ISO check:rc==0 @@ -25,6 +28,7 @@ cmd:mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/c end start:genimage_statelite +label:others os:Linux cmd:copycds $$ISO check:rc==0 diff --git a/xCAT-test/autotest/testcase/geninitrd/cases0 b/xCAT-test/autotest/testcase/geninitrd/cases0 index 0f89c3253..2766519d9 100644 --- a/xCAT-test/autotest/testcase/geninitrd/cases0 +++ b/xCAT-test/autotest/testcase/geninitrd/cases0 @@ -1,4 +1,5 @@ start:geninitrd_i_n_o_p +label:others os:Linux cmd:copycds $$ISO cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute diff --git a/xCAT-test/autotest/testcase/get_install_disk/fresh_install_disk b/xCAT-test/autotest/testcase/get_install_disk/fresh_install_disk index 628424a0a..488a0b6f4 100644 --- a/xCAT-test/autotest/testcase/get_install_disk/fresh_install_disk +++ b/xCAT-test/autotest/testcase/get_install_disk/fresh_install_disk @@ -1,6 +1,7 @@ start:fresh_install_disk os:Linux description:check fresh install disk, usded for x86 multi disk only, and not check RH7.2 for RH os wwn isue. +label:others,invoke_provision,install_disk cmd:xdsh $$CN "dd if=/dev/zero of=/dev/sdb bs=1048576 count=100" cmd:xdsh $$CN "dd if=/dev/zero of=/dev/sdb bs=1048576 count=300 seek=60858" diff --git a/xCAT-test/autotest/testcase/get_install_disk/reinstall_disk b/xCAT-test/autotest/testcase/get_install_disk/reinstall_disk index 2a366e880..a894df7f7 100644 --- a/xCAT-test/autotest/testcase/get_install_disk/reinstall_disk +++ b/xCAT-test/autotest/testcase/get_install_disk/reinstall_disk @@ -1,6 +1,7 @@ start:reinstall_disk os:Linux description:check reinstall disk, usded for x86 multi disk only, and not check RH7.2 for RH os wwn isue. +label:others,invoke_provision,install_disk cmd:xdsh $$CN "dd if=/dev/zero of=/dev/sdb bs=1048576 count=100" cmd:xdsh $$CN "dd if=/dev/zero of=/dev/sdb bs=1048576 count=300 seek=60858" diff --git a/xCAT-test/autotest/testcase/getmacs/cases0 b/xCAT-test/autotest/testcase/getmacs/cases0 index 9f8589e3b..659ac4919 100644 --- a/xCAT-test/autotest/testcase/getmacs/cases0 +++ b/xCAT-test/autotest/testcase/getmacs/cases0 @@ -1,4 +1,5 @@ start:getmacs_noderange +label:others cmd:tabdump mac > /tmp/mac.csv cmd:chtab -d node=$$CN mac cmd:getmacs $$CN @@ -10,6 +11,7 @@ cmd:tabrestore /tmp/mac.csv cmd:rm /tmp/mac.csv end start:getmacs_d +label:others cmd:tabdump mac > /tmp/mac.csv cmd:chtab -d node=$$CN mac cmd:getmacs $$CN -d @@ -21,6 +23,7 @@ cmd:tabrestore /tmp/mac.csv cmd:rm /tmp/mac.csv end start:getmacs_f_D +label:others cmd:tabdump mac > /tmp/mac.csv cmd:chtab -d node=$$CN mac cmd:getmacs $$CN -f -D diff --git a/xCAT-test/autotest/testcase/go-xcat/case0 b/xCAT-test/autotest/testcase/go-xcat/case0 index dbcdf0a47..237693040 100644 --- a/xCAT-test/autotest/testcase/go-xcat/case0 +++ b/xCAT-test/autotest/testcase/go-xcat/case0 @@ -1,5 +1,6 @@ start:go_xcat_local_repo_case1 description:test go_xcat with the option --xcat-core=/path/to/xcat-core.repo install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -40,6 +41,7 @@ end start:go_xcat_local_repo_case2 description:test go_xcat with the option --xcat-core=/path/to/xcat-core install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -78,6 +80,7 @@ end start:go_xcat_local_repo_case3 description:test go_xcat with the option --xcat-core=/path/to/xcat-core.tar install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -116,6 +119,7 @@ end start:go_xcat_local_repo_case4 description:test go_xcat with the option --xcat-core=/path/to/xcat-core.tar.bz2 --xcat-dep=/path/to/xcat-dep.tar.bz2 install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -154,6 +158,7 @@ end start:go_xcat_local_repo_case5 description:test go_xcat with the option --xcat-core=/path/to/xcat-core.repo --xcat-dep=/path/to/xcat-dep.repo install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -200,6 +205,7 @@ end start:go_xcat_local_repo_case6 description:test go_xcat with the option --xcat-core=/path/to/xcat-core --xcat-dep=/path/to/xcat-dep install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -242,6 +248,7 @@ end start:go_xcat_local_repo_case7 description:test go_xcat with the option --xcat-core=/path/to/xcat-core.tar.bz2 --xcat-dep=/path/to/xcat-dep.tar.bz2 install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat xcat-buildkit xcat-genesis-scripts xcat-genesis-base-amd64 xcat-genesis-base-ppc64 -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi diff --git a/xCAT-test/autotest/testcase/go-xcat/case1 b/xCAT-test/autotest/testcase/go-xcat/case1 index 1cfec3af9..eb105537d 100644 --- a/xCAT-test/autotest/testcase/go-xcat/case1 +++ b/xCAT-test/autotest/testcase/go-xcat/case1 @@ -1,5 +1,6 @@ start:go_xcat_noinput description:test go_xcat without any input parameters +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat xcat-buildkit xcat-genesis-scripts xcat-genesis-base-amd64 xcat-genesis-base-ppc64 -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -35,6 +36,7 @@ end start:go_xcat_with_x description:test go_xcat with the option -x version -y install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat xcat-buildkit xcat-genesis-scripts xcat-genesis-base-amd64 xcat-genesis-base-ppc64 -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -76,6 +78,7 @@ end start:go_xcat_with_xcat-version-1 description:test go_xcat with the option --xcat-version=devel install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat xcat-buildkit xcat-genesis-scripts xcat-genesis-base-amd64 xcat-genesis-base-ppc64 -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -110,6 +113,7 @@ end start:go_xcat_with_xcat-version-2 description:test go_xcat with the option --xcat-version=$MIGRATION2_VERSION install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi diff --git a/xCAT-test/autotest/testcase/go-xcat/case2 b/xCAT-test/autotest/testcase/go-xcat/case2 index ef1812a6f..1b354f952 100644 --- a/xCAT-test/autotest/testcase/go-xcat/case2 +++ b/xCAT-test/autotest/testcase/go-xcat/case2 @@ -1,5 +1,6 @@ start:go_xcat_online_repo_case1 description:test go_xcat with the option --xcat-core=http://xcat.org/path/to/xcat-core.repo install. This case is only for rh and suse +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -30,6 +31,7 @@ end start:go_xcat_online_repo_case2 description:test go_xcat with the option --xcat-core=http://xcat.org/path/to/xcat-core install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -65,6 +67,7 @@ end start:go_xcat_online_repo_case3 description:test go_xcat with the option --xcat-core=http://xcat.org/path/to/xcat-core.tar.bz2 install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -100,6 +103,7 @@ end start:go_xcat_online_repo_case4 description:test go_xcat with the option --xcat-core=http://xcat.org/path/to/xcat-core.repo --xcat-dep=http://xcat.org/path/to/xcat-dep.repo install. This is for rh and suse. +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -130,6 +134,7 @@ end start:go_xcat_online_repo_case5 description:test go_xcat with the option --xcat-core=http://xcat.org/path/to/xcat-core --xcat-dep=http://xcat.org/path/to/xcat-dep install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi @@ -164,6 +169,7 @@ end start:go_xcat_online_repo_case6 description:test go_xcat with the option --xcat-core=http://xcat.org/path/to/xcat-core.tar.bz2 --xcat-dep=http://xcat.org/path/to/xcat-dep.tar.bz2 install +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat xcat-buildkit xcat-genesis-scripts xcat-genesis-base-amd64 xcat-genesis-base-ppc64 -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi diff --git a/xCAT-test/autotest/testcase/go-xcat/case4 b/xCAT-test/autotest/testcase/go-xcat/case4 index 79137ac6f..b765c0a57 100644 --- a/xCAT-test/autotest/testcase/go-xcat/case4 +++ b/xCAT-test/autotest/testcase/go-xcat/case4 @@ -1,5 +1,6 @@ start:go_xcat_update_case1 description:test go_xcat with the option update +label:others,go-xcat os:Linux cmd:if xdsh $$CN "zypper -h"; then xdsh $$CN "zypper remove -y *xCAT*"; elif xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*"; elif xdsh $$CN "apt-get -h";then xdsh $$CN "apt-get purge perl-xcat xcat-client xcat-server xcat -y"; else echo "Sorry,this is not supported os"; fi cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa |grep -i perl-xcat";fi diff --git a/xCAT-test/autotest/testcase/imgexport/cases0 b/xCAT-test/autotest/testcase/imgexport/cases0 index b707553d5..246647447 100644 --- a/xCAT-test/autotest/testcase/imgexport/cases0 +++ b/xCAT-test/autotest/testcase/imgexport/cases0 @@ -1,6 +1,7 @@ start:imagexport_imagename_destination os:Linux description:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz +label:others,packaging cmd:copycds $$ISO cmd:mkdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute -u profile=compute provmethod=statelite osvers=__GETNODEATTR($$CN,os)__ check:rc==0 @@ -25,6 +26,7 @@ end start:imgexport_imagename_destination_p_e os:Linux description:imgexport __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute foo.tgz -p $$CN -e /install/postscripts/testscript1 +label:others,packaging cmd:copycds $$ISO cmd:mkdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute -u profile=compute provmethod=statelite osvers=__GETNODEATTR($$CN,os)__ check:rc==0 @@ -54,6 +56,7 @@ end start:imgexport_h os:Linux description: +label:others cmd:imgexport -h check:output=~Usage|usage cmd:imgexport --help @@ -63,6 +66,7 @@ end start:imgexport_v os:Linux +label:others cmd:imgexport -v check:output=~version|Version cmd:imgexport --version diff --git a/xCAT-test/autotest/testcase/imgimport/cases0 b/xCAT-test/autotest/testcase/imgimport/cases0 index af145b820..2683d62ec 100644 --- a/xCAT-test/autotest/testcase/imgimport/cases0 +++ b/xCAT-test/autotest/testcase/imgimport/cases0 @@ -1,6 +1,7 @@ start:imgimport_h os:Linux description:imgimport -h and --help +label:others cmd:imgimport -h check:output=~usage|Usage cmd:imgimport --help @@ -11,6 +12,7 @@ end start:imgimport_v os:Linux description:imgimport -v and --version +label:others cmd:imgimport -v check:output=~version|Version cmd:imgimport --version @@ -21,6 +23,7 @@ end start:imgimport_bundlefile os:Linux description:imgimport foo.tgz +label:others,packaging cmd:copycds $$ISO cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute check:rc==0 @@ -45,6 +48,7 @@ end start:imgimport_bundlefile_p os:Linux description:imgimport foo.tgz -p $$CN +label:others,packaging cmd:copycds $$ISO cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute check:rc==0 @@ -69,6 +73,7 @@ end start:imgimport_bundlefile_f os:Linux description:imgimport foo.tgz -f compute_test +label:others,packaging cmd:copycds $$ISO cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute check:rc==0 diff --git a/xCAT-test/autotest/testcase/infiniband/cases0 b/xCAT-test/autotest/testcase/infiniband/cases0 index 2da6c8d92..176585f4d 100644 --- a/xCAT-test/autotest/testcase/infiniband/cases0 +++ b/xCAT-test/autotest/testcase/infiniband/cases0 @@ -1,17 +1,20 @@ start:rhel_infiniband_diskless_install description:Integration test of RHEL 7 and MLNX OFED for diskless installation. Following variables need to be set in the test configuration file, ISO, CN, MLNX, DKMS. Read comments in rhel-infiniband-diskless-install.sh for details. +label:others,IB cmd:RHEL_ISO="$$ISO" LINUX_DISTRO="GETNODEATTR($$CN, os)" COMPUTE_NODE="$$CN" MLNX_ISO="$$MLNX" DKMS_RPM="$$DKMS" /opt/xcat/share/xcat/tools/autotest/testcase/infiniband/rhel-infiniband-diskless-install.sh check:rc==0 end start:rhel_infiniband_diskfull_install description:Integration test of RHEL 7 and MLNX OFED for diskfull installation. Following variables need to be set in the test configuration file, ISO, CN, MLNX, DKMS. Read comments in rhel-infiniband-diskfull-install.sh for details. +label:others,IB cmd:RHEL_ISO="$$ISO" LINUX_DISTRO="GETNODEATTR($$CN, os)" COMPUTE_NODE="$$CN" MLNX_ISO="$$MLNX" DKMS_RPM="$$DKMS" /opt/xcat/share/xcat/tools/autotest/testcase/infiniband/rhel-infiniband-diskfull-install.sh check:rc==0 end start:confignetwork_ib_ipoib description: this case is to test confignetwork could configure the first infiniband interface, ib0, successfully with updatenode. +label:others,IB cmd:lsdef $$CN;if [ $? -eq 0 ]; then lsdef -l $$CN -z >/tmp/CN.standa ;fi check:rc==0 cmd:xdsh $$CN "mkdir -p /tmp/backupnet/" diff --git a/xCAT-test/autotest/testcase/install_xCAT/case0 b/xCAT-test/autotest/testcase/install_xCAT/case0 index 05bc1f7c7..9eb7b5606 100644 --- a/xCAT-test/autotest/testcase/install_xCAT/case0 +++ b/xCAT-test/autotest/testcase/install_xCAT/case0 @@ -1,5 +1,6 @@ start:install_xCAT_on_rhels_sles description:install xCAT with go-xcat tool in a fresh environment for rhels and sles +label:xcat_install os:Linux stop:yes cmd:if grep "Red Hat" /etc/*release >/dev/null; then yum install -y yum-utils bzip2; fi @@ -24,6 +25,7 @@ end start:install_xCAT_on_ubuntu description:install xCAT with go-xcat tool in a fresh environment for ubuntu +label:xcat_install os:Linux stop:yes cmd:arc_all=`uname -a`; code=`lsb_release -sc`;if [[ $arc_all =~ "ppc64le" ]]; then arch="ppc64el";else arch="x86_64";fi; cp "/opt/xcat/share/xcat/tools/autotest/testcase/go-xcat/$code-$arch.sources.list" "/etc/apt/sources.list" diff --git a/xCAT-test/autotest/testcase/kdump/linux_diskless_kdump b/xCAT-test/autotest/testcase/kdump/linux_diskless_kdump index 01dde2833..91047bca9 100644 --- a/xCAT-test/autotest/testcase/kdump/linux_diskless_kdump +++ b/xCAT-test/autotest/testcase/kdump/linux_diskless_kdump @@ -1,4 +1,5 @@ start:linux_diskless_kdump +label:others,kdump,invoke_provision os:Linux cmd:lsdef -z $$CN > /tmp/node.stanza cmd:lsdef -t osimage -z __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute > /tmp/osimage.stanza @@ -37,6 +38,7 @@ cmd:if [ ! -d /kdumpdir ]; then mkdir -p /kdumpdir && chmod 777 /kdumpdir; fi cmd:if [ ! -f /etc/exports ] ;then touch /etc/exports;else cp /etc/exports /etc/exports.bak;fi cmd:cat /etc/exports|grep kdumpdir; if [ "$?" -ne "0" ]; then echo "/kdumpdir *(rw,no_root_squash,sync,no_subtree_check)" >> /etc/exports; fi cmd:cd /etc; export exports;cd -;service nfs restart +label:others,kdump,invoke_provision cmd:chdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute dump=nfs://$$MN/kdumpdir check:rc==0 @@ -71,6 +73,7 @@ check:output=~\d\d:\d\d:\d\d cmd:xdsh $$CN "echo 'echo 1 > /proc/sys/kernel/sysrq; echo c > /proc/sysrq-trigger' > /tmp/kdump.trigger" cmd:xdsh $$CN "chmod 755 /tmp/kdump.trigger" cmd:xdsh $$CN "service atd start" +label:others,kdump,invoke_provision cmd:xdsh $$CN "at now +1 minutes <<< /tmp/kdump.trigger" cmd:sleep 300 diff --git a/xCAT-test/autotest/testcase/lskit/case0 b/xCAT-test/autotest/testcase/lskit/case0 index ffdb9ae1f..8d9dd3485 100644 --- a/xCAT-test/autotest/testcase/lskit/case0 +++ b/xCAT-test/autotest/testcase/lskit/case0 @@ -1,4 +1,5 @@ start:lskit_v +label:others,KIT os:Linux cmd:lskit -v check:rc==0 @@ -13,6 +14,7 @@ check:output=~compatible_frameworks end start:lskit_h +label:others,KIT os:Linux cmd:lskit -h check:rc==0 @@ -23,6 +25,7 @@ check:output=~ Usage end start:lskit_F +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits @@ -42,6 +45,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits end start:lskit_K +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits @@ -65,6 +69,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits end start:lskit_R +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits @@ -91,6 +96,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits end start:lskit_C +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits diff --git a/xCAT-test/autotest/testcase/lskitcomp/case0 b/xCAT-test/autotest/testcase/lskitcomp/case0 index ae02e7753..bfd0d394c 100644 --- a/xCAT-test/autotest/testcase/lskitcomp/case0 +++ b/xCAT-test/autotest/testcase/lskitcomp/case0 @@ -1,4 +1,5 @@ start:lskitcomp_v +label:others,KIT os:Linux cmd:lskitcomp -v check:rc==0 @@ -13,6 +14,7 @@ check:output=~compatible_frameworks end start:lskitcomp_h +label:others,KIT os:Linux cmd:lskitcomp -h check:rc==0 @@ -23,6 +25,7 @@ check:output=~ Usage end start:lskitcomp_C +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskitcomp/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskitcomp;buildkit create mykits @@ -53,6 +56,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskitcomp/mykits end start:lskitcomp_C +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskitcomp/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskitcomp;buildkit create mykits @@ -84,6 +88,7 @@ end start:lskitcomp_S +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskitcomp/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskitcomp;buildkit create mykits diff --git a/xCAT-test/autotest/testcase/lskitdeployparam/case0 b/xCAT-test/autotest/testcase/lskitdeployparam/case0 index 7a62f5586..44e68315d 100644 --- a/xCAT-test/autotest/testcase/lskitdeployparam/case0 +++ b/xCAT-test/autotest/testcase/lskitdeployparam/case0 @@ -1,4 +1,5 @@ start:lskitdeployparam_v +label:others,KIT os:Linux cmd:lskitdeployparam -v check:rc==0 @@ -13,6 +14,7 @@ check:output=~compatible_frameworks end start:lskitdeployparam_h +label:others,KIT os:Linux cmd:lskitdeployparam -h check:rc==0 @@ -23,6 +25,7 @@ check:output=~ Usage end start:lskitdeployparam_no_param +label:others,KIT os:Linux cmd:lskitdeployparam check:rc==1 @@ -32,6 +35,7 @@ end start:lskitdeployparam_k_1 +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits @@ -57,6 +61,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits end start:lskitdeployparam_c_1 +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/lskit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/lskit;buildkit create mykits diff --git a/xCAT-test/autotest/testcase/lslite/cases0 b/xCAT-test/autotest/testcase/lslite/cases0 index 2f77574e4..af6114b75 100644 --- a/xCAT-test/autotest/testcase/lslite/cases0 +++ b/xCAT-test/autotest/testcase/lslite/cases0 @@ -1,5 +1,6 @@ start:lslite_i description:lslite -i +label:others,statelite os:Linux cmd:copycds $$ISO check:rc==0 @@ -26,6 +27,7 @@ end start:lslite_noderange description:lslite noderange +label:others,statelite os:Linux cmd:mkdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute -u profile=compute provmethod=statelite osvers=__GETNODEATTR($$CN,os)__ check:rc==0 @@ -52,6 +54,7 @@ end start:lslite_h os:Linux description:lslite -h and --help +label:others,statelite cmd:lslite -h check:output=~usage|Usage cmd:lslite --help diff --git a/xCAT-test/autotest/testcase/lsvm/cases0 b/xCAT-test/autotest/testcase/lsvm/cases0 index abe42f631..6b89cb558 100644 --- a/xCAT-test/autotest/testcase/lsvm/cases0 +++ b/xCAT-test/autotest/testcase/lsvm/cases0 @@ -1,16 +1,19 @@ #comment out for developper will not fix it #start:lsvm_null +label:others,hcp_hmc #cmd:lsvm #check:rc!=0 #check:output=~Usage #end start:lsvm_node +label:others,hcp_hmc hcp:hmc,ivm cmd:lsvm $$CN check:rc==0 check:output=~name=$$CN end start:lsvm_err_node +label:others,hcp_hmc cmd:lsvm testnode check:rc!=0 check:output=~Error diff --git a/xCAT-test/autotest/testcase/makeconservercf/cases0 b/xCAT-test/autotest/testcase/makeconservercf/cases0 index 26dde43f1..95b9ba502 100644 --- a/xCAT-test/autotest/testcase/makeconservercf/cases0 +++ b/xCAT-test/autotest/testcase/makeconservercf/cases0 @@ -1,5 +1,5 @@ start:makeconservercf_null -label:ci_test +label:others,conserver cmd:chdef -t node -o testnodetmp cons=hmc groups=all cmd:makeconservercf testnodetmp check:rc==0 @@ -11,7 +11,7 @@ cmd:rmdef -t node testnodetmp end start:makeconservercf_noderange -label:ci_test +label:others,conserver cmd:chdef -t node -o testnodetmp cons=hmc groups=all cmd:makeconservercf testnodetmp check:rc==0 @@ -23,7 +23,7 @@ cmd:rmdef -t node testnodetmp end start:makeconservercf_d -label:ci_test +label:others,conserver cmd:chdef -t node -o testnodetmp cons=hmc groups=all cmd:makeconservercf testnodetmp check:rc==0 diff --git a/xCAT-test/autotest/testcase/makeknownhosts/cases0 b/xCAT-test/autotest/testcase/makeknownhosts/cases0 index f7f7e0646..69f7bf3ef 100644 --- a/xCAT-test/autotest/testcase/makeknownhosts/cases0 +++ b/xCAT-test/autotest/testcase/makeknownhosts/cases0 @@ -1,5 +1,4 @@ start:makeknownhosts_h -label:ci_test cmd:makeknownhosts -h check:output=~Usage cmd:makeknownhosts --help @@ -8,6 +7,7 @@ end start:makeknownhosts_node description:Make a known_hosts file under $ROOTHOME/.ssh for input noderange +label:others cmd:makeknownhosts $$CN -r cmd:makeknownhosts $$CN check:rc==0 @@ -19,6 +19,7 @@ end start:makeknownhosts_node_r description:remove known node in $ROOTHOME/.ssh +label:others cmd:makeknownhosts $$CN cmd:cat ~/.ssh/known_hosts|grep $$CN check:output=~$$CN @@ -31,6 +32,7 @@ end start:makeknownhosts_node_d description:delete known node entry from $ROOTHOME/.ssh +label:others cmd:makeknownhosts $$CN cmd:cat ~/.ssh/known_hosts|grep $$CN check:output=~$$CN @@ -45,6 +47,7 @@ end start:makeknownhosts_node_v description:verbose +label:others cmd:makeknownhosts $$CN -V check:rc==0 check:output=~$$CN diff --git a/xCAT-test/autotest/testcase/makenetworks/cases0 b/xCAT-test/autotest/testcase/makenetworks/cases0 index c43c55ed7..b99a8c858 100644 --- a/xCAT-test/autotest/testcase/makenetworks/cases0 +++ b/xCAT-test/autotest/testcase/makenetworks/cases0 @@ -1,22 +1,22 @@ start:makenetworks_h -label:ci_test description:help +label:others,network cmd:makenetworks -h check:rc==0 check:output=~Usage end start:makenetworks_help -label:ci_test description:help +label:others,network cmd:makedhcp --help check:rc==0 check:output=~Usage end start:makenetworks_v -label:ci_test description:version +label:others,network cmd:makenetworks -v check:rc==0 check:output=~Version @@ -24,6 +24,8 @@ end start:makenetworks_d os:Linux +description:makenetworks_d +label:others,network cmd:makenetworks -d > /tmp/mynetworksstanzas check:rc==0 cmd:echo -ne "auto-testnetworks:\n objtype=network\n gateway=1.2.3.0\n mask=255.255.255.0\n net=1.2.3.1\n" >> /tmp/mynetworksstanzas @@ -38,7 +40,7 @@ end start:makenetworks_d_V description:display,verbose -label:ci_test +label:others,network cmd:makenetworks check:rc==0 cmd:makenetworks -d -V @@ -51,6 +53,7 @@ end start:makenetworks os:Linux description:makenetworks +label:others,network cmd:num=`lsdef -t network |cut -d" " -f1 |tee /tmp/testnetworks|wc -l`;for((i=1;i<=$num;i++)) do rmdef -t network `cat /tmp/testnetworks|sed -n "${i}p"`; done check:rc==0 check:output=~(definitions have been removed) diff --git a/xCAT-test/autotest/testcase/makentp/cases0 b/xCAT-test/autotest/testcase/makentp/cases0 index d88159074..0827649ee 100644 --- a/xCAT-test/autotest/testcase/makentp/cases0 +++ b/xCAT-test/autotest/testcase/makentp/cases0 @@ -1,4 +1,5 @@ start:makentp_v + descriptiop:makentp -v cmd:makentp -v check:rc==0 @@ -6,6 +7,7 @@ check:output=~Version end start:makentp_h + descriptiop:makentp -h cmd:makentp -h check:rc==0 @@ -13,6 +15,7 @@ check:output=~Usage: makentp end start:makentp_extntpserver_null + descriptiop:test makentp with default value. extntpserver is set to blank cmd:lsdef -t site -o clustersite -i extntpservers -c >/tmp/extntpserver check:rc==0 @@ -28,6 +31,7 @@ check:output=~checking if nptd is installed check:output=~backing up the ntp configuration file /etc/ntp.conf check:output=~stopping ntpserver check:output=~starting ntpserver + check:output=~enabling ntpserver cmd:extntpserver=`cat /tmp/ntpserver | awk -F = '{print \$2}'`;chtab key=extntpservers site.value=$extntpserver check:rc==0 @@ -37,6 +41,7 @@ check:rc==0 end start:makentp_extntpserver_value + descriptiop:test makentp with extntpserver is set to a specific value cmd:lsdef -t site -o clustersite -i extntpservers -c >/tmp/extntpserver check:rc==0 @@ -57,6 +62,7 @@ check:output=~backing up the ntp configuration file /etc/ntp.conf check:output=~ntp servers are: $$extntpserversip check:output=~stopping ntpserver check:output=~starting ntpserver + check:output=~enabling ntpserver cmd:date check:output=~$$DATE @@ -69,6 +75,7 @@ cmd:rm -rf /tmp/extntpserver end start:updatenode_computenode_P_setupntp + descriptiop:using updatenode -P to setup ntp on compute node cmd:xdsh $$CN date -s 20000101 check:rc==0 @@ -102,7 +109,9 @@ end start:makentp_initialize + descriptiop:start ntp service on management node and synchronize time with external ntp server + cmd:chtab key=extntpservers site.value="$$extntpserversip" check:rc==0 cmd:makentp -V @@ -113,6 +122,7 @@ check:output=~backing up the ntp configuration file /etc/ntp.conf check:output=~ntp servers are: $$extntpserversip check:output=~stopping ntpserver check:output=~starting ntpserver + check:output=~enabling ntpserver cmd:if [[ "__GETNODEATTR($$CN,os)__" =~ "ubuntu" ]] || [[ "__GETNODEATTR($$CN,os)__" = "sles11.4" ]];then service ntp status;else service ntpd status; fi check:rc==0 diff --git a/xCAT-test/autotest/testcase/makeroutes/cases0 b/xCAT-test/autotest/testcase/makeroutes/cases0 index bc5dacf29..5ac2c51bc 100644 --- a/xCAT-test/autotest/testcase/makeroutes/cases0 +++ b/xCAT-test/autotest/testcase/makeroutes/cases0 @@ -1,16 +1,19 @@ start:makeroutes_h +label:others,network cmd:makeroutes -h check:rc==0 check:output=~Usage end start:makeroutes_v +label:others,network cmd:makeroutes -v check:rc==0 check:output=~Version end start:makeroutes_r_d_node +label:others,network cmd:chtab routename=testr routes.net=10.1.0.0 routes.mask=255.255.0.0 routes.gateway=10.1.254.254 check:rc==0 cmd: makeroutes $$CN -r testr @@ -29,6 +32,7 @@ end start:makeroutes_r_d +label:others,network cmd:chtab routename=testr routes.net=10.1.0.0 routes.mask=255.255.0.0 routes.gateway=10.1.254.254 check:rc==0 cmd: makeroutes -r testr @@ -47,6 +51,7 @@ end start:makeroutes_use_site_mnroutenames +label:others,network cmd:chtab routename=testr routes.net=10.1.0.0 routes.mask=255.255.0.0 routes.gateway=10.1.254.254 check:rc==0 cmd:chtab key=mnroutenames site.value=testr @@ -68,6 +73,7 @@ check:rc==0 end start:makeroutes_use_noderes_routenames +label:others,network cmd:chtab routename=testr routes.net=10.1.0.0 routes.mask=255.255.0.0 routes.gateway=10.1.254.254 check:rc==0 cmd:chtab node=$$CN noderes.routenames=testr diff --git a/xCAT-test/autotest/testcase/migration/redhat_migration b/xCAT-test/autotest/testcase/migration/redhat_migration index c2d43ff7b..a11f1d807 100644 --- a/xCAT-test/autotest/testcase/migration/redhat_migration +++ b/xCAT-test/autotest/testcase/migration/redhat_migration @@ -1,6 +1,7 @@ start:redhat_migration1 os:Linux description:update xCAT from $$MIGRATION1_VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;echo "poweroffsn">/tmp/poweroffsn;fi check:rc==0 @@ -108,6 +109,7 @@ end start:redhat_migration2 os:Linux description:update xCAT from $$MIGRATION2_VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision #stop:yes cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;echo "poweroffsn">/tmp/poweroffsn;fi check:rc==0 diff --git a/xCAT-test/autotest/testcase/migration/sles_migration b/xCAT-test/autotest/testcase/migration/sles_migration index af2cd1303..e266628d2 100644 --- a/xCAT-test/autotest/testcase/migration/sles_migration +++ b/xCAT-test/autotest/testcase/migration/sles_migration @@ -1,6 +1,7 @@ start:sles_migration1 os:Linux description:update xCAT from $$MIGRATION1_VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;echo "poweroffsn">/tmp/poweroffsn;fi check:rc==0 cmd:if [[ "__GETNODEATTR($$SN,groups)__" =~ "service" ]];then chdef $$SN -m groups=service;echo "servicelabel" >/tmp/servicelabel;fi @@ -110,6 +111,7 @@ end start:sles_migration2 os:Linux description:update xCAT from $$MIGRATION22VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;echo "poweroffsn">/tmp/poweroffsn;fi check:rc==0 diff --git a/xCAT-test/autotest/testcase/migration/ubuntu_migration1_p8le b/xCAT-test/autotest/testcase/migration/ubuntu_migration1_p8le index e9d8c0876..81970abc3 100644 --- a/xCAT-test/autotest/testcase/migration/ubuntu_migration1_p8le +++ b/xCAT-test/autotest/testcase/migration/ubuntu_migration1_p8le @@ -1,6 +1,7 @@ start:ubuntu_migration1_p8le os:Linux description:update xCAT from $$UBUNTU_MIGRATION1_VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision cmd:copycds $$ISO check:rc==0 diff --git a/xCAT-test/autotest/testcase/migration/ubuntu_migration1_vm b/xCAT-test/autotest/testcase/migration/ubuntu_migration1_vm index a060e181c..c980c0702 100644 --- a/xCAT-test/autotest/testcase/migration/ubuntu_migration1_vm +++ b/xCAT-test/autotest/testcase/migration/ubuntu_migration1_vm @@ -1,6 +1,7 @@ start:ubuntu_migration1_vm os:Linux description:update xCAT from $$UBUNTU_MIGRATION1_VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision cmd:copycds $$ISO check:rc==0 diff --git a/xCAT-test/autotest/testcase/migration/ubuntu_migration2_p8le b/xCAT-test/autotest/testcase/migration/ubuntu_migration2_p8le index 18e7d7db5..7fe2080ec 100644 --- a/xCAT-test/autotest/testcase/migration/ubuntu_migration2_p8le +++ b/xCAT-test/autotest/testcase/migration/ubuntu_migration2_p8le @@ -1,6 +1,7 @@ start:ubuntu_migration2_p8le os:Linux description:update xCAT from $$UBUNTU_MIGRATION2_VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision cmd:copycds $$ISO check:rc==0 diff --git a/xCAT-test/autotest/testcase/migration/ubuntu_migration2_vm b/xCAT-test/autotest/testcase/migration/ubuntu_migration2_vm index 612a0536c..ab47fd759 100644 --- a/xCAT-test/autotest/testcase/migration/ubuntu_migration2_vm +++ b/xCAT-test/autotest/testcase/migration/ubuntu_migration2_vm @@ -1,6 +1,7 @@ start:ubuntu_migration2_vm os:Linux description:update xCAT from $$UBUNTU_MIGRATION2_VERSION to latest version, these two global parameter defined in config file +label:others,migration,invoke_provision cmd:copycds $$ISO check:rc==0 diff --git a/xCAT-test/autotest/testcase/mkvm/cases0 b/xCAT-test/autotest/testcase/mkvm/cases0 index 6b252679b..740106cc9 100644 --- a/xCAT-test/autotest/testcase/mkvm/cases0 +++ b/xCAT-test/autotest/testcase/mkvm/cases0 @@ -1,4 +1,5 @@ start:mkvm_i_l +label:others,hctrl_hmc hcp:hmc cmd:mkdef -t node -o testnode1,testnode2 mgt=hmc groups=all cmd:mkvm testnode1,testnode2 -i $$MaxLparID -l $$CN diff --git a/xCAT-test/autotest/testcase/ngpfb/cases0 b/xCAT-test/autotest/testcase/ngpfb/cases0 index fd7115da0..d7e811de0 100644 --- a/xCAT-test/autotest/testcase/ngpfb/cases0 +++ b/xCAT-test/autotest/testcase/ngpfb/cases0 @@ -1,7 +1,9 @@ #comments:make sure you have compute node definition on your MN #this case is just supplement for some commands,after your executing,check output from log start:lsslp_cmm + description:for part of ngp firebird commands +label:others,hctrl_fsp cmd:makedhcp -n check:rc==0 check:output!=Error @@ -12,7 +14,9 @@ check:output=~(groups=cmm,all) end start:rspconfig_snmp_ssh + description:rspconfig snmpcfg sshcfg +label:others,hctrl_fsp cmd:makehosts cmm check:rc==0 cmd:makedns cmm @@ -31,7 +35,9 @@ check:output=~enabled end start:rscan_cmm + description:rscan cmm +label:others,hctrl_fsp cmd:rscan cmm check:rc==0 cmd:rscan cmm -z @@ -42,13 +48,16 @@ check:rc==0 end start:rspconfig_network + cmd:rspconfig $$CN network=* check:rc==0 check:output=~OK end start:rspconfig_textid + description:rspconfig textid +label:others,hctrl_fsp cmd:rspconfig $$CN textid=abc123 check:rc==0 cmd:sleep 20 @@ -69,7 +78,9 @@ check:output=~(\w+)(.*?)\1 end start:rspconfig_hwconn + description:for hwconn +label:others,hctrl_fsp cmd:rmhwconn $$CN check:rc==0 check:rc!~(state=LINE UP) @@ -91,7 +102,9 @@ check:output=~(LINE UP) end start:rpower_bladenode + description:rpower +label:others,hctrl_fsp cmd:rpower $$CN off check:rc==0 cmd:sleep 50 @@ -103,7 +116,9 @@ check:output=~Success end start:rspconfig_solcfg + description:for solcfg +label:others,hctrl_fsp cmd:rspconfig cmm solcfg=enable check:rc==0 cmd:rspconfig cmm solcfg @@ -117,7 +132,9 @@ check:output!~enable end start:getmacs_d_blade + description:getmacs +label:others,hctrl_fsp cmd:makeconservercf check:rc==0 cmd:chdef $$CN getmac=blade @@ -131,7 +148,9 @@ check:output=~[a-f0-9A-F]{12}|[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0-9A-F]{2}:[a-f0 end start:rinv_firm_fb + description:check firmware level +label:others,hctrl_fsp cmd:rinv $$CN firm check:rc==0 cmd:rvitals $$CN all diff --git a/xCAT-test/autotest/testcase/nodeset/cases1 b/xCAT-test/autotest/testcase/nodeset/cases1 index bcf8f6343..8667e37ae 100644 --- a/xCAT-test/autotest/testcase/nodeset/cases1 +++ b/xCAT-test/autotest/testcase/nodeset/cases1 @@ -1,52 +1,61 @@ start:nodeset_shell_grub2 +label:others description: Verify if `nodeset shell` perform well when part of nodes in a node range have problem. Use grub2 OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_shell_grub2 check:rc==0 end start:nodeset_shell_petitboot +label:others description: Verify if `nodeset shell` perform well when part of nodes in a node range have problem. Use petitboot OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_shell_petitboot check:rc==0 end start:nodeset_shell_xnba +label:others description: Verify if `nodeset shell` perform well when part of nodes in a node range have problem. Use xnba OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_shell_xnba check:rc==0 end start:nodeset_osimage_grub2 +label:others description: Verify if `nodeset osimage` perform well when part of nodes in a node range have problem. Use grub2 OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_osimage_grub2 check:rc==0 end start:nodeset_osimage_petitboot +label:others description: Verify if `nodeset osimage` perform well when part of nodes in a node range have problem. Use petitboot OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_osimage_petitboot check:rc==0 end start:nodeset_osimage_xnba +label:others description: Verify if `nodeset osimage` perform well when part of nodes in a node range have problem. Use xnba OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_osimage_xnba check:rc==0 end start:nodeset_nonexistent_osimage_grub2 +label:others description: Verify if `nodeset osimage` perform well when part of nodes in a node range have nonexistent osimage defined in its profile. Use grub2 OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_nonexistent_osimage_grub2 check:rc==0 end start:nodeset_nonexistent_osimage_petitboot +label:others description: Verify if `nodeset osimage` perform well when part of nodes in a node range have nonexistent osimage defined in its profile. Use petitboot OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_nonexistent_osimage_petitboot check:rc==0 end start:nodeset_nonexistent_osimage_xnba +label:others description: Verify if `nodeset osimage` perform well when part of nodes in a node range have nonexistent osimage defined in its profile. Use xnba OS loader cmd:/opt/xcat/share/xcat/tools/autotest/testcase/nodeset/nodeset_nonexistent_osimage_xnba check:rc==0 diff --git a/xCAT-test/autotest/testcase/nodestat/cases0 b/xCAT-test/autotest/testcase/nodestat/cases0 index 0444b9edb..60244cabb 100644 --- a/xCAT-test/autotest/testcase/nodestat/cases0 +++ b/xCAT-test/autotest/testcase/nodestat/cases0 @@ -1,4 +1,5 @@ start:nodestat_noderange +label:others arch:x86 cmd:nodestat $$CN check:rc==0 @@ -6,7 +7,7 @@ check:output=~noping|sshd|install|snmp|pbs end start:nodestat_err_node -label:ci_test +label:others cmd:nodestat testnode check:rc!=0 check:output=~Error diff --git a/xCAT-test/autotest/testcase/nodestat/cases1 b/xCAT-test/autotest/testcase/nodestat/cases1 index f9c7ce03a..d31de9e3e 100644 --- a/xCAT-test/autotest/testcase/nodestat/cases1 +++ b/xCAT-test/autotest/testcase/nodestat/cases1 @@ -1,5 +1,6 @@ start:nodestat_usage description: Test the exit code when no command line argument is passed to nodestat +label:others cmd:nodestat check:rc!=0 end diff --git a/xCAT-test/autotest/testcase/osdeploy/cases0 b/xCAT-test/autotest/testcase/osdeploy/cases0 index 53058dfae..f9fc83860 100644 --- a/xCAT-test/autotest/testcase/osdeploy/cases0 +++ b/xCAT-test/autotest/testcase/osdeploy/cases0 @@ -1,5 +1,6 @@ start:osdeploy_usage description: osdeploy check usage +label:others,xcatprobe cmd:xcatprobe osdeploy -h check:rc==0 check:output~=Usage @@ -9,6 +10,7 @@ end start:osdeploy_n description: osdeploy -n node to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:xcatprobe osdeploy -n $$CN >> /tmp/osdeploy.test & @@ -27,6 +29,7 @@ end start:osdeploy_n_r description: osdeploy -n -r node to probe osdeploy to trigger 'Replay history' mode. +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:xcatprobe osdeploy -n $$CN >> /tmp/osdeploy.test & @@ -63,6 +66,7 @@ end start:osdeploy_n_t description: osdeploy -n node -t 1m,probe osdeploy in 1min +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:xcatprobe osdeploy -n $$CN -t 1m >> /tmp/osdeploy.test & @@ -76,6 +80,7 @@ check:rc==0 end start:osdeploy_n_invalidnode description: osdeploy -n node invalid +label:others,xcatprobe cmd:test=`lsdef test_node`;if [ $test eq 0 ]; then lsdef -l test_node -z >/tmp/node.standa ;rmdef test_node;fi check:rc==0 cmd:xcatprobe osdeploy -n test_node @@ -86,6 +91,7 @@ check:rc==0 end start:osdeploy_n_p_invalid description:osdeploy -n node -p invalid parameter +label:others,xcatprobe cmd:xcatprobe osdeploy -n $$CN -p dsdf check:rc==1 check:output~=Usage: @@ -96,6 +102,7 @@ end start:osdeploy_n_r_invalid description:osdeploy -n node -r invalid parameter +label:others,xcatprobe cmd:xcatprobe osdeploy -n $$CN -r dadf check:rc==1 check:output~=Usage: @@ -106,6 +113,7 @@ end start:osdeploy_n_t_invalid description:osdeploy -n node -t invalid parameter +label:others,xcatprobe cmd:xcatprobe osdeploy -n $$CN -t dadf check:rc==1 check:output~=Usage: @@ -116,6 +124,7 @@ end start:osdeploy_n_p_origin description: osdeploy -n -p origin node to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:xcatprobe osdeploy -n $$CN -p origin >> /tmp/osdeploy.test & @@ -139,6 +148,7 @@ check:rc==0 end start:osdeploy_n_p_origin_r description: osdeploy -n node -p origin -r to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute @@ -163,6 +173,7 @@ check:rc==0 end start:osdeploy_n_p_origin_r_error description: osdeploy -n node -p origin -r 1m to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute @@ -188,6 +199,7 @@ end start:osdeploy_n_p_compact description: osdeploy -n -p compact node to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:xcatprobe osdeploy -n $$CN -p compact >> /tmp/osdeploy.test & @@ -211,6 +223,7 @@ check:rc==0 end start:osdeploy_n_p_compact_r description: osdeploy -n -p compact -r node to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 check:rc==0 @@ -235,6 +248,7 @@ check:rc==0 end start:osdeploy_n_p_compact_r_error description: osdeploy -n -p compact -r node error to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 check:rc==0 @@ -260,6 +274,7 @@ end start:osdeploy_n_p_phase description: osdeploy -n -p phase node to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:xcatprobe osdeploy -n $$CN -p phase >> /tmp/osdeploy.test & @@ -283,6 +298,7 @@ check:rc==0 end start:osdeploy_n_p_phase_r description: osdeploy -n -p phase node -r to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute @@ -308,6 +324,7 @@ end start:osdeploy_n_p_phase_r_error description: osdeploy -n -p phase node -r error to probe osdeploy +label:others,xcatprobe cmd:if [ -e /tmp/osdeploy.test ];then rm -rf /tmp/osdeploy.test*;fi check:rc==0 cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute diff --git a/xCAT-test/autotest/testcase/packimg/cases0 b/xCAT-test/autotest/testcase/packimg/cases0 index 87e636866..b9f5b1721 100644 --- a/xCAT-test/autotest/testcase/packimg/cases0 +++ b/xCAT-test/autotest/testcase/packimg/cases0 @@ -1,6 +1,7 @@ start:packimage_o_p_a_m os:Linux description: +label:others,packaging cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz /rootimg.cpio.gz.bak;fi @@ -21,6 +22,7 @@ end start:packimage_imagename os:Linux description: +label:others,packaging cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz /rootimg.cpio.gz.bak;fi cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute @@ -40,6 +42,7 @@ end start:packimage_h os:Linux description:packimage -h +label:others,packaging cmd:packimage -h check:rc==0 end @@ -47,6 +50,7 @@ end start:packimage_v os:Linux description:packimage -v +label:others,packaging cmd:packimage -v check:output=~version|Version end @@ -54,6 +58,7 @@ end start:packimage_m_cpio_c_gzip os:Linux description:test packimage -m cpio -c gzip +label:others,packaging,invoke_provision cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz /rootimg.cpio.gz.bak;fi @@ -95,6 +100,7 @@ end start:packimage_m_cpio_c_pigz os:Linux description:test packimage -m cpio -c pigz +label:others,packaging,invoke_provision #cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.gz /rootimg.cpio.gz.bak;fi @@ -140,6 +146,7 @@ end start:packimage_m_cpio_c_xz os:Linux description:test packimage -m cpio -c xz +label:others,packaging,invoke_provision #cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.xz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.cpio.xz /rootimg.cpio.xz.bak;fi @@ -181,6 +188,7 @@ end start:packimage_m_tar_c_pigz os:Linux description:test packimage -m tar -c pigz +label:others,packaging #cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.tar.gz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.tar.gz /rootimg.tar.gz.bak;fi @@ -235,6 +243,7 @@ end start:packimage_m_tar_c_gzip os:Linux description:test packimage -m tar -c gzip +label:others,packaging #cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.tar.gz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.tar.gz /rootimg.tar.gz.bak;fi @@ -285,6 +294,7 @@ end start:packimage_m_tar_c_xz os:Linux description:test packimage -m tar -c xz +label:others,packaging #cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.tar.xz;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg.tar.xz /rootimg.tar.xz.bak;fi @@ -335,6 +345,7 @@ end start:packimage_m_invalid_archive_method os:Linux description:test packimage with invalid archive method +label:others,packaging #cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute @@ -351,6 +362,7 @@ end start:packimage_m_invalid_compress_method os:Linux description:test packimage with invalid compress method +label:others,packaging #cmd:copycds $$ISO cmd:ls /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg;if [ $? -eq 0 ];then mv -f /install/netboot/__GETNODEATTR($$CN,os)__/__GETNODEATTR($$CN,arch)__/compute/rootimg /rootimg.bak;fi cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute diff --git a/xCAT-test/autotest/testcase/passwd/case0 b/xCAT-test/autotest/testcase/passwd/case0 index 5ba6e8dcb..91350e546 100644 --- a/xCAT-test/autotest/testcase/passwd/case0 +++ b/xCAT-test/autotest/testcase/passwd/case0 @@ -1,5 +1,6 @@ start:encrypted_passwd_md5_diskfull description: this case is to test when cryptmethod=md5 in passwd table, the password is encryped with the md5 method. When compute node is diskfull provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:chtab key=system passwd.cryptmethod=md5 @@ -18,6 +19,7 @@ end start:encrypted_passwd_md5_diskless description: this case is to test when cryptmethod=md5 in passwd table, the password is encryped with the md5 method. When compute node is diskless provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:chtab key=system passwd.cryptmethod=md5 @@ -73,6 +75,7 @@ end start:encrypted_passwd_sha256_diskfull description: this case is to test when cryptmethod=sha256 in passwd table, the password is encryped with the sha256 method. When compute node is diskfull provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:chtab key=system passwd.cryptmethod=sha256 @@ -91,6 +94,7 @@ end start:encrypted_passwd_sha256_diskless description: this case is to test when cryptmethod=sha256 in passwd table, the password is encryped with the sha256 method. When compute node is diskless provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:chtab key=system passwd.cryptmethod=sha256 @@ -146,6 +150,7 @@ end start:encrypted_passwd_sha512_diskfull description: this case is to test when cryptmethod=sha512 in passwd table, the password is encryped with the sha512 method. When compute node is diskfull provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:chtab key=system passwd.cryptmethod=sha512 @@ -164,6 +169,7 @@ end start:encrypted_passwd_sha512_diskless description: this case is to test when cryptmethod=sha512 in passwd table, the password is encryped with the sha512 method. When compute node is diskless provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:chtab key=system passwd.cryptmethod=sha512 @@ -220,6 +226,7 @@ end start:encrypted_passwd_openssl_diskfull description: this case is to test when password is encrypted with openssl, the password is encryped in password table. When compute node is diskfull provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:gettab key=system passwd.password > /tmp/tmppassword @@ -245,6 +252,7 @@ end start:encrypted_passwd_openssl_diskless description: this case is to test when password is encrypted with openssl, the password is encryped in password table. When compute node is diskless provisioned, users can login node with correct password. This case should be run when node is correctly defined. +label:others cmd:gettab key=system passwd.cryptmethod > /tmp/tmpcryptmethod check:rc==0 cmd:gettab key=system passwd.password > /tmp/tmppassword diff --git a/xCAT-test/autotest/testcase/pdu/case0 b/xCAT-test/autotest/testcase/pdu/case0 index d8fd13a25..16a8dd14d 100644 --- a/xCAT-test/autotest/testcase/pdu/case0 +++ b/xCAT-test/autotest/testcase/pdu/case0 @@ -17,6 +17,7 @@ end start:mkdef_pdu_object description:create a pdu object and list it's attribute +label:others cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu check:rc==0 cmd:lsdef -t pdu @@ -40,6 +41,7 @@ end start:noderm_pdu_object description:create a pdu object and use noderm to remove it +label:others cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu check:rc==0 cmd:lsdef -t pdu @@ -59,6 +61,7 @@ end start:pdu_communication description:Verify a pdu snmp communication +label:others cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu check:rc==0 cmd:lsdef -t pdu @@ -77,6 +80,7 @@ end start:pdu_rinv description:Verify rinv works for pdu object +label:others cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu check:rc==0 cmd:makehosts $$PDU @@ -94,6 +98,7 @@ end start:pdu_rpower description:Verify rpower works for pdu object +label:others cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu check:rc==0 cmd:makehosts $$PDU @@ -123,6 +128,7 @@ end start:pdu_node_operation description:Verify operate node's pdu attribute could operate pdu +label:others cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu check:rc==0 cmd:makehosts $$PDU @@ -158,6 +164,7 @@ end start:pdu_bad_config description:test bad config with pdu +label:others cmd:mkdef $$PDU groups=pdu ip=$$PDUIP mgt=pdu nodetype=pdu check:rc==0 cmd:makehosts $$PDU diff --git a/xCAT-test/autotest/testcase/performance/case0 b/xCAT-test/autotest/testcase/performance/case0 index 58d9299b5..647c7f9bb 100644 --- a/xCAT-test/autotest/testcase/performance/case0 +++ b/xCAT-test/autotest/testcase/performance/case0 @@ -1,5 +1,6 @@ start:perftest_5000 description:Default performance testing on 5000 fake nodes +label:others,performance os:Linux cmd:which yum &>/dev/null && yum install -y bridge-utils || apt install -y bridge-utils cmd:copycds $$ISO @@ -10,6 +11,7 @@ end start:UT_perftest_5000_MN_only description:Default performance testing on 5000 fake nodes without extra configuration on MN +label:others,performance os:Linux cmd:which yum &>/dev/null && yum install -y bridge-utils || apt install -y bridge-utils check:rc==0 @@ -19,6 +21,7 @@ end start:perftest_5000_with_simulators description:Default performance testing on 5000 fake nodes +label:others,performance os:Linux ### From reg_linux_diskfull_installation_flat cmd:fdisk -l @@ -139,6 +142,7 @@ end start:UT_perftest_1000_with_simulators description: UT for performance testing with simulators on an existing environment with one compute node. +label:others,performance os:Linux # Create fake nodes diff --git a/xCAT-test/autotest/testcase/pkg/cases0 b/xCAT-test/autotest/testcase/pkg/cases0 index 62831a853..d42438d56 100644 --- a/xCAT-test/autotest/testcase/pkg/cases0 +++ b/xCAT-test/autotest/testcase/pkg/cases0 @@ -1,5 +1,6 @@ start:del_ospkg -descreption:del ospkg +description:del ospkg +label:others,postscripts,updatenode cmd:copycds $$ISO check:rc==0 cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -g $$osimage -t pkglist -v __GETNODEATTR($$CN,os)__ @@ -25,7 +26,8 @@ check:rc==0 end start:add_ospkg_updatenode -descreption:add ospkg +description:add ospkg +label:others,postscripts,updatenode cmd:copycds $$ISO check:rc==0 cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -g $$osimage -t pkglist -v __GETNODEATTR($$CN,os)__ @@ -45,7 +47,8 @@ check:rc==0 end start:add_includeospkg_updatenode -descreption:add include ospkg list +description:add include ospkg list +label:others,postscripts,updatenode cmd:copycds $$ISO check:rc==0 cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -i -g $$osimage -t pkglist -v __GETNODEATTR($$CN,os)__ @@ -65,7 +68,8 @@ check:rc==0 end start:add_other_pkg -descreption:add other pkg +description:add other pkg +label:others,postscripts,updatenode cmd:copycds $$ISO check:rc==0 cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__ @@ -84,7 +88,8 @@ check:rc==0 end start:del_other_pkg -descreption:del other pkg +description:del other pkg +label:others,postscripts,updatenode cmd:copycds $$ISO check:rc==0 cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -s -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__ @@ -112,7 +117,8 @@ check:rc==0 end start:add_other_pkg_include -descreption:add other pkg include other list +description:add other pkg include other list +label:others,postscripts,updatenode cmd:copycds $$ISO check:rc==0 cmd:perl /opt/xcat/share/xcat/tools/autotest/testcase/pkg/pkgtest.pl -i -o -g $$osimage -t otherpkgdir -v __GETNODEATTR($$CN,os)__ diff --git a/xCAT-test/autotest/testcase/pping/cases0 b/xCAT-test/autotest/testcase/pping/cases0 index b7f4c4b16..661d15197 100644 --- a/xCAT-test/autotest/testcase/pping/cases0 +++ b/xCAT-test/autotest/testcase/pping/cases0 @@ -1,4 +1,5 @@ start:pping_h +label:others,parallel_cmds cmd:pping -h check:rc==0 check:output=~Usage @@ -7,6 +8,7 @@ check:rc==0 end start:pping_v +label:others,parallel_cmds cmd:pping -v check:rc==0 check:output=~Version @@ -16,12 +18,14 @@ check:output=~Version end start:pping_node +label:others,parallel_cmds cmd:pping $$CN check:rc==0 check:output=~ping|noping end start:pping_invalidnode +label:others,parallel_cmds cmd:pping test check:rc!=0 check:output=~Warning: (\[.*?\]: )?Invalid nodes in noderange:test diff --git a/xCAT-test/autotest/testcase/ppping/cases0 b/xCAT-test/autotest/testcase/ppping/cases0 index 0ac88204d..e7df2657c 100644 --- a/xCAT-test/autotest/testcase/ppping/cases0 +++ b/xCAT-test/autotest/testcase/ppping/cases0 @@ -1,5 +1,6 @@ start:ppping_h description:get ppping help information +label:others,parallel_cmds cmd:ppping -h check:rc==0 check:output=~Usage @@ -7,6 +8,7 @@ end start:ppping_v description:Display verbose output +label:others,parallel_cmds cmd:ppping -v check:rc==0 check:output=~Version @@ -14,6 +16,7 @@ end start:ppping_node description:ppping node +label:others,parallel_cmds Attribute: $$CN-The operation object of ppping command cmd:ping -c 3 $$CN > /dev/null 2>&1;if [[ $? -eq 1 ]]; then output=`ppping $$CN`;if [[ $? -eq 1 ]]&&[[ $output =~ "noping" ]];then exit 0;else exit 1;fi;else output=`ppping $$CN`; if [[ $? -eq 0 ]]&&[[ $output =~ "pinged all nodes successfully" ]];then exit 0;else exit 1;fi;fi check:rc==0 @@ -21,6 +24,7 @@ end start:ppping_V_node description:Display verbose output of ppping node. +label:others,parallel_cmds Attribute: $$CN-The operation object of ppping command cmd:ping -c 3 $$CN > /dev/null 2>&1;if [[ $? -eq 1 ]]; then output=`ppping -V $$CN`;if [[ $? -eq 1 ]]&&[[ $output =~ "$$CN: noping" ]];then exit 0;else exit 1;fi;else output=`ppping -V $$CN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$CN: $$CN: ping" ]];then exit 0;else exit 1;fi;fi check:rc==0 @@ -28,6 +32,7 @@ end start:ppping_q_node description:Display minimum output of ppping node. +label:others,parallel_cmds Attribute: $$CN-The operation object of ppping command cmd:ping -c 3 $$CN > /dev/null 2>&1;if [[ $? -eq 1 ]]; then output=`ppping -q $$CN`;if [[ $? -eq 1 ]]&&[[ $output =~ "$$CN: noping" ]];then exit 0;else exit 1;fi;else output=`ppping -q $$CN`; if [[ $? -eq 0 ]]&&[[ $output =~ "" ]];then exit 0;else exit 1;fi;fi check:rc==0 @@ -35,6 +40,7 @@ end start:ppping_d_node description:Print debug information of ppping node. +label:others,parallel_cmds Attribute: $$CN-The operation object of ppping command cmd:ping -c 3 $$CN > /dev/null 2>&1;if [[ $? -eq 1 ]]; then output=`ppping -d $$CN`;if [[ $? -eq 1 ]]&&[[ $output =~ "start" ]]&&[[ $output =~ "stop" ]];then exit 0;else exit 1;fi;else output=`ppping -d $$CN`; if [[ $? -eq 0 ]]&&[[ $output =~ "start" ]]&&[[ $output =~ "stop" ]];then exit 0;else exit 1;fi;fi check:rc==0 @@ -42,6 +48,7 @@ end start:ppping_i_node description:A comma separated list of network interface names that should be pinged instead of the interface represented by the nodename/hostname +label:others,parallel_cmds Attribute: $$CN-The operation object of ppping command cmd:cp /etc/hosts /etc/hosts.bak check:rc==0 @@ -59,6 +66,7 @@ end start:ppping_nodes description:test the connectivity between nodes in the noderange using ping +label:others,parallel_cmds Attribute: $$CN,$$SN-The operation object of ppping command cmd:ping -c 3 $$CN > /dev/null 2>&1;rc1=$?;ping -c 3 $$SN > /dev/null 2>&1;rc2=$?;if [[ $rc1 -eq 1 ]]&&[[ $rc2 -eq 1 ]];then output=`ppping $$CN,$$SN`;if [[ $? -eq 1 ]]&&[[ $output =~ "$$CN: noping" ]]&&[[ $output =~ "$$SN: noping" ]];then exit 0;else exit 1;fi;elif [[ $rc1 -eq 0 ]]&&[[ $rc2 -eq 1 ]]; then output=`ppping $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$SN: noping" ]]&&[[ "$$CN: $$SN: noping" ]];then exit 0;else exit 1;fi;elif [[ $rc1 -eq 1 ]]&&[[ $rc2 -eq 0 ]]; then output=`ppping $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$CN: noping" ]]&&[[ "$$SN: $$CN: noping" ]];then exit 0;else exit 1;fi;else output=`ppping $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$CN: pinged all nodes successfully" ]]&&[[ "$$SN: pinged all nodes successfully" ]];then exit 0;else exit 1;fi;fi check:rc==0 @@ -66,6 +74,7 @@ end start:ppping_V_nodes description:test the connectivity between nodes in the noderange using ping and print verbose output. +label:others,parallel_cmds Attribute: $$CN,$$SN-The operation object of ppping command cmd:ping -c 3 $$CN > /dev/null 2>&1;rc1=$?;ping -c 3 $$SN > /dev/null 2>&1;rc2=$?;if [[ $rc1 -eq 1 ]]&&[[ $rc2 -eq 1 ]];then output=`ppping -V $$CN,$$SN`;if [[ $? -eq 1 ]]&&[[ $output =~ "$$CN: noping" ]]&&[[ $output =~ "$$SN: noping" ]];then exit 0;else exit 1;fi;elif [[ $rc1 -eq 0 ]]&&[[ $rc2 -eq 1 ]]; then output=`ppping -V $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$SN: noping" ]]&&[[ $output =~ "$$CN: $$SN: noping" ]]&&[[ $output =~ "$$CN: $$CN: ping" ]];then exit 0;else exit 1;fi;elif [[ $rc1 -eq 1 ]]&&[[ $rc2 -eq 0 ]]; then output=`ppping -V $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$CN: noping" ]]&&[[ $output =~ "$$SN: $$CN: noping" ]];then exit 0;else exit 1;fi;else output=`ppping -V $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$SN: $$CN: ping" ]]&&[[ $output =~ "$$SN: $$SN: ping" ]]&&[[ $output =~ "$$CN: $$SN: ping" ]]&&[[ $output =~ "$$CN: $$CN: ping" ]];then exit 0;else exit 1;fi;fi check:rc==0 @@ -75,6 +84,7 @@ end start:ppping_V_s_nodes description:test the connectivity between nodes in the noderange using ping and print Ping serially instead of in parallel information. +label:others,parallel_cmds Attribute: $$CN,$$SN-The operation object of ppping command cmd:ping -c 3 $$CN > /dev/null 2>&1;rc1=$?;ping -c 3 $$SN > /dev/null 2>&1;rc2=$?;if [[ $rc1 -eq 1 ]]&&[[ $rc2 -eq 1 ]];then output=`ppping -V -s $$CN,$$SN`;if [[ $? -eq 1 ]]&&[[ $output =~ "$$CN: noping" ]]&&[[ $output =~ "$$SN: noping" ]];then exit 0;else exit 1;fi;elif [[ $rc1 -eq 0 ]]&&[[ $rc2 -eq 1 ]]; then output=`ppping -V -s $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$SN: noping" ]]&&[[ $output =~ "$$CN: $$SN: noping" ]]&&[[ $output =~ "$$CN: $$CN: ping" ]];then exit 0;else exit 1;fi;elif [[ $rc1 -eq 1 ]]&&[[ $rc2 -eq 0 ]]; then output=`ppping -V -s $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$CN: noping" ]]&&[[ $output =~ "$$SN: $$CN: noping" ]];then exit 0;else exit 1;fi;else output=`ppping -V -s $$CN,$$SN`; if [[ $? -eq 0 ]]&&[[ $output =~ "$$SN: $$CN: ping" ]]&&[[ $output =~ "$$SN: $$SN: ping" ]]&&[[ $output =~ "$$CN: $$SN: ping" ]]&&[[ $output =~ "$$CN: $$CN: ping" ]];then exit 0;else exit 1;fi;fi check:rc==0 diff --git a/xCAT-test/autotest/testcase/probe/detect_dhcpd b/xCAT-test/autotest/testcase/probe/detect_dhcpd index b67ae4495..213f6ab0d 100644 --- a/xCAT-test/autotest/testcase/probe/detect_dhcpd +++ b/xCAT-test/autotest/testcase/probe/detect_dhcpd @@ -1,5 +1,6 @@ start:detect_dhcpd_work description:To test if xcatprobe detect_dhcpd works. This case must run in xcat mn +label:others,dhcp cmd:if [ -d "/tmp/detect_dhcpd_work" ]; then mv /tmp/detect_dhcpd_work /tmp/detect_dhcpd_work.bak; fi; mkdir -p /tmp/detect_dhcpd_work cmd:makedhcp -n check:rc == 0 diff --git a/xCAT-test/autotest/testcase/prsync/cases0 b/xCAT-test/autotest/testcase/prsync/cases0 index 3d2120028..de920f149 100644 --- a/xCAT-test/autotest/testcase/prsync/cases0 +++ b/xCAT-test/autotest/testcase/prsync/cases0 @@ -1,5 +1,6 @@ start:prsync_h description: prsync -h +label:others,parallel_cmds os:Linux cmd:prsync -h check:rc==0 @@ -8,6 +9,7 @@ end start:prsync_v description: prsync -v +label:others,parallel_cmds os:Linux cmd:prsync -v check:rc==0 @@ -16,6 +18,7 @@ end start:prsync_dir_node description: run prsync to copy files in dir from MN to CN +label:others,parallel_cmds os:Linux cmd: mkdir -p /tmp/pscp check:rc==0 @@ -41,6 +44,7 @@ end start:prsync_file_node description: run prsync to copy file from MN to CN +label:others,parallel_cmds os:Linux cmd: echo "prsync-test" > prsync.test check:rc==0 diff --git a/xCAT-test/autotest/testcase/pscp/cases0 b/xCAT-test/autotest/testcase/pscp/cases0 index 2d1e02b1a..e7050691e 100644 --- a/xCAT-test/autotest/testcase/pscp/cases0 +++ b/xCAT-test/autotest/testcase/pscp/cases0 @@ -1,10 +1,12 @@ start:pscp_h +label:others,parallel_cmds cmd:pscp -h check:rc==0 check:output=~Usage end start:pscp_v +label:others,parallel_cmds cmd:pscp -v check:rc==0 check:output=~Version @@ -12,6 +14,7 @@ end #copy single file start:pscp_node +label:others,parallel_cmds cmd:echo "test" > /tmp/pscp.tmp check:rc==0 cmd:pscp /tmp/pscp.tmp $$CN:/tmp/ @@ -31,6 +34,7 @@ end #copy a directory start:pscp_r_node +label:others,parallel_cmds cmd: mkdir -p /tmp/pscp check:rc==0 cmd:echo "test" > /tmp/pscp/pscp.tmp @@ -55,6 +59,7 @@ end start:pscp_i_node +label:others,parallel_cmds cmd:cp /etc/hosts /etc/hosts.bak check:rc==0 cmd:a=`cat /etc/hosts |grep ' $$CN.'|awk '{print $1}'`;b=`cat /etc/resolv.conf |grep search|awk '{print $2}'`;echo "$a $$CN-eth0.$b $$CN-eth0" >> /etc/hosts diff --git a/xCAT-test/autotest/testcase/psh/cases0 b/xCAT-test/autotest/testcase/psh/cases0 index f1ad5ad39..a015f6333 100644 --- a/xCAT-test/autotest/testcase/psh/cases0 +++ b/xCAT-test/autotest/testcase/psh/cases0 @@ -1,5 +1,6 @@ start:psh_h description: psh -h and psh -help +label:others,parallel_cmds os:Linux cmd:psh -h check:rc==0 @@ -11,6 +12,7 @@ end start:psh_v description: psh -v +label:others,parallel_cmds os:Linux cmd:psh -v check:output=~Version @@ -19,6 +21,7 @@ end start:psh_node_cmd_linux description: psh CN 'pwd' in linux +label:others,parallel_cmds os:Linux cmd:psh $$CN 'pwd' check:rc==0 @@ -28,6 +31,7 @@ end start:psh_node_cmd_aix description: psh CN 'pwd' in AIX +label:others,parallel_cmds os:Aix cmd:psh $$CN 'pwd' check:rc==0 @@ -37,6 +41,7 @@ end start:psh_l description: psh -l user CN 'uptime' in linux +label:others,parallel_cmds os:Linux cmd:psh -l root $$CN 'uptime' check:rc==0 @@ -46,6 +51,7 @@ end start:psh_i description: psh -i interface CN 'uptime' in linux +label:others,parallel_cmds os:Linux cmd:cp /etc/hosts /etc/hostsBK check:rc==0 diff --git a/xCAT-test/autotest/testcase/pythonsupport/cases0 b/xCAT-test/autotest/testcase/pythonsupport/cases0 index 37c63b03b..38a0eb05d 100644 --- a/xCAT-test/autotest/testcase/pythonsupport/cases0 +++ b/xCAT-test/autotest/testcase/pythonsupport/cases0 @@ -1,5 +1,6 @@ start:set_up_env_for_support_openbmc_in_python description:this case is used to test environment setup for supporting openbmc in python +label:others,hctrl_openbmc os:Linux hcp:openbmc,kvm cmd:mkdir -p /tmp/set_up_env_for_support_openbmc_in_python diff --git a/xCAT-test/autotest/testcase/restapi/global/cases0 b/xCAT-test/autotest/testcase/restapi/global/cases0 index d19bf7ea6..c645170ec 100644 --- a/xCAT-test/autotest/testcase/restapi/global/cases0 +++ b/xCAT-test/autotest/testcase/restapi/global/cases0 @@ -1,5 +1,6 @@ start:globalconf_get description: globalconf_get +label:others,restapi cmd:restapitest -m GET -r /globalconf check:rc==200 cmdcheck:restapitest -o '{"clustersite":{"xcatdport":"3001"}}' -O == @@ -7,6 +8,7 @@ end start:globalconf_get_attr description: globalconf_get_attr +label:others,restapi cmd:restapitest -m GET -r /globalconf/attrs/xcatdport,xcatiport check:rc==200 cmdcheck:restapitest -o '{"clustersite":{"xcatdport":"3001"}}' -O == @@ -15,12 +17,14 @@ end start:globalconf_put description: globalconf_put +label:others,restapi cmd:restapitest -m PUT -r /globalconf/attrs/domain -d '{"domain":"cluster1.com"}' check:rc==200 end start:globalconf_put_checkresult description: globalconf_put_checkresult +label:others,restapi cmd:restapitest -m GET -r /globalconf/attrs/domain check:rc==200 cmdcheck:restapitest -o '{"clustersite":{"domain":"cluster1.com"}}' -O == @@ -28,12 +32,14 @@ end start:globalconf_delete description: globalconf_delete +label:others,restapi cmd:restapitest -m DELETE -r /globalconf/attrs/domain check:rc==200 end start:globalconf_delete_checkresult description: globalconf_delete_checkresult +label:others,restapi cmd:restapitest -m GET -r /globalconf/attrs/domain check:rc==200 cmdcheck:restapitest -o '{"clustersite":{"domain":"cluster1.com"}}' -O != diff --git a/xCAT-test/autotest/testcase/restapi/group/cases0 b/xCAT-test/autotest/testcase/restapi/group/cases0 index ea26e4d11..f6b3ae7b5 100644 --- a/xCAT-test/autotest/testcase/restapi/group/cases0 +++ b/xCAT-test/autotest/testcase/restapi/group/cases0 @@ -1,5 +1,6 @@ start:get_group_list description: get_group_list +label:others,restapi cmd:restapitest -m GET -r /groups check:rc==200 cmdcheck:restapitest -o '["all"]' -O == @@ -7,6 +8,7 @@ end start:get_group_all description: get_group_all +label:others,restapi cmd:restapitest -m GET -r /groups/all check:rc==200 cmdcheck:restapitest -o '{"all":{"members":"virtualcn2"}}' -O == @@ -14,12 +16,14 @@ end start:put_group_all description: put_group_all +label:others,restapi cmd:restapitest -m PUT -r /groups/all -d '{"mgt":"dfm","netboot":"yaboot"}' check:rc==200 end start:get_group_all_for_put description: get_group_all_for_put +label:others,restapi cmd:restapitest -m GET -r /groups/all check:rc==200 cmdcheck:restapitest -o '{"all":{"netboot":"yaboot"}}' -O == @@ -27,6 +31,7 @@ end start:get_group_all_attrs description: get_group_all_attrs +label:others,restapi cmd:restapitest -m GET -r /groups/all/attrs/mgt,netboot check:rc==200 cmdcheck:restapitest -o '{"all":{"netboot":"yaboot"}}' -O == diff --git a/xCAT-test/autotest/testcase/restapi/network/cases0 b/xCAT-test/autotest/testcase/restapi/network/cases0 index 2851f39b1..3a63bbf60 100644 --- a/xCAT-test/autotest/testcase/restapi/network/cases0 +++ b/xCAT-test/autotest/testcase/restapi/network/cases0 @@ -1,5 +1,6 @@ start:get_networks description: get_networks +label:others,restapi cmd:restapitest -m GET -r /networks check:rc==200 cmdcheck:restapitest -o '["network1"]' -O == @@ -7,12 +8,14 @@ end start:post_networks description: post_networks +label:others,restapi cmd:restapitest -m POST -r /networks check:rc==201 end start:get_networks_attr_for_post description: get_networks_attr_for_post +label:others,restapi cmd:restapitest -m GET -r /networks/network1 check:rc==200 cmdcheck:restapitest -o '{"network1":{"net":"10.1.0.0"}}' -O == @@ -20,12 +23,14 @@ end start:post_networks_attr description: post_networks_attr +label:others,restapi cmd:restapitest -m GET -r /networks/network1 -d '{"gateway":"10.1.0.1","mask":"255.255.0.0"}' check:rc==201 end start:get_networks_all_attr description: get_networks_all_attr +label:others,restapi cmd:restapitest -m GET -r /networks/network1 check:rc==200 cmdcheck:restapitest -o '{"network1":{"net":"10.1.0.0"}}' -O == @@ -33,6 +38,7 @@ end start:get_networks_attr description: get_networks_attr +label:others,restapi cmd:restapitest -m GET -r /networks/network1/attrs/net,mask check:rc==200 cmdcheck:restapitest -o '{"network1":{"net":"10.1.0.0"}}' -O == @@ -40,12 +46,14 @@ end start:put_networks_attr description: put_networks_attr +label:others,restapi cmd:restapitest -m PUT -r /networks/network1 -d '{"mgtifname":"eth0","net":"10.1.0.0"}' check:rc==200 end start:get_networks_attr_for_put description: get_networks_attr_for_put +label:others,restapi cmd:restapitest -m GET -r /networks/network1 check:rc==200 cmdcheck:restapitest -o '{"network1":{"net":"10.1.0.0"}}' -O == @@ -53,12 +61,14 @@ end start:delete_networks_attr_for_put description: delete_networks_attr_for_put +label:others,restapi cmd:restapitest -m DELETE -r /networks/network1 check:rc==200 end start:get_networks_for_delete description: get_networks_for_delete +label:others,restapi cmd:restapitest -m GET -r /networks check:rc==200 cmdcheck:restapitest -o '["network1"]' -O != diff --git a/xCAT-test/autotest/testcase/restapi/node/cases0 b/xCAT-test/autotest/testcase/restapi/node/cases0 index ba33f5831..90999064e 100644 --- a/xCAT-test/autotest/testcase/restapi/node/cases0 +++ b/xCAT-test/autotest/testcase/restapi/node/cases0 @@ -1,11 +1,13 @@ start:create_node_rest description: create a node with REST API +label:others,restapi cmd:restapitest -m POST -r /nodes/restnode -d '{"groups":"all","mgt":"dfm","netboot":"yaboot"}' -u $$username -p $$password check:rc==201 end start:create_node_rest2 description: create a node with REST API failure +label:others,restapi cmd:restapitest -m POST -r /nodes/restnode -d '{"groups":"all","mgt":"dfm","netboot":"yaboot"}' -u $$username -p $$password check:rc==147 check:output=~"errorcode":"1" @@ -13,6 +15,7 @@ end start:get_nodes_rest description: get all nodes with REST API +label:others,restapi cmd:restapitest -m GET -r /nodes -u $$username -p $$password check:rc==200 check:output=~"restnode" @@ -20,6 +23,7 @@ end start:get_node_rest description: get single node with REST API +label:others,restapi cmd:restapitest -m GET -r /nodes/restnode -u $$username -p $$password check:rc==200 check:output=~"restnode" @@ -27,12 +31,14 @@ end start:node_delete_rest description: delete node with REST API +label:others,restapi cmd:restapitest -m DELETE -r /nodes/restnode -u $$username -p $$password check:rc==200 end start:get_nodes_rest2 description: get all nodes with REST API +label:others,restapi cmd:restapitest -m GET -r /nodes -u $$username -p $$password check:rc==200 check:output!~"restnode" @@ -40,6 +46,7 @@ end start:get_node_rest2 description: get single node with REST API +label:others,restapi cmd:restapitest -m GET -r /nodes/restnode -u $$username -p $$password check:rc==147 check:output=~"errorcode":"1" @@ -47,48 +54,56 @@ end start:create_node_token_rest description: create a node with REST API using authentication token +label:others,restapi cmd:restapitest -m POST -r /nodes/restnode -d '{"groups":"all","mgt":"dfm","netboot":"yaboot"}' -u $$username -p $$password -t check:rc==201 end start:node_makehosts_rest description: makehosts for node with REST API +label:others,restapi cmd:restapitest -m POST -r /nodes/restnode/host -u $$username -p $$password check:rc==201 end start:node_makedns_rest description: makehosts for node with REST API +label:others,restapi cmd:restapitest -m POST -r /nodes/restnode/dns -u $$username -p $$password check:rc==201 end start:node_delete_dns_rest description: delete dns for node with REST API +label:others,restapi cmd:restapitest -m DELETE -r /nodes/restnode/dns -u $$username -p $$password check:rc==200 end start:node_change_attr_rest description: change node attribute with REST API +label:others,restapi cmd:restapitest -m PUT -r /nodes/restnode -d '{"mac":"00:1a:64:54:14:80"}' -u $$username -p $$password check:rc==200 end start:node_makedhcp_rest description: makedhcp for node with REST API +label:others,restapi cmd:restapitest -m POST -r /nodes/restnode/dhcp -u $$username -p $$password check:rc==201 end start:node_delete_dhcp_rest description: node_delete_dhcp +label:others,restapi cmd:restapitest -m DELETE -r /nodes/restnode/dhcp -u $$username -p $$password check:rc==200 end start:node_state_rest description: get node state with REST API +label:others,restapi cmd:restapitest -m GET -r /nodes/$$CN/nodestat -u $$username -p $$password check:rc==200 check:output=~"$$CN" @@ -97,6 +112,7 @@ end start:node_state_token_rest description: get node state with REST API using authentication token +label:others,restapi cmd:restapitest -m GET -r /nodes/$$CN/nodestat -u $$username -p $$password -t check:rc==200 check:output=~"$$CN" @@ -105,6 +121,7 @@ end start:get_node_rest_error description: get single node with REST API with invalid user or password +label:others,restapi cmd:restapitest -m GET -r /nodes/restnode -u abc -p xyz check:rc==145 check:output=~"error":"Authentication failure" diff --git a/xCAT-test/autotest/testcase/restapi/node/cases1 b/xCAT-test/autotest/testcase/restapi/node/cases1 index db848f1f2..175d86567 100644 --- a/xCAT-test/autotest/testcase/restapi/node/cases1 +++ b/xCAT-test/autotest/testcase/restapi/node/cases1 @@ -1,5 +1,6 @@ start:inventory_node_rest description: get OpenBMC node inventory with REST API +label:others,restapi hcp:openbmc cmd:restapitest -m GET -r /nodes/$$CN/inventory -u $$username -p $$password check:rc==200 @@ -8,6 +9,7 @@ end start:inventory_node_rest2 description: get IPMI node inventory with REST API +label:others,restapi hcp:ipmi cmd:restapitest -m GET -r /nodes/$$CN/inventory -u $$username -p $$password check:rc==200 @@ -16,6 +18,7 @@ end start:vitals_node_rest description: get OpenBMC node vitals with REST API +label:others,restapi hcp:openbmc cmd:restapitest -m GET -r /nodes/$$CN/vitals -u $$username -p $$password check:rc==200 @@ -24,6 +27,7 @@ end start:vitals_node_rest2 description: get IPMI node vitals with REST API +label:others,restapi hcp:ipmi cmd:restapitest -m GET -r /nodes/$$CN/vitals -u $$username -p $$password check:rc==200 @@ -32,6 +36,7 @@ end start:eventlog_node_rest description: get OpenBMC node inventory with REST API +label:others,restapi hcp:openbmc cmd:restapitest -m GET -r /nodes/$$CN/eventlog -u $$username -p $$password check:rc==200 @@ -40,6 +45,7 @@ end start:eventlog_node_rest2 description: get IPMI node eventlog with REST API +label:others,restapi hcp:ipmi cmd:restapitest -m GET -r /nodes/$$CN/eventlog -u $$username -p $$password check:rc==200 @@ -48,6 +54,7 @@ end start:beacon_node_rest description: get OpenBMC node beacon with REST API +label:others,restapi hcp:openbmc cmd:restapitest -m GET -r /nodes/$$CN/beacon -u $$username -p $$password check:rc==200 @@ -57,6 +64,7 @@ end start:beacon_set_node_rest description: set OpenBMC node beacon with REST API +label:others,restapi hcp:openbmc cmd:restapitest -m PUT -r /nodes/$$CN/beacon -d '{"action":"on"}' -u $$username -p $$password check:rc==200 @@ -64,6 +72,7 @@ end start:beacon_set_node_rest2 description: set IPMI node beacon with REST API +label:others,restapi hcp:ipmi cmd:restapitest -m PUT -r /nodes/$$CN/beacon -d '{"action":"on"}' -u $$username -p $$password check:rc==200 diff --git a/xCAT-test/autotest/testcase/restapi/osimage/cases0 b/xCAT-test/autotest/testcase/restapi/osimage/cases0 index 3335577b4..70a91c1e3 100644 --- a/xCAT-test/autotest/testcase/restapi/osimage/cases0 +++ b/xCAT-test/autotest/testcase/restapi/osimage/cases0 @@ -1,5 +1,6 @@ start:get_images_all description: get_images_all +label:others,restapi cmd:restapitest -m GET -r /osimages check:rc==200 cmdcheck:restapitest -o '["rhels6.5-x86_64-install-compute"]' -O == @@ -7,12 +8,14 @@ end start:post_images description: post_images +label:others,restapi cmd:restapitest -m POST -r /osimages -d '{"iso":"/iso/RHEL6.5-20131111.0-Server-x86_64-DVD1.iso"}' check:rc==201 end start:get_images description: get_images +label:others,restapi cmd:restapitest -m GET -r /osimages/rhels6.5-x86_64-install-compute check:rc==200 cmdcheck:restapitest -o '{"rhels6.5-x86_64-install-compute":{"provmethod":"install"}}' -O == @@ -20,12 +23,14 @@ end start:put_images_attr description: put_images_attr +label:others,restapi cmd:restapitest -m PUT -r /osimages/rhels6.5-x86_64-install-hpc -d '{"osvers":"sles11.3","osarch":"x86_64"}' check:rc==200 end start:get_images_for_put description: get_images_for_put +label:others,restapi cmd:restapitest -m GET -r /osimages/rhels6.5-x86_64-install-hpc check:rc==200 cmdcheck:restapitest -o '{"rhels6.5-x86_64-install-hpc":{"osvers":"sles11.3"}}' -O == @@ -33,12 +38,14 @@ end start:create_images description: create_images +label:others,restapi cmd:restapitest -m POST -r /osimages/rhels6.5-x86_64-install-hpc -d '{"profile":"compute","osarch":"x86_64"}' check:rc==200 end start:get_images_for_post description: get_images_for_post +label:others,restapi cmd:restapitest -m GET -r /osimages/rhels6.5-x86_64-install-hpc check:rc==200 cmdcheck:restapitest -o '{"rhels6.5-x86_64-install-hpc":{"profile":"compute"}}' -O == @@ -46,12 +53,14 @@ end start:delete_images description: delete_images +label:others,restapi cmd:restapitest -m DELETE -r /osimages/rhels6.5-x86_64-install-hpc check:rc==200 end start:get_images_all_for_delete description: get_images_all_for_delete +label:others,restapi cmd:restapitest -m GET -r /osimages check:rc==200 cmdcheck:restapitest -o '["rhels6.5-x86_64-install-hpc"]' -O != @@ -59,6 +68,7 @@ end start:get_images_attr description: get_images_attr +label:others,restapi cmd:restapitest -m GET -r /osimages/rhels6.5-x86_64-install-compute/attrs/imagetype,osarch,osname,provmethod check:rc==200 cmdcheck:restapitest -o '{"sles11.2-ppc64-install-compute":{osarch":"x86_64"}}' -O == @@ -66,24 +76,28 @@ end start:post_images_attr_genimage description: post_images_attr_genimage +label:others,restapi cmd:restapitest -m POST -r /osimages/rhels6.5-x86_64-statelite-service/instance -d '{"action":"gen"}' check:rc==200 end start:post_images_attr_packimage description: post_images_attr +label:others,restapi cmd:restapitest -m POST -r /osimages/rhels6.5-x86_64-statelite-service/instance -d '{"action":"pack"}' check:rc==200 end start:post_images_attr_exportimage description: post_images_attr +label:others,restapi cmd:restapitest -m POST -r /osimages/rhels6.5-x86_64-statelite-service/instance -d '{"action":"export"}' check:rc==200 end start:delete_images description: delete_images +label:others,restapi cmd:restapitest -m DELETE -r /osimages/rhels6.5-x86_64-statelite-service/instance check:rc==200 end diff --git a/xCAT-test/autotest/testcase/restapi/policy/cases0 b/xCAT-test/autotest/testcase/restapi/policy/cases0 index 73ae1b306..f73fcb7d4 100644 --- a/xCAT-test/autotest/testcase/restapi/policy/cases0 +++ b/xCAT-test/autotest/testcase/restapi/policy/cases0 @@ -1,5 +1,6 @@ start:get_policy_all description: get_policy_all +label:others,restapi cmd:restapitest -m GET -r /policy check:rc==200 cmdcheck:restapitest -o '["1"]' -O == @@ -7,6 +8,7 @@ end start:get_policy_attr description: get_policy_attr +label:others,restapi cmd:restapitest -m GET -r /policy/1 check:rc==200 cmdcheck:restapitest -o '{"1":{"name":"root"}}' -O == @@ -14,12 +16,14 @@ end start:put_policy_attr description: put_policy_attr +label:others,restapi cmd:restapitest -m PUT -r /policy/1 -d '{"name":"root1"}' check:rc==200 end start:get_policy_attr_for_put description: get_policy_attr_for_put +label:others,restapi cmd:restapitest -m GET -r /policy/1 check:rc==200 cmdcheck:restapitest -o '{"1":{"name":"root1"}}' -O == @@ -27,18 +31,21 @@ end start:put_policy_attr_changeback description: put_policy_attr_changeback +label:others,restapi cmd:restapitest -m PUT -r /policy/1 -d '{"name":"root"}' check:rc==200 end start:post_policy description: post_policy +label:others,restapi cmd:restapitest -m POST -r /policy/11 -d '{"name":"root1",,"commands":"rpower"}' check:rc==201 end start:get_policy_attr_for_post description: get_policy_attr_for_post +label:others,restapi cmd:restapitest -m GET -r /policy/11 check:rc==200 cmdcheck:restapitest -o '{"11":{"name":"root1"}}' -O == @@ -46,6 +53,7 @@ end start:delete_policy description: delete_policy +label:others,restapi cmd:restapitest -m DELETE -r /policy/11 check:rc==200 cmdcheck:restapitest -o '["11"]' -O != @@ -53,6 +61,7 @@ end start:get_policy_attrs description: get_policy_attrs +label:others,restapi cmd:restapitest -m GET -r /policy/1/attrs/name,rule check:rc==200 cmdcheck:restapitest -o '{"1":{"name":"root"}}' -O == diff --git a/xCAT-test/autotest/testcase/restapi/service/cases0 b/xCAT-test/autotest/testcase/restapi/service/cases0 index e9569fd69..88c491b28 100644 --- a/xCAT-test/autotest/testcase/restapi/service/cases0 +++ b/xCAT-test/autotest/testcase/restapi/service/cases0 @@ -1,29 +1,34 @@ start:post_dns description: post_dns +label:others,restapi cmd:restapitest -m POST -r /services/dns check:rc==201 end start:post_dhcp description: post_dhcp +label:others,restapi cmd:restapitest -m POST -r /services/dns check:rc==201 end start:post_host description: post_host +label:others,restapi cmd:restapitest -m POST -r /services/host check:rc==201 end start:post_host description: post_host +label:others,restapi cmd:restapitest -m POST -r /services/host check:rc==201 end start:get_slpnodes description: get_slpnodes +label:others,restapi cmd:restapitest -m GET -r /services/slpnodes check:rc==200 cmdcheck:restapitest -o '{"ngpcmm01":{"mpa":"ngpcmm01"}}' -O == @@ -31,6 +36,7 @@ end start:get_slpnodes_withst description: get_slpnodes_withst +label:others,restapi cmd:restapitest -m GET -r /services/slpnodes/FSP check:rc==200 cmdcheck:restapitest -o '{"Server--SNY014BG27A01K":{"mpa":"Server--SNY014BG27A01K"}}' -O == diff --git a/xCAT-test/autotest/testcase/restapi/table/cases0 b/xCAT-test/autotest/testcase/restapi/table/cases0 index 6a9ed807b..c8b710904 100644 --- a/xCAT-test/autotest/testcase/restapi/table/cases0 +++ b/xCAT-test/autotest/testcase/restapi/table/cases0 @@ -1,5 +1,6 @@ start:get_networks_table_rest description: get all networks table entries with REST API +label:others,restapi cmd:restapitest -m GET -r /tables/networks/rows -u $$username -p $$password check:rc==200 check:output=~netname @@ -7,6 +8,7 @@ end start:get_network_table_rest description: get all entries from invalid table name with REST API +label:others,restapi cmd:restapitest -m GET -r /tables/network/rows -u $$username -p $$password check:rc==147 check:output=~No such table @@ -14,6 +16,7 @@ end start:get_network_table_with_attr_selection_rest description: get all attribute matching networks table entries with REST API +label:others,restapi cmd:restapitest -m GET -r /tables/networks/rows/mask=255.0.0.0 -u $$username -p $$password check:rc==200 check:output=~"mask":"255.0.0.0" @@ -21,6 +24,7 @@ end start:get_network_table_with_attr_selection_error_rest description: get all attribute matching networks table entries with REST API, invalid attribute name +label:others,restapi cmd:restapitest -m GET -r /tables/networks/rows/abc=255.0.0.0 -u $$username -p $$password check:rc==147 check:output=~No table rows @@ -28,6 +32,7 @@ end start:get_network_table_with_attr_selection_error_rest2 description: get all attribute matching networks table entries with REST API, no match +label:others,restapi cmd:restapitest -m GET -r /tables/networks/rows/mask=a.b.c.d -u $$username -p $$password check:rc==147 check:output=~No table rows @@ -35,6 +40,7 @@ end start:get_network_table_with_attr_selection_rest2 description: get attribute matching networks table attributes with REST API +label:others,restapi cmd:restapitest -m GET -r /tables/networks/rows/mask=255.0.0.0/gateway -u $$username -p $$password check:rc==200 check:output=~"gateway":" @@ -42,6 +48,7 @@ end start:set_network_table_attr_with_attr_selection_rest2 description: set attribute for network table for attr seleection with REST API +label:others,restapi cmd:restapitest -m PUT -r /tables/networks/rows/mask=255.0.0.0 -d '{"comments":"REST API TEST"}' -u $$username -p $$password check:rc==200 cmd:lsdef -l -t network @@ -50,6 +57,7 @@ end start:delete_network_rest description: create a network and delele network with REST API +label:others,restapi cmd: restapitest -m POST -r /networks/network_rest -d '{"gateway":"10.1.0.1","mask":"255.255.0.0","net":"199.168.0.0"}' -u $$username -p $$password cmd: restapitest -m DELETE -r /tables/networks/rows/net=199.168.0.0 -u $$username -p $$password check:rc==200 diff --git a/xCAT-test/autotest/testcase/rmkit/case0 b/xCAT-test/autotest/testcase/rmkit/case0 index b0683ed37..9cbad4994 100644 --- a/xCAT-test/autotest/testcase/rmkit/case0 +++ b/xCAT-test/autotest/testcase/rmkit/case0 @@ -1,4 +1,5 @@ start:rmkit_v +label:others,KIT os:Linux cmd:rmkit -v check:rc==0 @@ -13,6 +14,7 @@ check:output=~compatible_frameworks end start:rmkit_h +label:others,KIT os:Linux cmd:rmkit -h check:rc==0 @@ -23,6 +25,7 @@ check:output=~ Usage end start:rmkit_t_no +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/rmkit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/rmkit;buildkit create mykits @@ -48,6 +51,7 @@ cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/rmkit/mykits end start:rmkit_t_yes +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/rmkit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/rmkit;buildkit create mykits @@ -84,6 +88,7 @@ check:rc==0 end start:rmkit_f +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/rmkit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/rmkit;buildkit create mykits @@ -113,6 +118,7 @@ end start:rmkit_V +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/rmkit/mykits cmd:cd /opt/xcat/share/xcat/tools/autotest/testcase/rmkit;buildkit create mykits diff --git a/xCAT-test/autotest/testcase/rmkitcomp/case0 b/xCAT-test/autotest/testcase/rmkitcomp/case0 index 070efb702..4933bb7ce 100644 --- a/xCAT-test/autotest/testcase/rmkitcomp/case0 +++ b/xCAT-test/autotest/testcase/rmkitcomp/case0 @@ -1,4 +1,5 @@ start:rmkitcomp_v +label:others,KIT os:Linux cmd:rmkitcomp -v check:rc==0 @@ -13,6 +14,7 @@ check:output=~compatible_frameworks end start:rmkitcomp_h +label:others,KIT os:Linux cmd:rmkitcomp -h check:rc==0 @@ -23,6 +25,7 @@ check:output=~ Usage end start:rmkitcomp_noscripts +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/rmkitcomp/$$KITDATA cmd:mkdir -p /opt/xcat/share/xcat/tools/autotest/testcase/rmkitcomp/$$KITDATA @@ -59,6 +62,7 @@ check:rc==0 end start:rmkitcomp_f +label:others,KIT os:Linux cmd:rm -rf /opt/xcat/share/xcat/tools/autotest/testcase/rmkitcomp/$$KITDATA cmd:mkdir -p /opt/xcat/share/xcat/tools/autotest/testcase/rmkitcomp/$$KITDATA diff --git a/xCAT-test/autotest/testcase/rmvm/cases0 b/xCAT-test/autotest/testcase/rmvm/cases0 index 6f1f63f72..781947921 100644 --- a/xCAT-test/autotest/testcase/rmvm/cases0 +++ b/xCAT-test/autotest/testcase/rmvm/cases0 @@ -1,4 +1,5 @@ start:rmvm_noderange +label:others,hctrl_hmc hcp:hmc cmd:mkdef -t node -o testnode1,testnode2 mgt=hmc groups=all cmd:mkvm testnode1,testnode2 -i $$MaxLparID -l $$CN diff --git a/xCAT-test/autotest/testcase/rscan/cases0 b/xCAT-test/autotest/testcase/rscan/cases0 index 96484408e..636920a00 100644 --- a/xCAT-test/autotest/testcase/rscan/cases0 +++ b/xCAT-test/autotest/testcase/rscan/cases0 @@ -1,4 +1,5 @@ start:rscan_noderange +label:others,hctrl_hmc hcp:hmc cmd:rscan __GETNODEATTR($$CN,hcp)__ check:rc==0 @@ -7,18 +8,21 @@ check:output=~cec\s+[\w|-]+\s+\w{4}-\w{3}\s+\w{7} check:output=~hmc\s+__GETNODEATTR($$CN,hcp)__\s+\w{4}-\w{3}\s+\w{7} end start:rscan_x +label:others,hctrl_hmc hcp:hmc cmd:rscan __GETNODEATTR($$CN,hcp)__ -x check:rc==0 check:output=~[\w-]+ end start:rscan_z +label:others,hctrl_hmc hcp:hmc cmd:rscan __GETNODEATTR($$CN,hcp)__ -z check:rc==0 check:output=~hcp=__GETNODEATTR($$CN,hcp)__ end start:rscan_w +label:others,hctrl_hmc hcp:hmc cmd:lsdef -t node -l $$CN -z > /tmp/$$CN.stanza check:rc==0 @@ -39,6 +43,7 @@ cmd:cat /tmp/$$CN.stanza | mkdef -z cmd:rm -f /tmp/$$CN.stanza end start:rscan_x_w +label:others,hctrl_hmc hcp:hmc cmd:lsdef -t node -l $$CN -z > /tmp/$$CN.stanza check:rc==0 @@ -57,6 +62,7 @@ cmd:cat /tmp/$$CN.stanza | mkdef -z cmd:rm -f /tmp/$$CN.stanza end start:rscan_z_w +label:others,hctrl_hmc hcp:hmc cmd:lsdef -t node -l $$CN -z > /tmp/$$CN.stanza check:rc==0 diff --git a/xCAT-test/autotest/testcase/runcmdinstaller/cases0 b/xCAT-test/autotest/testcase/runcmdinstaller/cases0 index 22b3e23b1..8adefa9b1 100644 --- a/xCAT-test/autotest/testcase/runcmdinstaller/cases0 +++ b/xCAT-test/autotest/testcase/runcmdinstaller/cases0 @@ -20,6 +20,7 @@ cmd:chtab key=xcatdebugmode site.value="0" end start:get_xcat_postscripts_loginfo description:get xcat post scripts loginfo +label:others,postscripts cmd:chtab key=xcatdebugmode site.value="1" check:rc==0 cmd:rinstall $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute @@ -34,6 +35,7 @@ cmd:chtab key=xcatdebugmode site.value="0" end start:updatenode_postscripts_loginfo description:get updatenode postsripts log info +label:others,postscripts cmd:chtab key=xcatdebugmode site.value="1" check:rc==0 cmd:chdef $$CN -p postscripts=setupntp diff --git a/xCAT-test/autotest/testcase/signal/cases0 b/xCAT-test/autotest/testcase/signal/cases0 index efd959a5e..26112a181 100644 --- a/xCAT-test/autotest/testcase/signal/cases0 +++ b/xCAT-test/autotest/testcase/signal/cases0 @@ -1,4 +1,5 @@ start:genimage_sigint +label:others cmd:/opt/xcat/share/xcat/tools/autotest/testcase/signal/test-sigint-genimage.sh check:rc==0 end diff --git a/xCAT-test/autotest/testcase/simulator/clear_simulator b/xCAT-test/autotest/testcase/simulator/clear_simulator index 03c442fd9..e16821451 100644 --- a/xCAT-test/autotest/testcase/simulator/clear_simulator +++ b/xCAT-test/autotest/testcase/simulator/clear_simulator @@ -1,23 +1,27 @@ start:clear_openbmc_simulator description:clear evironment +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -c $$MN $$CN check:rc==0 end start:clear_openbmc_simulator_multiple_100 description:clear evironment that simulate 100 OpenBMCs +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -c $$MN $$CN $$bmcusername $$bmcpasswd 100 check:rc==0 end start:clear_openbmc_simulator_multiple_1000 description:clear evironment that simulate 1000 OpenBMCs +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -c $$MN $$CN $$bmcusername $$bmcpasswd 1000 check:rc==0 end start:clear_openbmc_simulator_multiple_5000 description:clear evironment that simulate 5000 OpenBMCs +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -c $$MN $$CN $$bmcusername $$bmcpasswd 5000 check:rc==0 end diff --git a/xCAT-test/autotest/testcase/simulator/setup_simulator b/xCAT-test/autotest/testcase/simulator/setup_simulator index 012b60c08..ff61b0f94 100644 --- a/xCAT-test/autotest/testcase/simulator/setup_simulator +++ b/xCAT-test/autotest/testcase/simulator/setup_simulator @@ -1,47 +1,55 @@ start:setup_openbmc_simulator description:install dependent packaages, setup and start openbmc simulator +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 0 check:rc==0 end start:setup_openbmc_simulator_multiple_100 description:install dependent packaages, setup and start 100 openbmc simulator +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 100 check:rc==0 end start:setup_openbmc_simulator_multiple_1000 description:install dependent packaages, setup and start 1000 openbmc simulator +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 1000 check:rc==0 end start:setup_openbmc_simulator_multiple_5000 description:install dependent packaages, setup and start 5000 openbmc simulator +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 5000 check:rc==0 end start:setup_openbmc_simulator_multiple_1000_delay_random_1m description:install dependent packaages, setup and start 1000 openbmc simulator with random that the most delay time 1 minute +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 1000 random 1m check:rc==0 end start:setup_openbmc_simulator_multiple_5000_delay_random_1m description:install dependent packaages, setup and start 5000 openbmc simulator with random that the most delay time 1 minute +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 5000 random 1m check:rc==0 end start:setup_openbmc_simulator_multiple_1000_delay_random_1m30 description:install dependent packaages, setup and start 1000 openbmc simulator with random that the most delay time 1m30s +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 1000 random 1m30 check:rc==0 end start:setup_openbmc_simulator_multiple_1000_delay_random_30 description:install dependent packaages, setup and start 1000 openbmc simulator with random that the most delay time 30s +label:others,hctrl_openbmc cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/config_simulator.sh -s $$MN $$CN $$bmcusername $$bmcpasswd 1000 random 0m30 check:rc==0 end diff --git a/xCAT-test/autotest/testcase/sinv/cases0 b/xCAT-test/autotest/testcase/sinv/cases0 index 9916fb479..84e0522bb 100644 --- a/xCAT-test/autotest/testcase/sinv/cases0 +++ b/xCAT-test/autotest/testcase/sinv/cases0 @@ -1,4 +1,5 @@ start:sinv_c_p_t_r_o +label:others,parallel_cmds cmd:xdsh $$CN rpm -qa | xdshbak > /tmp/sinv.template check:rc==0 cmd:sinv $$CN -c "xdsh $$CN rpm -qa" -p /tmp/sinv.template -t 2 -r -o /tmp/sinv.output @@ -8,6 +9,7 @@ check:output=~$$CN cmd:rm -f /tmp/sinv.template /tmp/sinv.output end start:sinv_c_s_p_t_o +label:others,parallel_cmds cmd:sinv $$CN -c "xdsh $$CN rpm -qa" -s $$CN -p /tmp/sinv.template -t 2 -o /tmp/sinv.output check:rc==0 cmd:cat /tmp/sinv.output diff --git a/xCAT-test/autotest/testcase/snpool/cfg_wrong_cn_in_sn_pool_tftp_sync_mode b/xCAT-test/autotest/testcase/snpool/cfg_wrong_cn_in_sn_pool_tftp_sync_mode index 90344fd49..9dc4543b5 100644 --- a/xCAT-test/autotest/testcase/snpool/cfg_wrong_cn_in_sn_pool_tftp_sync_mode +++ b/xCAT-test/autotest/testcase/snpool/cfg_wrong_cn_in_sn_pool_tftp_sync_mode @@ -1,5 +1,6 @@ start:cfg_wrong_cn_in_sn_pool_tftp_sync_mode description:The test case is intend to test the error handling of the service node pool when a compute has misconfigured node definition +label:others,invoke_provision,sn_pool cmd:fdisk -l cmd:df -T #cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__ diff --git a/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode b/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode index 797c6b44f..f56e03bfe 100644 --- a/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode +++ b/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode @@ -1,5 +1,6 @@ start:not_set_xcatmaster_in_sn_pool_tftp_mount_mode description: this case is to test when compute nodes' xcatmaster is not set in service node pool environment,compute node's provision files are correctly set after nodeset. +label:others,invoke_provision,sn_pool cmd:fdisk -l cmd:df -T #cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__ diff --git a/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult b/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult index 2f6c1c524..51da0667e 100644 --- a/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult +++ b/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult @@ -1,5 +1,6 @@ start:not_set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult description: this case is to check the configuration files after nodeset for case not_set_xcatmaster_in_sn_pool_tftp_mount_mode +label:others,invoke_provision,sn_pool #create a test compute node, don't set it's xcatmaster, set it's service node as SN and CN cmd:mkdef -t node -o compute1 groups=compute ip=10.0.0.199 mac=4a:c8:f7:de:d0:09 profile=compute os=__GETNODEATTR($$CN,os)__ arch=__GETNODEATTR($$CN,arch)__ netboot=__GETNODEATTR($$CN,netboot)__ diff --git a/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_sync_mode b/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_sync_mode index 805f33e21..9cfb9e169 100644 --- a/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_sync_mode +++ b/xCAT-test/autotest/testcase/snpool/not_set_xcatmaster_in_sn_pool_tftp_sync_mode @@ -1,5 +1,6 @@ start:not_set_xcatmaster_in_sn_pool_tftp_sync_mode description: this case is to test when compute nodes' xcatmaster is not set in service node pool environment, compute node's provision files are correctly set after nodeset. +label:others,invoke_provision,sn_pool cmd:fdisk -l cmd:df -T #cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__ diff --git a/xCAT-test/autotest/testcase/snpool/set_disjointdhcps_in_sn_pool_tftp_sync_mode b/xCAT-test/autotest/testcase/snpool/set_disjointdhcps_in_sn_pool_tftp_sync_mode index 308c908b0..533a68a7a 100644 --- a/xCAT-test/autotest/testcase/snpool/set_disjointdhcps_in_sn_pool_tftp_sync_mode +++ b/xCAT-test/autotest/testcase/snpool/set_disjointdhcps_in_sn_pool_tftp_sync_mode @@ -1,5 +1,6 @@ start:set_disjointdhcps_in_sn_pool_tftp_sync_mode description: Verify the disjointdhcps feature when petitboot is used for OS loader. +label:others,invoke_provision,sn_pool,dhcp cmd:rmdef testnode1 cmd:rm -f /tftpboot/petitboot/testnode1 cmd:mkdef -t node -o testnode1 arch=ppc64le cons=bmc groups=ipmi ip=10.1.1.200 mac=e6:d4:d2:3a:ad:06 mgt=ipmi profile=compute os=rhels7.99 diff --git a/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode b/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode index b7a6d77c6..fec54758b 100644 --- a/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode +++ b/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode @@ -1,5 +1,6 @@ start:set_xcatmaster_in_sn_pool_tftp_mount_mode description: this case is to test when compute nodes' xcatmaster is set in service node pool environment,compute node's provision files are correctly set after nodeset. +label:others,invoke_provision,sn_pool cmd:fdisk -l cmd:df -T #cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__ diff --git a/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult b/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult index 75079452e..69ef75fae 100644 --- a/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult +++ b/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult @@ -1,5 +1,6 @@ start:set_xcatmaster_in_sn_pool_tftp_mount_mode_checkresult description: this case is to check the configuration files after nodeset for case set_xcatmaster_in_sn_pool_tftp_mount_mode +label:others,invoke_provision,sn_pool #create a test compute node, set it's xcatmaster as SN, set it's service node as SN and CN cmd:mkdef -t node -o compute1 groups=compute ip=10.0.0.199 mac=4a:c8:f7:de:d0:09 profile=compute os=__GETNODEATTR($$CN,os)__ arch=__GETNODEATTR($$CN,arch)__ netboot=__GETNODEATTR($$CN,netboot)__ diff --git a/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_sync_mode b/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_sync_mode index 204826de1..a09faa03a 100644 --- a/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_sync_mode +++ b/xCAT-test/autotest/testcase/snpool/set_xcatmaster_in_sn_pool_tftp_sync_mode @@ -1,5 +1,6 @@ start:set_xcatmaster_in_sn_pool_tftp_sync_mode description: this case is to test when compute nodes' xcatmaster is set in service node pool environment,compute node's provision files are correctly set after nodeset. +label:others,invoke_provision,sn_pool cmd:fdisk -l cmd:df -T #cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__ diff --git a/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_mount_mode b/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_mount_mode index 5a2c2520f..0441e3e9c 100644 --- a/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_mount_mode +++ b/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_mount_mode @@ -1,5 +1,6 @@ start:setup_sn_pool_tftp_mount_mode description: this case is to test when sharedtftp=1 and installloc=/install are set on mn, after all service nodes are installed, /tftpboot and /install directory on all service nodes are mounted.Since test framework only support 1 sn and 1 cn parameter. This case will install CN as another service node. +label:others,invoke_provision,sn_pool cmd:fdisk -l cmd:df -T #cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__ diff --git a/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_sync_mode b/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_sync_mode index 3f088945f..7030f3f79 100644 --- a/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_sync_mode +++ b/xCAT-test/autotest/testcase/snpool/setup_sn_pool_tftp_sync_mode @@ -1,5 +1,6 @@ start:setup_sn_pool_tftp_sync_mode description: this case is to test when sharedtftp=0 and installloc=/install are not set on mn, after all service nodes are installed, /tftpboot and /install directory on all service nodes are separated and need to be rsynced. Since test framework only support 1 sn and 1 cn parameter. This case will install CN as another service node. +label:others,invoke_provision,sn_pool cmd:fdisk -l cmd:df -T #cmd:XCAT_DATABASE=$$XCAT_DATABASE /opt/xcat/share/xcat/tools/autotest/testcase/installation/pre_deploy_sn __GETNODEATTR($$SN,os)__ __GETNODEATTR($$SN,arch)__ diff --git a/xCAT-test/autotest/testcase/switchdiscover/cases0 b/xCAT-test/autotest/testcase/switchdiscover/cases0 index 1009f74b3..b1a35926c 100644 --- a/xCAT-test/autotest/testcase/switchdiscover/cases0 +++ b/xCAT-test/autotest/testcase/switchdiscover/cases0 @@ -1,4 +1,5 @@ start:switchdiscover_h +label:others,discovery,Swtich os:Linux decription:help cmd:switchdiscover -h @@ -6,12 +7,14 @@ check:rc==0 check:output=~Usage end start:switchdiscover_range_default +label:others,discovery,Swtich cmd:switchdiscover --range $$range check:rc==0 check:output=~Discovering switches using nmap check:output=~switch end start:switchdiscover_range_default_w +label:others,discovery,Swtich cmd:lsdef -l switch -z >/tmp/switch.standa cmd:rmdef switch cmd:switchdiscover --range $$range -w @@ -29,12 +32,14 @@ cmd:rm -rf /tmp/switch.standa check:rc==0 end start:switchdiscover_range_s +label:others,discovery,Swtich cmd:switchdiscover --range $$range -s nmap check:rc==0 check:output=~Discovering switches using nmap check:output=~switch end start:switchdiscover_range_r +label:others,discovery,Swtich cmd:switchdiscover --range $$range -r check:rc==0 check:output=~Discovering switches using nmap @@ -47,6 +52,7 @@ check:output=~/usr/bin/nmap -s(n|P) -oX - $$range cmd:rm -rf switchdiscover_range_r.log end start:switchdiscover_range_x +label:others,discovery,Swtich cmd:switchdiscover --range $$range -x check:rc==0 check:output=~Discovering switches using nmap @@ -54,6 +60,7 @@ check:output=~ check:output=~switch end start:switchdiscover_range_z +label:others,discovery,Swtich cmd:switchdiscover --range $$range -z check:rc==0 check:output=~Discovering switches using nmap @@ -62,6 +69,7 @@ check:output=~groups=switch end start:switchdiscover_range_z_V +label:others,discovery,Swtich cmd:switchdiscover --range $$range -z -V check:rc==0 check:output=~Discovering switches using nmap diff --git a/xCAT-test/autotest/testcase/sysclone/cases0 b/xCAT-test/autotest/testcase/sysclone/cases0 index b18002ed1..5586768ba 100644 --- a/xCAT-test/autotest/testcase/sysclone/cases0 +++ b/xCAT-test/autotest/testcase/sysclone/cases0 @@ -1,4 +1,5 @@ start:sysclone +label:others,invoke_provision,sysclone cmd:makedns -n check:rc==0 cmd:makedhcp -n diff --git a/xCAT-test/autotest/testcase/testenv/case0 b/xCAT-test/autotest/testcase/testenv/case0 index f78099826..5a3e5d7dd 100644 --- a/xCAT-test/autotest/testcase/testenv/case0 +++ b/xCAT-test/autotest/testcase/testenv/case0 @@ -1,5 +1,6 @@ start:clean_up_env description:power off service node and compute node for next test usage +label:others cmd:rpower $$CN stat >> /tmp/cnstat cmd:if [[ ! `cat /tmp/cnstat |grep -i "Not Activated"` ]]; then rpower $$CN off;fi check:rc==0 diff --git a/xCAT-test/autotest/testcase/updatenode/cases0 b/xCAT-test/autotest/testcase/updatenode/cases0 index 44cb35ec3..fef099f08 100644 --- a/xCAT-test/autotest/testcase/updatenode/cases0 +++ b/xCAT-test/autotest/testcase/updatenode/cases0 @@ -1,15 +1,18 @@ start:updatenode_h +label:others,updatenode cmd:updatenode -h check:rc==0 end start:updatenode_v +label:others,updatenode cmd:updatenode -v check:rc==0 check:output=~Version end start:updatenode_diskful_syncfiles +label:others,updatenode cmd:mkdir -p /install/custom/install/__GETNODEATTR($$CN,os)__/ check:rc==0 cmd:echo "/etc/hosts -> /etc/hosts" > /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist @@ -38,6 +41,7 @@ check:rc==0 end start:updatenode_diskful_syncfiles_rename +label:others,updatenode cmd:mkdir -p /tmp/syncfile/ check:rc==0 cmd:echo "test1" > /tmp/syncfile/test1.txt @@ -68,6 +72,7 @@ end start:updatenode_diskful_syncfiles_dir +label:others,updatenode cmd:mkdir -p /tmp/sync/ check:rc==0 cmd:echo "test1" > /tmp/sync/test1.txt @@ -97,6 +102,7 @@ end start:updatenode_diskful_syncfiles_multi_files +label:others,updatenode cmd:cp /etc/hosts /etc/common_hosts cmd:mkdir /tmp/prog1 cmd:mkdir /tmp/prog2 @@ -151,6 +157,7 @@ cmd:rm /install/custom/install/__GETNODEATTR($$CN,os)__/compute.$$OS.synclist end start:updatenode_syncfile_EXECUTE +label:others,updatenode cmd:echo "echo hello > /tmp/test" > /tmp/file.post check:rc==0 cmd:chmod a+x /tmp/file.post @@ -171,6 +178,7 @@ check:rc==0 end start:updatenode_syncfile_EXECUTEALWAYS +label:others,updatenode cmd:echo "echo hello >> /tmp/test" > /tmp/file.post check:rc==0 cmd:chmod a+x /tmp/file.post @@ -191,6 +199,7 @@ check:rc==0 end start:updatenode_syncfile_APPEND +label:others,updatenode cmd:echo "line1" > /tmp/append1 cmd:echo "line2" > /tmp/append2 cmd:scp /tmp/append1 root@$$CN:/tmp @@ -211,6 +220,7 @@ check:rc==0 end start:updatenode_syncfile_MERGE +label:others,updatenode cmd:mkdir -p /tmp/updatenode_syncfile_MERGE check:rc==0 cmd:xdsh $$CN "mkdir -p /tmp/updatenode_syncfile_MERGE" @@ -266,6 +276,7 @@ check:rc==0 end start:updatenode_P_script1 +label:others,updatenode cmd:echo "echo hello > /tmp/updatenode_P_script" > /tmp/script1 check:rc==0 cmd:chmod a+x /tmp/script1 @@ -289,6 +300,7 @@ check:rc==0 end start:updatenode_P_script2 +label:others,updatenode cmd:echo "#!/bin/bash" > /tmp/updatenode_P_script_input cmd:echo "if [ -n \$1 ]" >> /tmp/updatenode_P_script_input cmd:echo "then" >> /tmp/updatenode_P_script_input @@ -324,6 +336,7 @@ check:rc==0 end start:updatenode_f_incompatible_flags +label:others,updatenode description:check if -f flag incompatible with -S,-P or -F flags cmd:updatenode $$CN -f -S check:rc==1 @@ -337,6 +350,7 @@ check:output=~Choose either -f to sync the service nodes, or -F to sync the nod end start:updatenode_k_incompatible_flags +label:others,updatenode description:check if -k flag incompatible with -S,-P,-F or -f flags cmd:updatenode $$CN -k -S check:rc==1 @@ -353,6 +367,7 @@ check:output=~If you use the -k flag, you cannot specify the -S,-P,-f or -F flag end start:updatenode_diskful_syncfiles_P_script1 +label:others,updatenode description:check updatenode noderange -F -P script1 cmd:mkdir -p /install/custom/install/__GETNODEATTR($$CN,os)__/ check:rc==0 @@ -398,6 +413,7 @@ cmd:rm -f /install/script1 end start:updatenode_script3 +label:others,updatenode description:check updatenode noderange -P "script c" cmd:echo "#!/bin/bash" > /tmp/updatenode_P_script_input cmd:echo "if [ -n \$1 ]" >> /tmp/updatenode_P_script_input @@ -426,6 +442,7 @@ check:rc==0 end start:updatenode_P_script1_script2 +label:others,updatenode description:check updatenode noderange -P "script1 a,script2 b" cmd:echo "#!/bin/bash" > /tmp/updatenode_P1_script_input cmd:echo "if [ -n \$1 ];then" >> /tmp/updatenode_P1_script_input @@ -468,6 +485,7 @@ cmd:rm /install/postscripts/updatenode_P*_script_input end start:updatenode_without_flag +label:others,updatenode description:check updatenode without any flag cmd:updatenode $$CN check:rc==0 @@ -478,6 +496,7 @@ check:output=~Software Maintenance has completed end start:updatenode_P_syslog_V_xcatdebugmode_is_one +label:others,updatenode description:xcatdebugmode value is one, there should be execution outputs. cmd:chtab key=xcatdebugmode site.value=1 check:rc==0 @@ -488,6 +507,7 @@ check:rc==0 end start:updatenode_P_syslog_V_xcatdebugmode_is_two +label:others,updatenode description:xcatdebugmode value is two, there should be execution outputs. cmd:chtab key=xcatdebugmode site.value=2 check:rc==0 diff --git a/xCAT-test/autotest/testcase/updatenode/cases1 b/xCAT-test/autotest/testcase/updatenode/cases1 index 9b7685dc5..1f89bb71e 100644 --- a/xCAT-test/autotest/testcase/updatenode/cases1 +++ b/xCAT-test/autotest/testcase/updatenode/cases1 @@ -1,4 +1,5 @@ start:updatenode_scripts +label:others,updatenode cmd:mkdir -p /install/postscripts check:rc==0 cmd:echo "#!/bin/bash" >/install/postscripts/blah @@ -14,6 +15,7 @@ check:rc==0 end start:updatenode_scripts_timeout +label:others,updatenode cmd:mkdir -p /install/postscripts check:rc==0 cmd:echo "#!/bin/bash" >/install/postscripts/blah diff --git a/xCAT-test/autotest/testcase/updatenode/cases2 b/xCAT-test/autotest/testcase/updatenode/cases2 index 6a02c9372..7d392ab91 100644 --- a/xCAT-test/autotest/testcase/updatenode/cases2 +++ b/xCAT-test/autotest/testcase/updatenode/cases2 @@ -1,10 +1,12 @@ start:updatenode_S +label:others,updatenode cmd:updatenode $$CN -S >/tmp/updatenode.S.out cmd:grep 'Running of Software Maintenance has completed' /tmp/updatenode.S.out check:rc==0 end start:updatenode_S_gcc +label:others,updatenode cmd:lsdef $$CN -i provmethod | tail -n 1 | cut -d= -f2 | xargs lsdef -t osimage -i pkglist | tail -n 1 | cut -d= -f2 >/tmp/pkglist.filename cmd:mv `cat /tmp/pkglist.filename` `cat /tmp/pkglist.filename`.save cmd:cp `cat /tmp/pkglist.filename`.save `cat /tmp/pkglist.filename` diff --git a/xCAT-test/autotest/testcase/updatenode/cases3 b/xCAT-test/autotest/testcase/updatenode/cases3 index 6c0a50143..7b43d3d96 100644 --- a/xCAT-test/autotest/testcase/updatenode/cases3 +++ b/xCAT-test/autotest/testcase/updatenode/cases3 @@ -1,5 +1,6 @@ start:updatenode_diskful_syncfiles_failing description: Test exit code when syncfiles failing. +label:others,updatenode cmd:mkdir -p /install/custom/install/__GETNODEATTR($$CN,os)__/ check:rc==0 cmd:echo "/tmp/non-existent -> /etc/motd" > /install/custom/install/__GETNODEATTR($$CN,os)__/booboo.synclist diff --git a/xCAT-test/autotest/testcase/updatenode/cases4 b/xCAT-test/autotest/testcase/updatenode/cases4 index bf849b45c..b61ebdb6f 100644 --- a/xCAT-test/autotest/testcase/updatenode/cases4 +++ b/xCAT-test/autotest/testcase/updatenode/cases4 @@ -1,11 +1,13 @@ start:updatenode_syncfiles description: Test cases for the syncfiles feature +label:others,updatenode cmd:/opt/xcat/share/xcat/tools/autotest/testcase/updatenode/syncfiles $$CN check:rc==0 end start:updatenode_syncfiles_scp description: Test cases for the syncfiles feature with scp +label:others,updatenode cmd:/opt/xcat/share/xcat/tools/autotest/testcase/updatenode/syncfiles $$CN scp check:rc==0 end diff --git a/xCAT-test/autotest/testcase/updatenode/filesyncing_hierarchy_case b/xCAT-test/autotest/testcase/updatenode/filesyncing_hierarchy_case index 92a69c30f..826e41c85 100644 --- a/xCAT-test/autotest/testcase/updatenode/filesyncing_hierarchy_case +++ b/xCAT-test/autotest/testcase/updatenode/filesyncing_hierarchy_case @@ -1,5 +1,6 @@ start:updatenode_f_F_hierarchy description: verify the behavior of updatenode -f/-F in the hierarchy environment-- (1)the different kind of synclist entries including destination nodes (2)make sure the location of directory to hold the files/dirs to sync on SN is correct (3)check the result of updatenode -f/-F +label:others,updatenode #create environment files to hold variables accross the case cmd: MYENVFILE="/tmp/updatenode_f_F_hierarchy.envs"; rm -rf $MYENVFILE; echo "MYENVFILE=\"$MYENVFILE\"">> $MYENVFILE; chmod +x $MYENVFILE diff --git a/xCAT-test/autotest/testcase/xcatdebugmode/rhels_xcatdebugmode_diskful b/xCAT-test/autotest/testcase/xcatdebugmode/rhels_xcatdebugmode_diskful index b7bff8f0b..a73c52cf5 100644 --- a/xCAT-test/autotest/testcase/xcatdebugmode/rhels_xcatdebugmode_diskful +++ b/xCAT-test/autotest/testcase/xcatdebugmode/rhels_xcatdebugmode_diskful @@ -1,6 +1,7 @@ start:reg_set_xcatdebugmode_off_rhels_diskful_flat os:linux description:site.xcatdebugmode value is 0, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN check:rc==0 @@ -57,6 +58,7 @@ end start:reg_set_xcatdebugmode_value_one_rhels_diskful_flat os:linux description:site.xcatdebugmode value is 1, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 @@ -144,6 +146,7 @@ end start:reg_set_xcatdebugmode_value_two_rhels_diskful_flat os:linux description:site.xcatdebugmode value is 2, , the following logs will be shown and ssh is supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 @@ -231,6 +234,7 @@ end start:set_xcatdebugmode_off_rhels_diskful_flat_p8_le os:Linux description:site.xcatdebugmode value is 0, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:chtab key=xcatdebugmode site.value="0" check:rc==0 @@ -283,6 +287,7 @@ end start:set_xcatdebugmode_value_one_rhels_diskful_flat_p8_le os:Linux description:site.xcatdebugmode value is 1, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 @@ -372,6 +377,7 @@ end start:set_xcatdebugmode_value_two_rhels_diskful_flat_p8_le os:Linux description:site.xcatdebugmode value is 2, the following logs will be shown and ssh is supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 diff --git a/xCAT-test/autotest/testcase/xcatdebugmode/sles_xcatdebugmode_diskful b/xCAT-test/autotest/testcase/xcatdebugmode/sles_xcatdebugmode_diskful index 4191e6c51..71eb112e9 100644 --- a/xCAT-test/autotest/testcase/xcatdebugmode/sles_xcatdebugmode_diskful +++ b/xCAT-test/autotest/testcase/xcatdebugmode/sles_xcatdebugmode_diskful @@ -1,6 +1,7 @@ start:reg_set_xcatdebugmode_off_sles_diskful_flat os:linux description:site.xcatdebugmode value is 0, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN @@ -67,6 +68,7 @@ end start:reg_set_xcatdebugmode_value_one_sles_diskful_flat os:linux description:site.xcatdebugmode value is 1, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 @@ -160,6 +162,7 @@ end start:set_xcatdebugmode_off_sles_diskful_flat_p8_le os:linux description:site.xcatdebugmode value is 0, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:chtab key=xcatdebugmode site.value="0" check:rc==0 @@ -221,6 +224,7 @@ end start:set_xcatdebugmode_value_one_sles_diskful_flat_p8_le os:linux description:site.xcatdebugmode value is 1, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 diff --git a/xCAT-test/autotest/testcase/xcatdebugmode/ubuntu_xcatdebugmode_diskful b/xCAT-test/autotest/testcase/xcatdebugmode/ubuntu_xcatdebugmode_diskful index bef44b866..e55e7b381 100644 --- a/xCAT-test/autotest/testcase/xcatdebugmode/ubuntu_xcatdebugmode_diskful +++ b/xCAT-test/autotest/testcase/xcatdebugmode/ubuntu_xcatdebugmode_diskful @@ -1,6 +1,7 @@ start:set_xcatdebugmode_off_ubuntule_diskful os:linux description:site.xcatdebugmode value is 0, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:chtab key=xcatdebugmode site.value="0" check:rc==0 cmd:copycds $$ISO @@ -44,6 +45,7 @@ end start:set_xcatdebugmode_off_ubuntux_vm_diskful os:linux description:site.xcatdebugmode value is 0, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:makedns -n check:rc==0 cmd:sleep 60 @@ -86,6 +88,7 @@ end start:set_xcatdebugmode_value_one_ubuntule_diskful os:linux description:site.xcatdebugmode value is 1, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 cmd:chtab key=xcatdebugmode site.value="1" @@ -157,6 +160,7 @@ end start:set_xcatdebugmode_value_one_ubuntux_vm_diskful os:linux description:site.xcatdebugmode value is 1, the following logs will be shown and ssh is not supported. +label:flat_cn_diskful,invoke_provison,xcatdebugmode cmd:echo " " > /var/log/xcat/computes.log check:rc==0 diff --git a/xCAT-test/autotest/testcase/xdshbak/cases0 b/xCAT-test/autotest/testcase/xdshbak/cases0 index d956d6d86..2765c6811 100644 --- a/xCAT-test/autotest/testcase/xdshbak/cases0 +++ b/xCAT-test/autotest/testcase/xdshbak/cases0 @@ -1,26 +1,31 @@ start:xdshbak_h +label:other,parallel_cmds cmd:xdshbak -h check:rc==0 check:output=~Usage end start:xdshbak_display +label:other,parallel_cmds cmd:xdsh $$CN cat /etc/hosts | xdshbak check:rc==0 check:output=~HOST:$$CN end start:xdshbak_c +label:other,parallel_cmds cmd:xdsh $$CN pwd |xdshbak -c check:rc==0 end start:xdshbak_q +label:other,parallel_cmds cmd:xdsh $$CN ls / |xdshbak -q check:rc==0 end start:xdshbak_x +label:other,parallel_cmds cmd:xdsh $$CN cat /etc/passwd|xdshbak -c check:rc==0 end