mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 15:49:58 +00:00
## Problem We created extensions in a single database. The tests could interfere, i.e., discover some service tables left by other extensions and produce unexpected results. ## Summary of changes The tests are now run in a separate timeline, so only one extension owns the database, which prevents interference.
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
diff --git a/Makefile b/Makefile
|
|
index f255fe6..0a0fa65 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -346,7 +346,7 @@ test: test-serial test-parallel
|
|
TB_DIR = test/build
|
|
GENERATED_SCHEDULE_DEPS = $(TB_DIR)/all_tests $(TB_DIR)/exclude_tests
|
|
REGRESS = --schedule $(TB_DIR)/run.sch # Set this again just to be safe
|
|
-REGRESS_OPTS = --inputdir=test --max-connections=$(PARALLEL_CONN) --schedule $(SETUP_SCH) $(REGRESS_CONF)
|
|
+REGRESS_OPTS = --use-existing --dbname=contrib_regression --inputdir=test --max-connections=$(PARALLEL_CONN) --schedule $(SETUP_SCH) $(REGRESS_CONF)
|
|
SETUP_SCH = test/schedule/main.sch # schedule to use for test setup; this can be forcibly changed by some targets!
|
|
IGNORE_TESTS = $(notdir $(EXCLUDE_TEST_FILES:.sql=))
|
|
PARALLEL_TESTS = $(filter-out $(IGNORE_TESTS),$(filter-out $(SERIAL_TESTS),$(ALL_TESTS)))
|
|
diff --git a/test/schedule/create.sql b/test/schedule/create.sql
|
|
index ba355ed..7e250f5 100644
|
|
--- a/test/schedule/create.sql
|
|
+++ b/test/schedule/create.sql
|
|
@@ -1,3 +1,2 @@
|
|
\unset ECHO
|
|
\i test/psql.sql
|
|
-CREATE EXTENSION pgtap;
|
|
diff --git a/test/schedule/main.sch b/test/schedule/main.sch
|
|
index a8a5fbc..0463fc4 100644
|
|
--- a/test/schedule/main.sch
|
|
+++ b/test/schedule/main.sch
|
|
@@ -1,2 +1 @@
|
|
-test: build
|
|
test: create
|