Skip to content

Commit 4f6d1cf

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 483d269 commit 4f6d1cf

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,20 +16,24 @@ 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'
2626
$(INSTALL_DATA) $(srcdir)/PostgresVersion.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgresVersion.pm'
27+
$(INSTALL_DATA) $(srcdir)/PostgreSQL/Test/Cluster.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Cluster.pm'
28+
$(INSTALL_DATA) $(srcdir)/PostgreSQL/Test/Utils.pm '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Utils.pm'
2729

2830
uninstall:
2931
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/TestLib.pm'
3032
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/SimpleTee.pm'
3133
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/RecursiveCopy.pm'
3234
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgresNode.pm'
3335
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgresVersion.pm'
36+
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Cluster.pm'
37+
rm -f '$(DESTDIR)$(pgxsdir)/$(subdir)/PostgreSQL/Test/Utils.pm'
3438

3539
endif

0 commit comments

Comments
 (0)