Skip to content

Commit c66b438

Browse files
committed
Add a temp-install prerequisite to "check"-like targets not having one.
Makefile.global assigns this prerequisite to every target named "check", but similar targets must mention it explicitly. Affected targets failed, tested $PATH binaries, or tested a stale temporary installation. The src/test/modules examples worked properly when called as "make -C src/test/modules/$FOO check", but "make -j" allowed the test to start before the temporary installation was in place. Back-patch to 9.5, where commit dcae5fa introduced the shared temp-install.
1 parent b35b185 commit c66b438

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

src/interfaces/ecpg/test/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ check: all
8181
$(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule sql/twophase
8282

8383
# the same options, but with --listen-on-tcp
84-
checktcp: all
84+
checktcp: all | temp-install
8585
$(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule_tcp --host=localhost
8686

8787
installcheck: all
@@ -95,5 +95,5 @@ installcheck: all
9595
installcheck-prepared-txns: all
9696
./pg_regress $(REGRESS_OPTS) --bindir='$(bindir)' $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule sql/twophase
9797

98-
check-prepared-txns: all
98+
check-prepared-txns: all | temp-install
9999
$(with_temp_install) ./pg_regress $(REGRESS_OPTS) --temp-instance=./tmp_check $(TEMP_CONF) --bindir= $(pg_regress_locale_flags) $(THREAD) --schedule=$(srcdir)/ecpg_schedule sql/twophase

src/test/locale/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ clean distclean maintainer-clean:
1616
$(MAKE) -C $$d clean || exit; \
1717
done
1818

19+
# These behave like installcheck targets.
1920
check-%: all
2021
@$(MAKE) -C `echo $@ | sed 's/^check-//'` test

src/test/modules/brin/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ endif
2121

2222
check: isolation-check prove-check
2323

24-
isolation-check: | submake-isolation
24+
isolation-check: | submake-isolation temp-install
2525
$(MKDIR_P) isolation_output
2626
$(pg_isolation_regress_check) \
2727
--outputdir=./isolation_output \
2828
$(ISOLATIONCHECKS)
2929

30-
prove-check:
30+
prove-check: | temp-install
3131
$(prove_check)
3232

3333
.PHONY: check isolation-check prove-check

src/test/modules/commit_ts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ endif
1616

1717
check: prove-check
1818

19-
prove-check:
19+
prove-check: | temp-install
2020
$(prove_check)

src/test/modules/test_pg_dump/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ endif
2121

2222
check: prove-check
2323

24-
prove-check:
24+
prove-check: | temp-install
2525
$(prove_check)

src/test/regress/GNUmakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ REGRESS_OPTS = --dlpath=. --max-concurrent-tests=20 $(EXTRA_REGRESS_OPTS)
129129
check: all tablespace-setup
130130
$(pg_regress_check) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) $(EXTRA_TESTS)
131131

132-
check-tests: all tablespace-setup
132+
check-tests: all tablespace-setup | temp-install
133133
$(pg_regress_check) $(REGRESS_OPTS) $(MAXCONNOPT) $(TESTS) $(EXTRA_TESTS)
134134

135135
installcheck: all tablespace-setup
@@ -153,7 +153,7 @@ runtest-parallel: installcheck-parallel
153153
bigtest: all tablespace-setup
154154
$(pg_regress_installcheck) $(REGRESS_OPTS) --schedule=$(srcdir)/serial_schedule numeric_big
155155

156-
bigcheck: all tablespace-setup
156+
bigcheck: all tablespace-setup | temp-install
157157
$(pg_regress_check) $(REGRESS_OPTS) --schedule=$(srcdir)/parallel_schedule $(MAXCONNOPT) numeric_big
158158

159159

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy