From cd47eb9472c716d2e7187a21f355d57603c75169 Mon Sep 17 00:00:00 2001 From: Matthias van de Meent Date: Wed, 15 Jan 2025 03:29:45 +0100 Subject: [PATCH 1/2] Add regression tests schedule When used by pg_regress this allows parallel tests, reducing test runtime on many-core systems. --- regress_schedule | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 regress_schedule diff --git a/regress_schedule b/regress_schedule new file mode 100644 index 0000000..dfdb7e0 --- /dev/null +++ b/regress_schedule @@ -0,0 +1,2 @@ +test: init +test: base_plan pg_hint_plan ut-init ut-A ut-S ut-J ut-L ut-G ut-R ut-fdw ut-W ut-T ut-fini plpgsql hint_table oldextversions From 11ea62ddec8a79f2b62a1d7e1f236a0e3a4c89ef Mon Sep 17 00:00:00 2001 From: Matthias van de Meent Date: Wed, 15 Jan 2025 03:33:30 +0100 Subject: [PATCH 2/2] Use a pg_regress test schedule file This allows for parallelized execution of test, reducing total runtime of the test suite by a factor of the available cores. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ae2daf7..01f0b08 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,7 @@ OBJS = \ HINTPLANVER = 1.8.0 -REGRESS = init base_plan pg_hint_plan ut-init ut-A ut-S ut-J ut-L ut-G ut-R \ - ut-fdw ut-W ut-T ut-fini plpgsql hint_table oldextversions +REGRESS = --schedule=$(srcdir)/regress_schedule REGRESS_OPTS = --encoding=UTF8 EXTENSION = pg_hint_plan