On Tue, Apr 15, 2014 at 12:32:36PM -0700, David Fetter wrote:
> On Tue, Apr 15, 2014 at 02:46:34PM -0400, Bruce Momjian wrote:
> > On Tue, Apr 15, 2014 at 02:32:53PM -0400, Tom Lane wrote:
> > > Bruce Momjian <[email protected]> writes:
> > > > psql: conditionally display oids and replication identity
> > >
> > > Buildfarm isn't terribly pleased with this --- looks like you missed
> > > contrib/test_decoding/
> >
> > Fixed. I added a personal script option that allows me to test contrib,
> > but forgot to run it.
>
> Is that script of general utility for committers? If so, it might be
> good to include it in the distribution. I'd be happy to go through
> and perl-ify it, document it, etc. Or maybe it could be a new make
> target...
My script is wrapper around src/tools/pgtest. I am attaching it in case
there are snippets in there that are useful to people.
--
Bruce Momjian <[email protected]> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
:
. traprm
[ "$1" = "-c" ] && CONTRIB="Y" && shift
[ "$1" = "-d" ] && DOCS="Y" && shift
[ "$1" = "-c" ] && CONTRIB="Y" && shift
export QUIET=$(($QUIET + 1))
. cd_pgtop
chown -R postgres .
echo "Checking SGML"
cd doc/src/sgml
# make postgres.sgml first so we don't filter on a configure check
make -q postgres.sgml
make check > $TMP/0 2>&1
if grep -v 'fully-tagged' < $TMP/0 | egrep -qi 'Error|Warning'
then echo "SGML error"
cat $TMP/0
exit 1
fi
[ $(pwd) != '/pgsql/8.4/doc/src/sgml' ] && make check-tabs
# Run only at night to check for HISTORY build problems
# in HISTORY.html.
if [ ! -t 0 -o "$DOCS" = "Y" ]
then make INSTALL.html > $TMP/0 2>&1
if egrep -qi 'Error|Warning' < $TMP/0
then echo "SGML error"
cat $TMP/0
exit 1
fi
# removed in PG 9.4
make HISTORY.html > $TMP/0 2>&1
if grep -q 'Error' < $TMP/0
then echo "SGML error"
cat $TMP/0
exit 1
fi
fi
# fails on /bin/sh
cd - > /dev/null
echo "Checking duplicate oids"
cd src/include/catalog
duplicate_oids > $TMP/0
if [ -s $TMP/0 ]
then echo "Duplicate system oids"
cat $TMP/0
exit 1
fi
cd - > /dev/null
pggit diff --check || exit 1
echo "Running pgtest"
(aspg /pg/tools/pgtest --silent "$@"; echo "$?" > $TMP/ret) |
# use only one grep so we don't buffer output
egrep -v 'In file included from gram.y:|warning: unused variable
.yyg.|yy_try_NUL_trans'
if [ "$CONTRIB" ]
then cd contrib
make --silent
# install-check is much faster because no initdbs
aspg make --silent check
cd - > /dev/null
fi
rm -fr src/test/regress/tmp_check
[ -t 0 ] && bell
exit $(cat $TMP/ret)
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers