@@ -70,39 +70,15 @@ export PGHOST
70
70
# don't rely on $PWD here, as old shells don't set it
71
71
temp_root=` pwd` /tmp_check
72
72
73
- if [ " $1 " = ' --install' ]; then
74
- temp_install=$temp_root /install
75
- bindir=$temp_install /$bindir
76
- libdir=$temp_install /$libdir
77
-
78
- " $MAKE " -s -C ../.. install DESTDIR=" $temp_install "
79
-
80
- # platform-specific magic to find the shared libraries; see pg_regress.c
81
- LD_LIBRARY_PATH=$libdir :$LD_LIBRARY_PATH
82
- export LD_LIBRARY_PATH
83
- DYLD_LIBRARY_PATH=$libdir :$DYLD_LIBRARY_PATH
84
- export DYLD_LIBRARY_PATH
85
- LIBPATH=$libdir :$LIBPATH
86
- export LIBPATH
87
- SHLIB_PATH=$libdir :$SHLIB_PATH
88
- export SHLIB_PATH
89
- PATH=$libdir :$PATH
90
-
91
- # We need to make it use psql from our temporary installation,
92
- # because otherwise the installcheck run below would try to
93
- # use psql from the proper installation directory, which might
94
- # be outdated or missing. But don't override anything else that's
95
- # already in EXTRA_REGRESS_OPTS.
96
- EXTRA_REGRESS_OPTS=" $EXTRA_REGRESS_OPTS --bindir='$bindir '"
97
- export EXTRA_REGRESS_OPTS
98
- fi
99
-
100
73
: ${oldbindir=$bindir }
101
74
102
75
: ${oldsrc=../ ../ ..}
103
76
oldsrc=` cd " $oldsrc " && pwd`
104
77
newsrc=` cd ../../.. && pwd`
105
78
79
+ # While in normal cases this will already be set up, adding bindir to
80
+ # path allows test.sh to be invoked with different versions as
81
+ # described in ./TESTING
106
82
PATH=$bindir :$PATH
107
83
export PATH
108
84
0 commit comments