]> granicus.if.org Git - postgresql/commitdiff
Fix oversights in new plpgsql test suite infrastructure.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Dec 2017 16:32:49 +0000 (11:32 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Dec 2017 16:32:49 +0000 (11:32 -0500)
Fix a couple of minor oversights in commit 632b03da3: the tests
should be run in database "pl_regression" like the other PLs do,
and we should clean up the tests' output cruft during "make clean".

src/pl/plpgsql/src/Makefile

index 64991c3115ac7c793df87088c61c274c5c28304e..76ac247e578310f64cb4590ad768e4393e255e1d 100644 (file)
@@ -24,6 +24,8 @@ OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o \
 
 DATA = plpgsql.control plpgsql--1.0.sql plpgsql--unpackaged--1.0.sql
 
+REGRESS_OPTS = --dbname=$(PL_TESTDB)
+
 REGRESS = plpgsql_call
 
 all: all-lib
@@ -85,6 +87,7 @@ distprep: pl_gram.h pl_gram.c plerrcodes.h
 # so they are not cleaned here.
 clean distclean: clean-lib
        rm -f $(OBJS)
+       rm -rf $(pg_regress_clean_files)
 
-maintainer-clean: clean
+maintainer-clean: distclean
        rm -f pl_gram.c pl_gram.h plerrcodes.h