diff options
| author | Peter Eisentraut | 2011-02-14 19:52:32 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2011-02-15 04:52:12 +0000 |
| commit | 2fd77060a2db814146cf1f6cf77755a4b4fd9a80 (patch) | |
| tree | d3dd4b4c0e81172478f46142f281b134283db1c8 /src/pl | |
| parent | 0d90dc16f87bd991d7eb9f536ca46acef7586d95 (diff) | |
Allow make check in PL directories
Also add make check-world target, and refactor pg_regress invocation
code in makefiles a bit.
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plperl/.gitignore | 2 | ||||
| -rw-r--r-- | src/pl/plperl/GNUmakefile | 8 | ||||
| -rw-r--r-- | src/pl/plpython/.gitignore | 2 | ||||
| -rw-r--r-- | src/pl/plpython/Makefile | 13 | ||||
| -rw-r--r-- | src/pl/tcl/.gitignore | 2 | ||||
| -rw-r--r-- | src/pl/tcl/Makefile | 8 |
6 files changed, 25 insertions, 10 deletions
diff --git a/src/pl/plperl/.gitignore b/src/pl/plperl/.gitignore index c04f42ba07a..1a798733ac5 100644 --- a/src/pl/plperl/.gitignore +++ b/src/pl/plperl/.gitignore @@ -4,4 +4,6 @@ /plperl_opmask.h # Generated subdirectories +/log/ /results/ +/tmp_check/ diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 85cf9a8f930..01e585e4280 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -76,8 +76,11 @@ installdirs: installdirs-lib uninstall: uninstall-lib +check: submake + $(pg_regress_check) $(REGRESS_OPTS) $(REGRESS) + installcheck: submake - $(top_builddir)/src/test/regress/pg_regress --inputdir=$(srcdir) --psqldir=$(PSQLDIR) $(REGRESS_OPTS) $(REGRESS) + $(pg_regress_installcheck) $(REGRESS_OPTS) $(REGRESS) .PHONY: submake submake: @@ -85,8 +88,7 @@ submake: clean distclean maintainer-clean: clean-lib rm -f SPI.c Util.c $(OBJS) perlchunks.h plperl_opmask.h - rm -rf results - rm -f regression.diffs regression.out + rm -rf $(pg_regress_clean_files) else # can't build diff --git a/src/pl/plpython/.gitignore b/src/pl/plpython/.gitignore index 19b6c5ba425..5dcb3ff9723 100644 --- a/src/pl/plpython/.gitignore +++ b/src/pl/plpython/.gitignore @@ -1,2 +1,4 @@ # Generated subdirectories +/log/ /results/ +/tmp_check/ diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 16d78ae0e28..3a2411bea18 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -120,13 +120,19 @@ prep3: clean3: rm -rf python3/ +check: submake prep3 + $(pg_regress_check) --inputdir=./python3 --outputdir=./python3 $(REGRESS_OPTS) $(REGRESS) + installcheck: submake prep3 - $(top_builddir)/src/test/regress/pg_regress --inputdir=./python3 --outputdir=./python3 --psqldir=$(PSQLDIR) $(REGRESS_OPTS) $(REGRESS) + $(pg_regress_installcheck) --inputdir=./python3 --outputdir=./python3 $(REGRESS_OPTS) $(REGRESS) clean: clean3 else +check: submake + $(pg_regress_check) $(REGRESS_OPTS) $(REGRESS) + installcheck: submake - $(top_builddir)/src/test/regress/pg_regress --inputdir=$(srcdir) --psqldir=$(PSQLDIR) $(REGRESS_OPTS) $(REGRESS) + $(pg_regress_installcheck) $(REGRESS_OPTS) $(REGRESS) endif .PHONY: submake @@ -135,8 +141,7 @@ submake: clean distclean maintainer-clean: clean-lib rm -f $(OBJS) - rm -rf results - rm -f regression.diffs regression.out + rm -rf $(pg_regress_clean_files) ifeq ($(PORTNAME), win32) rm -f python${pytverstr}.def endif diff --git a/src/pl/tcl/.gitignore b/src/pl/tcl/.gitignore index 19b6c5ba425..5dcb3ff9723 100644 --- a/src/pl/tcl/.gitignore +++ b/src/pl/tcl/.gitignore @@ -1,2 +1,4 @@ # Generated subdirectories +/log/ /results/ +/tmp_check/ diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 24be38ff69b..b29478dd6fd 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -58,8 +58,11 @@ installdirs: installdirs-lib uninstall: uninstall-lib $(MAKE) -C modules $@ +check: submake + $(pg_regress_check) $(REGRESS_OPTS) $(REGRESS) + installcheck: submake - $(top_builddir)/src/test/regress/pg_regress --inputdir=$(srcdir) --psqldir=$(PSQLDIR) $(REGRESS_OPTS) $(REGRESS) + $(pg_regress_installcheck) $(REGRESS_OPTS) $(REGRESS) .PHONY: submake submake: @@ -77,6 +80,5 @@ endif # TCL_SHARED_BUILD = 0 clean distclean maintainer-clean: clean-lib rm -f $(OBJS) - rm -rf results - rm -f regression.diffs regression.out + rm -rf $(pg_regress_clean_files) $(MAKE) -C modules $@ |
