Chris Browne cbbrowne at lists.slony.info
Tue Jul 21 14:17:46 PDT 2009
Update of /home/cvsd/slony1/slony1-engine/tests
In directory main.slony.info:/tmp/cvs-serv8724

Modified Files:
      Tag: REL_2_0_STABLE
	run_test.sh 
Log Message:
Oops, a widespread typo in the testbed which was hidden because the
defaults "happened to work" (until I started 8.4-based testing!)


Index: run_test.sh
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/run_test.sh,v
retrieving revision 1.26.2.3
retrieving revision 1.26.2.4
diff -C2 -d -r1.26.2.3 -r1.26.2.4
*** run_test.sh	17 Jun 2009 21:37:38 -0000	1.26.2.3
--- run_test.sh	21 Jul 2009 21:17:44 -0000	1.26.2.4
***************
*** 113,117 ****
  	node=1
          while : ; do
! 	  SLON_BIN_PATH=$PGBINDIR1 SLON_CONF=${mktmp}/slon-conf.${node} $SLTOOLDIR/start_slon.sh stop
            if [ ${node} -ge ${NUMNODES} ]; then
              break;
--- 113,117 ----
  	node=1
          while : ; do
! 	  SLON_BUILD=$PGBINDIR SLON_CONF=${mktmp}/slon-conf.${node} $SLTOOLDIR/start_slon.sh stop
            if [ ${node} -ge ${NUMNODES} ]; then
              break;
***************
*** 250,256 ****
  	if [ -n "${db}" -a "${host}" -a "${user}" ]; then
  	  status "creating origin DB: $user -h $host -U $user -p $port $db"
!   	  $pgbindir/createdb -O $user -h $host -U $user -p $port --encoding $ENCODING $db 1> ${mktmp}/createdb.${originnode} 2> ${mktmp}/createdb.${originnode}
  	  if [ $? -ne 0 ]; then	   
! 	    err 3 "An error occurred trying to $pgbindir/createdb -O $user -h $host -U $user -p $port --encoding $ENCODING $db, ${mktmp}/createdb.${originnode} for details"
  	  fi
  	else
--- 250,256 ----
  	if [ -n "${db}" -a "${host}" -a "${user}" ]; then
  	  status "creating origin DB: $user -h $host -U $user -p $port $db"
!   	  $pgbindir/createdb -O $user -h $host -U $user -p $port --encoding $ENCODING -T template0 $db 1> ${mktmp}/createdb.${originnode} 2> ${mktmp}/createdb.${originnode}
  	  if [ $? -ne 0 ]; then	   
! 	    err 3 "An error occurred trying to $pgbindir/createdb -O $user -h $host -U $user -p $port --encoding $ENCODING -T template0 $db, ${mktmp}/createdb.${originnode} for details"
  	  fi
  	else
***************
*** 290,294 ****
                if [ ${node} -ne ${originnode} ]; then
  		status "creating subscriber ${node} DB: $user -h $host -U $user -p $port $db"
! 	        $pgbindir/createdb -O $user -h $host -U $user -p $port --encoding $ENCODING $db 1> ${mktmp}/createdb.${node} 2> ${mktmp}/createdb.${node}
  		status "add plpgsql to subscriber"
  		$pgbindir/createlang -h $host -U $user -p $port plpgsql $db
--- 290,294 ----
                if [ ${node} -ne ${originnode} ]; then
  		status "creating subscriber ${node} DB: $user -h $host -U $user -p $port $db"
! 	        $pgbindir/createdb -O $user -h $host -U $user -p $port --encoding $ENCODING -T template0 $db 1> ${mktmp}/createdb.${node} 2> ${mktmp}/createdb.${node}
  		status "add plpgsql to subscriber"
  		$pgbindir/createlang -h $host -U $user -p $port plpgsql $db
***************
*** 528,536 ****
    build_slonconf ${originnode} "${conninfo}"
    slonparms=" -f ${mktmp}/slon-conf.${originnode} "
!   status "launching originnode"
!   SLON_BIN_PATH=${opgbindir} SLON_CONF=${mktmp}/slon-conf.${originnode}  SLON_LOG=$mktmp/slon_log.${originnode} $SLTOOLDIR/start_slon.sh start
  
    sleep 1
!   SLPID=`SLON_BIN_PATH=${opgbindir} SLON_CONF=${mktmp}/slon-conf.${originnode} $SLTOOLDIR/start_slon.sh status | grep "Slon running as PID:"`
    if [ -z "${SLPID}" ]; then
        echo "SLPID: ${SLPID}"
--- 528,536 ----
    build_slonconf ${originnode} "${conninfo}"
    slonparms=" -f ${mktmp}/slon-conf.${originnode} "
!   status "launching originnode - PGBINDIR=${PGBINDIR}"
!   SLON_BUILD=${PGBINDIR} SLON_CONF=${mktmp}/slon-conf.${originnode} SLON_LOG=$mktmp/slon_log.${originnode} $SLTOOLDIR/start_slon.sh start
  
    sleep 1
!   SLPID=`SLON_BUILD=$PGBINDIR SLON_CONF=${mktmp}/slon-conf.${originnode} $SLTOOLDIR/start_slon.sh status | grep "Slon running as PID:"`
    if [ -z "${SLPID}" ]; then
        echo "SLPID: ${SLPID}"
***************
*** 584,591 ****
  	build_slonconf ${node} "${conninfo}"
  	status "launching slon"
! 	SLON_BIN_PATH=$pgbindir SLON_CONF=${CONFFILE} SLON_LOG=$mktmp/slon_log.${node} $SLTOOLDIR/start_slon.sh start
  	sleep 1
  	
! 	SLPID=`SLON_BIN_PATH=${pgbindir} SLON_CONF=${mktmp}/slon-conf.${node} $SLTOOLDIR/start_slon.sh status | grep "Slon running as PID:"`
  	if [ -z "${SLPID}" ]; then
  	    echo "SLPID: ${SLPID}"
--- 584,591 ----
  	build_slonconf ${node} "${conninfo}"
  	status "launching slon"
! 	SLON_BUILD=$PGBINDIR SLON_CONF=${CONFFILE} SLON_LOG=$mktmp/slon_log.${node} $SLTOOLDIR/start_slon.sh start
  	sleep 1
  	
! 	SLPID=`SLON_BUILD=${PGBINDIR} SLON_CONF=${mktmp}/slon-conf.${node} $SLTOOLDIR/start_slon.sh status | grep "Slon running as PID:"`
  	if [ -z "${SLPID}" ]; then
  	    echo "SLPID: ${SLPID}"



More information about the Slony1-commit mailing list