⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gnumakefile

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻
字号:
#-------------------------------------------------------------------------## GNUmakefile--#    Makefile for src/test/regress (the regression tests)## Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group# Portions Copyright (c) 1994, Regents of the University of California## $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.53 2005/11/01 15:09:11 adunstan Exp $##-------------------------------------------------------------------------subdir = src/test/regresstop_builddir = ../../..include $(top_builddir)/src/Makefile.globalcontribdir := $(top_builddir)/contrib# port number for temp-installation test postmasterTEMP_PORT = 5$(DEF_PGPORT)# default encodingMULTIBYTE = SQL_ASCII# maximum simultaneous connections for parallel testsMAXCONNOPT :=ifdef MAX_CONNECTIONSMAXCONNOPT += --max-connections=$(MAX_CONNECTIONS)endif# localeNOLOCALE :=ifdef NO_LOCALENOLOCALE += --no-localeendif#### Prepare for tests### Build regression test driverall: pg_regresspg_regress: pg_regress.sh GNUmakefile $(top_builddir)/src/Makefile.global	sed -e 's,@bindir@,$(bindir),g' \	    -e 's,@libdir@,$(libdir),g' \	    -e 's,@pkglibdir@,$(pkglibdir),g' \	    -e 's,@datadir@,$(datadir),g' \	    -e 's/@VERSION@/$(VERSION)/g' \	    -e 's/@host_tuple@/$(host_tuple)/g' \	    -e 's,@GMAKE@,$(MAKE),g' \	    -e 's/@enable_shared@/$(enable_shared)/g' \	    -e 's/@GCC@/$(GCC)/g' \	  $< >$@	chmod a+x $@# Build dynamically-loaded object file for CREATE FUNCTION ... LANGUAGE 'C'.NAME = regressSO_MAJOR_VERSION= 0SO_MINOR_VERSION= 0OBJS = regress.oSHLIB_LINK = $(BE_DLLLIBS)include $(top_srcdir)/src/Makefile.shliball: $(NAME)$(DLSUFFIX)$(NAME)$(DLSUFFIX): $(shlib)	rm -f $(NAME)$(DLSUFFIX)	$(LN_S) $(shlib) $(NAME)$(DLSUFFIX)# Build test input and expected filesfile_list := copy create_function_1 create_function_2 misc constraints tablespaceinput_files  := $(foreach file, $(file_list), sql/$(file).sql)output_files := $(foreach file, $(file_list), expected/$(file).out)all: $(input_files) $(output_files)ifneq ($(PORTNAME),win32)abs_srcdir := $(shell cd $(srcdir) && pwd)abs_builddir := $(shell pwd)elseabs_srcdir := $(shell cd $(srcdir) && pwd -W)abs_builddir := $(shell pwd -W)endiftesttablespace := $(abs_builddir)/testtablespacedefine sed-commandsed -e 's,@abs_srcdir@,$(abs_srcdir),g' \    -e 's,@abs_builddir@,$(abs_builddir),g' \    -e 's,@testtablespace@,$(testtablespace),g' \    -e 's/@DLSUFFIX@/$(DLSUFFIX)/g' $< >$@endef$(input_files): sql/%.sql: input/%.source	$(sed-command)$(output_files): expected/%.out: output/%.source	$(sed-command)# When doing a VPATH build, copy over the remaining .sql and .out# 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 files using VPATH, and will find them in# $(srcdir), but the point here is that we want to copy them from# $(srcdir) to the build directory.ifdef VPATHremaining_files_src := $(wildcard $(srcdir)/sql/*.sql) $(wildcard $(srcdir)/expected/*.out) $(srcdir)/resultmapremaining_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(remaining_files_src))all: $(remaining_files_build)$(remaining_files_build): $(abs_builddir)/%: $(srcdir)/%	ln -s $< $@endif# And finally some extra C modules...all: all-spi.PHONY: all-spiall-spi:	$(MAKE) -C $(contribdir)/spi refint$(DLSUFFIX) autoinc$(DLSUFFIX)#### Run tests##check: all	-rm -rf ./testtablespace	mkdir ./testtablespace	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)installcheck: all	-rm -rf ./testtablespace	mkdir ./testtablespace	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)installcheck-parallel: all	-rm -rf ./testtablespace	mkdir ./testtablespace	$(SHELL) ./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)# old interfaces follow...runcheck: checkruntest: installcheckruntest-parallel: installcheck-parallelbigtest:	$(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE) numeric_big bigcheck:	$(SHELL) ./pg_regress --temp-install --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) numeric_big#### Clean up##clean distclean maintainer-clean: clean-lib# things built by `all' target	rm -f $(NAME)$(DLSUFFIX) $(OBJS)	$(MAKE) -C $(contribdir)/spi clean	rm -f $(output_files) $(input_files) pg_regress# things created by various check targets	rm -rf testtablespace	rm -rf results tmp_check log	rm -f regression.diffs regression.out regress.out run_check.outifeq ($(PORTNAME), cygwin)	rm -f regress.defendififdef VPATH	rm -f $(remaining_files_build)endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -