mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Improve speed of make check-world
Before, make check-world would create a new temporary installation for each test suite, which is slow and wasteful. Instead, we now create one test installation that is used by all test suites that are part of a make run. The management of the temporary installation is removed from pg_regress and handled in the makefiles. This allows for better control, and unifies the code with that of test suites not run through pg_regress. review and msvc support by Michael Paquier <michael.paquier@gmail.com> more review by Fabien Coelho <coelho@cri.ensmp.fr>
This commit is contained in:
@ -258,9 +258,6 @@ else
|
||||
REGRESS_OPTS += --dbname=$(CONTRIB_TESTDB)
|
||||
endif
|
||||
|
||||
# where to find psql for running the tests
|
||||
PSQLDIR = $(bindir)
|
||||
|
||||
# When doing a VPATH build, must copy over the data files so that the
|
||||
# driver script can find them. We have to use an absolute path for
|
||||
# the targets, because otherwise make will try to locate the missing
|
||||
@ -295,7 +292,9 @@ check:
|
||||
@echo 'Do "$(MAKE) install", then "$(MAKE) installcheck" instead.'
|
||||
else
|
||||
check: all submake $(REGRESS_PREP)
|
||||
$(pg_regress_check) --extra-install=$(subdir) $(REGRESS_OPTS) $(REGRESS)
|
||||
$(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
|
||||
|
||||
temp-install: EXTRA_INSTALL=$(subdir)
|
||||
endif
|
||||
endif # REGRESS
|
||||
|
||||
|
Reference in New Issue
Block a user