From 3f0e786ccbf50a2f819fbf72d51ba13221adaaa1 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Wed, 7 Dec 2022 12:13:35 -0800 Subject: meson: Add 'running' test setup, as a replacement for installcheck To run all tests that support running against existing server: $ meson test --setup running To run just the main pg_regress tests against existing server: $ meson test --setup running regress-running/regress To ensure the 'running' setup continues to work, test it as part of the freebsd CI task. Discussion: https://postgr.es/m/CAH2-Wz=XDQcmLoo7RR_i6FKQdDmcyb9q5gStnfuuQXrOGhB2sQ@mail.gmail.com --- src/test/isolation/meson.build | 1 + src/test/modules/commit_ts/meson.build | 3 +++ src/test/modules/snapshot_too_old/meson.build | 3 +++ src/test/modules/test_oat_hooks/meson.build | 1 + src/test/modules/test_pg_dump/meson.build | 2 ++ src/test/modules/test_slru/meson.build | 1 + src/test/modules/worker_spi/meson.build | 4 +++- src/test/regress/meson.build | 1 + 8 files changed, 15 insertions(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/isolation/meson.build b/src/test/isolation/meson.build index e2ed400a80a..a999791876a 100644 --- a/src/test/isolation/meson.build +++ b/src/test/isolation/meson.build @@ -67,5 +67,6 @@ tests += { 'priority': 40, 'timeout': 1000, }, + 'dbname': 'isolation_regression', }, } diff --git a/src/test/modules/commit_ts/meson.build b/src/test/modules/commit_ts/meson.build index 60cb12164d2..fa86e70e880 100644 --- a/src/test/modules/commit_ts/meson.build +++ b/src/test/modules/commit_ts/meson.build @@ -6,6 +6,9 @@ tests += { 'sql': [ 'commit_timestamp', ], + # Disabled because these tests require "track_commit_timestamp = on", + # which typical runningcheck users do not have (e.g. buildfarm clients). + 'runningcheck': false, }, 'tap': { 'tests': [ diff --git a/src/test/modules/snapshot_too_old/meson.build b/src/test/modules/snapshot_too_old/meson.build index efd3f1f113b..5094b52949b 100644 --- a/src/test/modules/snapshot_too_old/meson.build +++ b/src/test/modules/snapshot_too_old/meson.build @@ -10,5 +10,8 @@ tests += { 'sto_using_hash_index', ], 'regress_args': ['--temp-config', files('sto.conf')], + # Disabled because these tests require "old_snapshot_threshold" >= 0, which + # typical runningcheck users do not have (e.g. buildfarm clients). + 'runningcheck': false, }, } diff --git a/src/test/modules/test_oat_hooks/meson.build b/src/test/modules/test_oat_hooks/meson.build index 8802bbbac55..e9d09d92c30 100644 --- a/src/test/modules/test_oat_hooks/meson.build +++ b/src/test/modules/test_oat_hooks/meson.build @@ -25,5 +25,6 @@ tests += { 'test_oat_hooks', ], 'regress_args': ['--no-locale', '--encoding=UTF8'], + 'runningcheck': false, }, } diff --git a/src/test/modules/test_pg_dump/meson.build b/src/test/modules/test_pg_dump/meson.build index 41021829f3a..73f1fcf9428 100644 --- a/src/test/modules/test_pg_dump/meson.build +++ b/src/test/modules/test_pg_dump/meson.build @@ -13,6 +13,8 @@ tests += { 'sql': [ 'test_pg_dump', ], + # doesn't delete its user + 'runningcheck': false, }, 'tap': { 'tests': [ diff --git a/src/test/modules/test_slru/meson.build b/src/test/modules/test_slru/meson.build index ca4633c793e..74dacd11ac8 100644 --- a/src/test/modules/test_slru/meson.build +++ b/src/test/modules/test_slru/meson.build @@ -31,5 +31,6 @@ tests += { 'test_slru', ], 'regress_args': ['--temp-config', files('test_slru.conf')], + 'runningcheck': false, }, } diff --git a/src/test/modules/worker_spi/meson.build b/src/test/modules/worker_spi/meson.build index a4a158c75b9..660d721eea9 100644 --- a/src/test/modules/worker_spi/meson.build +++ b/src/test/modules/worker_spi/meson.build @@ -30,6 +30,8 @@ tests += { 'sql': [ 'worker_spi', ], - 'regress_args': ['--temp-config', files('dynamic.conf'), '--dbname=contrib_regression'], + 'dbname': 'contrib_regression', + 'regress_args': ['--temp-config', files('dynamic.conf')], + 'runningcheck': false, }, } diff --git a/src/test/regress/meson.build b/src/test/regress/meson.build index 72a23737fa7..fbca624948b 100644 --- a/src/test/regress/meson.build +++ b/src/test/regress/meson.build @@ -75,5 +75,6 @@ tests += { 'priority': 50, 'timeout': 1000, }, + 'dbname': 'regression', }, } -- cgit v1.2.3