diff --git a/crm/pengine/regression.sh b/crm/pengine/regression.sh index 33e6df85fe..8a316b0a0a 100755 --- a/crm/pengine/regression.sh +++ b/crm/pengine/regression.sh @@ -1,99 +1,99 @@ #!/bin/bash # Copyright (C) 2004 Andrew Beekhof # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This software is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # . regression.core.sh create_mode="false" do_test simple1 "Offline " do_test simple2 "Start " do_test simple3 "Start 2 " do_test simple4 "Start Failed" do_test simple6 "Stop Start " do_test simple7 "Shutdown " #do_test simple8 "Stonith " do_test simple9 "Lower version" do_test simple10 "Higher version" do_test simple11 "Priority (ne)" do_test simple12 "Priority (eq)" echo "" do_test rsc_dep1 "Must not " #do_test rsc_dep2 "Should not " do_test rsc_dep3 "Must " #do_test rsc_dep4 "Should " do_test rsc_dep5 "Must not 3 " #do_test rsc_dep6 "Should not 3" do_test rsc_dep7 "Must 3 " #do_test rsc_dep8 "Should 3 " do_test rsc_dep10 "Must (cant)" #do_test rsc_dep9 "2*MustNot 1*ShouldNot" echo "" do_test agent1 "version: lt (empty)" do_test agent2 "version: eq " do_test agent3 "version: gt " echo "" do_test attrs1 "string: eq (and) " do_test attrs2 "string: lt / gt (and)" do_test attrs3 "string: ne (or) " do_test attrs4 "string: exists " do_test attrs5 "string: notexists " echo "" -do_test stopfail1 "Node Failed - Fence " -do_test stopfail2 "Node Failed - Block " -do_test stopfail3 "Node Failed - Ignore " +do_test nodefail1 "Node Failed - Fence " +do_test nodefail2 "Node Failed - Block " +do_test nodefail3 "Node Failed - Ignore " echo "" do_test stopfail2 "Stop Failed - Block " do_test stopfail3 "Stop Failed - Ignore (1 node)" do_test stopfail4 "Stop Failed - Ignore (2 node)" do_test stopfail1 "Stop Failed - STONITH (block)" do_test stopfail5 "Stop Failed - STONITH (pass)" do_test stopfail6 "Stop Failed - STONITH (pass2)" do_test stopfail7 "Stop Failed - STONITH (should fail)" echo "" do_test rsc_location1 "Score (not running) " do_test rsc_location2 "Score (running) " do_test rsc_location3 "Score (not running/no swap)" do_test rsc_location4 "Score (running/swap) " do_test rsc_location5 "Score (running/swap 2) " echo "" do_test complex1 "Complex " echo "" do_test bad1 "Bad node " do_test bad2 "Bad rsc " do_test bad3 "No rsc class" do_test bad4 "Bad data " do_test bad5 "Bad data " do_test bad6 "Bad lrm_rsc" do_test bad7 "No lrm " echo "" create_mode="true" echo Generating test outputs for these tests... #do_test bad7 "Bad data" echo "" test_results diff --git a/crm/pengine/testcases/nodefail1.exp b/crm/pengine/testcases/nodefail1.exp new file mode 100644 index 0000000000..cfcb21555d --- /dev/null +++ b/crm/pengine/testcases/nodefail1.exp @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/crm/pengine/testcases/nodefail2.exp b/crm/pengine/testcases/nodefail2.exp new file mode 100644 index 0000000000..a82e706abd --- /dev/null +++ b/crm/pengine/testcases/nodefail2.exp @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/crm/pengine/testcases/nodefail3.exp b/crm/pengine/testcases/nodefail3.exp new file mode 100644 index 0000000000..da4e92c5ff --- /dev/null +++ b/crm/pengine/testcases/nodefail3.exp @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +