PL/Python: Improve Python 3 regression test setup

Peter Eisentraut <peter_e@gmx.net>

Commit: b2e3bea3afe9618764a8f15cc7d6d95036b7638b
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2012-09-17T02:26:33Z
Releases: 9.3.0
PL/Python: Improve Python 3 regression test setup

Currently, we are making mangled copies of plpython/{expected,sql} to
plpython/python3/{expected,sql}, and run the tests in
plpython/python3.  This has the disadvantage that the regression.diffs
file, if any, ends up in plpython/python3, which is not the normal
location.  If we instead make the mangled copies in
plpython/{expected,sql}/python3/, we can run the tests from the normal
directory, regression.diffs ends up the normal place, and the
pg_regress invocation also becomes a lot simpler.  It's also more
obvious at run time what's going on, because the tests end up being
named "python3/something" in the test output.

Files

PathChange+/−
src/pl/plpython/.gitignore modified +2 −0
src/pl/plpython/Makefile modified +22 −13