diff --git a/shell/regression/testcases/Makefile.am b/shell/regression/testcases/Makefile.am index c819d71430..7c17e4bdff 100644 --- a/shell/regression/testcases/Makefile.am +++ b/shell/regression/testcases/Makefile.am @@ -1,32 +1,32 @@ # # Author: Sun Jiang Dong # Copyright (c) 2004 International Business Machines # # 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 # of the License, or (at your option) any later version. # # This program 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 program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # MAINTAINERCLEANFILES = Makefile.in testcasesdir = $(datadir)/$(PACKAGE)/tests/shell/testcases -testcases_SCRIPTS = confbasic-xml.filter xmlonly.sh +testcases_SCRIPTS = confbasic-xml.filter ra.filter xmlonly.sh testcases_DATA = BSC basicset common.excl \ confbasic confbasic-xml delete file node ra resource shadow \ confbasic-xml.exp confbasic.exp delete.exp file.exp \ node.exp ra.exp resource.exp shadow.exp confbasic-xml.filter: ln xmlonly.sh $@ # shouldn't need this next line... EXTRA_DIST = $(testcases_SCRIPTS) $(testcases_DATA) diff --git a/shell/regression/testcases/ra.filter b/shell/regression/testcases/ra.filter new file mode 100755 index 0000000000..a964613d4c --- /dev/null +++ b/shell/regression/testcases/ra.filter @@ -0,0 +1,15 @@ +#!/usr/bin/awk -f +# reduce the providers list to heartbeat and pacemaker +# (prevents other providers creeping in) +function reduce(a) { + a["heartbeat"]=1; a["pacemaker"]=1; + s=""; + for( i=1; i<=NF; i++ ) + if( $i in a ) + s=s" "$i; + return substr(s,2); +} +n==1 { n=0; print reduce(a); next; } +/providers IPaddr/ { n=1; } +/providers Dummy/ { n=1; } +{ print }