Skip to content

Commit 2203ede

Browse files
committed
Install pg_isolation_regress and isolationtester
We already install assorted tools for testing extensions, but these two were missing. Having them installed, and after ISOLATION support was added to PGXS's makefiles by d3c09b9, helps third-party modules usefully include isolation tests. Compare c3a0818. Author: Craig Ringer <[email protected]> Reviewed-by: Álvaro Herrera <[email protected]> Discussion: https://postgr.es/m/CAMsr+YFsCMH3B4uOPFE+2qWM6k=o=hf9LGiPNCfwqKdUPz_BsQ@mail.gmail.com
1 parent b05fe7b commit 2203ede

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/test/isolation/Makefile

+10-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ OBJS = \
1818

1919
all: isolationtester$(X) pg_isolation_regress$(X)
2020

21-
# Though we don't install these binaries, build them during installation
22-
# (including temp-install). Otherwise, "make -j check-world" and "make -j
23-
# installcheck-world" would spawn multiple, concurrent builds in this
24-
# directory. Later builds would overwrite files while earlier builds are
25-
# reading them, causing occasional failures.
26-
install: | all
21+
install: all installdirs
22+
$(INSTALL_PROGRAM) pg_isolation_regress$(X) '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_isolation_regress$(X)'
23+
$(INSTALL_PROGRAM) isolationtester$(X) '$(DESTDIR)$(pgxsdir)/$(subdir)/isolationtester$(X)'
24+
25+
installdirs:
26+
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
27+
28+
uninstall:
29+
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/pg_isolation_regress$(X)'
30+
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/isolationtester$(X)'
2731

2832
submake-regress:
2933
$(MAKE) -C $(top_builddir)/src/test/regress pg_regress.o

0 commit comments

Comments
 (0)