Skip to content

Commit fa5c131

Browse files
committed
Ensure all perl test modules are installed
PostgreSQL::Test::Cluster and ::Utils were not being installed. This is very hard to notice, as it only seems to affect external modules that want to run tests from 15 back in earlier versions. Oversight in b235d41. This applies only to branches 14 and back, because 15 had already been made correct in commit b3b4d8e. Discussion: https://postgr.es/m/20221010093415.poplkyn7pjeiv2y7@alvherre.pgsql
1 parent 669803a commit fa5c131

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/perl/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,22 @@ include $(top_builddir)/src/Makefile.global
1616
ifeq ($(enable_tap_tests),yes)
1717

1818
installdirs:
19-
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
19+
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test'
2020

2121
install: all installdirs
2222
$(INSTALL_DATA) $(srcdir)/TestLib.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/TestLib.pm'
2323
$(INSTALL_DATA) $(srcdir)/SimpleTee.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/SimpleTee.pm'
2424
$(INSTALL_DATA) $(srcdir)/RecursiveCopy.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/RecursiveCopy.pm'
2525
$(INSTALL_DATA) $(srcdir)/PostgresNode.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgresNode.pm'
26+
$(INSTALL_DATA) $(srcdir)/PostgreSQL/Test/Cluster.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Cluster.pm'
27+
$(INSTALL_DATA) $(srcdir)/PostgreSQL/Test/Utils.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Utils.pm'
2628

2729
uninstall:
2830
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/TestLib.pm'
2931
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/SimpleTee.pm'
3032
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/RecursiveCopy.pm'
3133
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgresNode.pm'
34+
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Cluster.pm'
35+
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Utils.pm'
3236

3337
endif

0 commit comments

Comments
 (0)