summaryrefslogtreecommitdiffstats
path: root/Makefile.regress
diff options
context:
space:
mode:
authorTom Lane <tgl@fedoraproject.org>2005-01-19 05:02:11 +0000
committerTom Lane <tgl@fedoraproject.org>2005-01-19 05:02:11 +0000
commit6e96691327716b7fb6ea0b9a45fa9474bbc02493 (patch)
tree5618fb4be641ada3a56649bcd307397126735322 /Makefile.regress
parentcc192f6092626400720804e8b3321ab5967e6cfb (diff)
downloadpostgresql-setup-6e96691327716b7fb6ea0b9a45fa9474bbc02493.tar.gz
postgresql-setup-6e96691327716b7fb6ea0b9a45fa9474bbc02493.tar.xz
postgresql-setup-6e96691327716b7fb6ea0b9a45fa9474bbc02493.zip
Update to PostgreSQL 8.0.postgresql-8_0_0-1
Diffstat (limited to 'Makefile.regress')
-rw-r--r--Makefile.regress53
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile.regress b/Makefile.regress
new file mode 100644
index 0000000..9a825c2
--- /dev/null
+++ b/Makefile.regress
@@ -0,0 +1,53 @@
+#
+# Simplified makefile for running the PostgreSQL regression tests
+# in an RPM installation
+#
+
+# database encoding
+MULTIBYTE := SQL_ASCII
+
+# maximum simultaneous connections for parallel tests
+MAXCONNOPT :=
+ifdef MAX_CONNECTIONS
+MAXCONNOPT += --max-connections=$(MAX_CONNECTIONS)
+endif
+
+srcdir := .
+
+check: installcheck-parallel
+
+installcheck: cleandirs
+ $(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE)
+
+installcheck-parallel: cleandirs
+ $(SHELL) ./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT)
+
+# The tests command the server to write into testtablespace and results.
+# On a SELinux-enabled system this will fail unless we mark those directories
+# as writable by the server.
+cleandirs:
+ -rm -rf testtablespace results
+ mkdir testtablespace results
+ [ -x /usr/bin/chcon ] && /usr/bin/chcon -t postgresql_db_t testtablespace results
+
+# old interfaces follow...
+
+runcheck: check
+runtest: installcheck
+runtest-parallel: installcheck-parallel
+
+bigtest: cleandirs
+ $(SHELL) ./pg_regress --schedule=$(srcdir)/serial_schedule --multibyte=$(MULTIBYTE) numeric_big
+
+bigcheck: cleandirs
+ $(SHELL) ./pg_regress --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) $(MAXCONNOPT) numeric_big
+
+
+##
+## Clean up
+##
+
+clean distclean maintainer-clean:
+ rm -rf testtablespace
+ rm -rf results tmp_check log
+ rm -f regression.diffs regression.out regress.out run_check.out