1996-07-09 08:22:35 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
2012-03-05 19:19:20 +01:00
|
|
|
# Makefile for src/test
|
1996-07-09 08:22:35 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
2012-03-05 19:19:20 +01:00
|
|
|
# src/test/Makefile
|
1996-07-09 08:22:35 +02:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2012-03-05 19:19:20 +01:00
|
|
|
subdir = src/test
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
2021-05-07 10:17:42 +02:00
|
|
|
SUBDIRS = perl regress isolation modules authentication recovery subscription
|
2012-03-05 19:19:20 +01:00
|
|
|
|
2018-03-03 07:29:51 +01:00
|
|
|
# Test suites that are not safe by default but can be run if selected
|
|
|
|
# by the user via the whitespace-separated list in variable
|
|
|
|
# PG_TEST_EXTRA:
|
2018-03-05 20:42:11 +01:00
|
|
|
ifeq ($(with_gssapi),yes)
|
|
|
|
ifneq (,$(filter kerberos,$(PG_TEST_EXTRA)))
|
|
|
|
SUBDIRS += kerberos
|
|
|
|
endif
|
|
|
|
endif
|
2018-03-03 07:29:51 +01:00
|
|
|
ifeq ($(with_ldap),yes)
|
|
|
|
ifneq (,$(filter ldap,$(PG_TEST_EXTRA)))
|
|
|
|
SUBDIRS += ldap
|
|
|
|
endif
|
|
|
|
endif
|
2021-02-01 11:19:44 +01:00
|
|
|
ifeq ($(with_ssl),openssl)
|
2018-03-03 07:29:51 +01:00
|
|
|
ifneq (,$(filter ssl,$(PG_TEST_EXTRA)))
|
2020-12-25 21:13:16 +01:00
|
|
|
SUBDIRS += ssl
|
2018-03-03 07:29:51 +01:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# We don't build or execute these by default, but we do want "make
|
|
|
|
# clean" etc to recurse into them. (We must filter out those that we
|
|
|
|
# have conditionally included into SUBDIRS above, else there will be
|
|
|
|
# make confusion.)
|
2020-12-19 23:58:30 +01:00
|
|
|
ALWAYS_SUBDIRS = $(filter-out $(SUBDIRS),examples kerberos ldap ssl)
|
2014-12-09 16:21:18 +01:00
|
|
|
|
2014-11-30 03:55:00 +01:00
|
|
|
# We want to recurse to all subdirs for all standard targets, except that
|
|
|
|
# installcheck and install should not recurse into the subdirectory "modules".
|
|
|
|
|
|
|
|
recurse_alldirs_targets := $(filter-out installcheck install, $(standard_targets))
|
|
|
|
installable_dirs := $(filter-out modules, $(SUBDIRS))
|
|
|
|
|
|
|
|
$(call recurse,$(recurse_alldirs_targets))
|
|
|
|
$(call recurse,installcheck, $(installable_dirs))
|
|
|
|
$(call recurse,install, $(installable_dirs))
|
2014-12-09 16:21:18 +01:00
|
|
|
|
|
|
|
$(recurse_always)
|