Sha256: 7d36d52cdc2264f36da34f2b3e33eaee2ca1b19dd8d79c68268d6c7af92ff26e

Contents?: true

Size: 847 Bytes

Versions: 12

Compression:

Stored size: 847 Bytes

Contents

#! /bin/sh
#-------------------------------------------------------------------
# test script for do_query.
#
# If do_query failed while executing in extended query mode, pgpool hangs.
# precondition to trigger the error: remove pgpool_regclass.so or some such.
#
BUG="do_query"
WHOAMI=`whoami`
source $TESTLIBS
TESTDIR=testdir
PGBENCH=$PGBENCH_PATH

rm -fr $TESTDIR
mkdir $TESTDIR
cd $TESTDIR

# create test environment
echo -n "creating test environment..."
sh $PGPOOL_SETUP -m s -n 1 --no-stop|| exit 1
echo "done."

source ./bashrc.ports

#./startall

export PGPORT=$PGPOOL_PORT

wait_for_pgpool_startup

echo "SELECT 1" > select.pgbench
$PGBENCH -i test

# run test. This will hung if the bug is remained.
($PGBENCH -c 10 -t 10 -M extended -f select.pgbench test)&
sleep 5
kill $!

if [ $? = 0 ];then
	./shutdownall
	exit 1
fi

./shutdownall

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
prestogres-0.4.8 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.7 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.6 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.5 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.4 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.3 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.2 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.1 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.4.0 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.3.0 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.2.0 pgpool2/test/regression/tests/052.do_query/test.sh
prestogres-0.1.0 pgpool2/test/regression/tests/052.do_query/test.sh