Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit025c9a7

Browse files
committed
Install TAP test infrastructure so it's available for extension testing.
When configured with --enable-tap-tests, "make install" will now installthe Perl support files for TAP testing where PGXS will find them.This allows extensions to rely on $(prove_check) even when being builtout-of-tree. Back-patch to 9.4 where we first started to support TAPtesting, to reduce the number of cases extension makefiles need toconsider.Craig RingerDiscussion: <CAMsr+YFXv+2qne6xJW7z_25mYBtktRX5rpkrgrb+DRgQ_FxgHQ@mail.gmail.com>
1 parent0a2b2ea commit025c9a7

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

‎src/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ SUBDIRS = \
2525
bin\
2626
pl\
2727
makefiles\
28-
test/regress
28+
test/regress\
29+
test/perl
2930

3031
# There are too many interdependencies between the subdirectories, so
3132
# don't attempt parallel make here.

‎src/test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ subdir = src/test
1212
top_builddir = ../..
1313
include$(top_builddir)/src/Makefile.global
1414

15-
SUBDIRS = regress isolation modules
15+
SUBDIRS =perlregress isolation modules
1616

1717
# We don't build or execute examples/, locale/, or thread/ by default,
1818
# but we do want "make clean" etc to recurse into them. Likewise for ssl/,

‎src/test/perl/Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#-------------------------------------------------------------------------
2+
#
3+
# Makefile for src/test/perl
4+
#
5+
# Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
6+
# Portions Copyright (c) 1994, Regents of the University of California
7+
#
8+
# src/test/perl/Makefile
9+
#
10+
#-------------------------------------------------------------------------
11+
12+
subdir = src/test/perl
13+
top_builddir = ../../..
14+
include$(top_builddir)/src/Makefile.global
15+
16+
ifeq ($(enable_tap_tests),yes)
17+
18+
installdirs:
19+
$(MKDIR_P)'$(DESTDIR)$(pgxsdir)/$(subdir)'
20+
21+
install: all installdirs
22+
$(INSTALL_DATA)$(srcdir)/TestLib.pm'$(DESTDIR)$(pgxsdir)/$(subdir)/TestLib.pm'
23+
$(INSTALL_DATA)$(srcdir)/SimpleTee.pm'$(DESTDIR)$(pgxsdir)/$(subdir)/SimpleTee.pm'
24+
25+
uninstall:
26+
rm -f'$(DESTDIR)$(pgxsdir)/$(subdir)/TestLib.pm'
27+
rm -f'$(DESTDIR)$(pgxsdir)/$(subdir)/SimpleTee.pm'
28+
29+
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp