diff options
author | Andres Freund <andres@anarazel.de> | 2022-12-07 12:13:35 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-12-07 12:13:35 -0800 |
commit | 3f0e786ccbf50a2f819fbf72d51ba13221adaaa1 (patch) | |
tree | 08329608a9f55fd0710ee231e0e96bf8e4ec1d8e /src | |
parent | 8305629afe64c9065369d022e91be9f16f3972fa (diff) | |
download | postgresql-3f0e786ccbf50a2f819fbf72d51ba13221adaaa1.tar.gz postgresql-3f0e786ccbf50a2f819fbf72d51ba13221adaaa1.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/test/meson.build | 1 | ||||
-rw-r--r-- | src/test/isolation/meson.build | 1 | ||||
-rw-r--r-- | src/test/modules/commit_ts/meson.build | 3 | ||||
-rw-r--r-- | src/test/modules/snapshot_too_old/meson.build | 3 | ||||
-rw-r--r-- | src/test/modules/test_oat_hooks/meson.build | 1 | ||||
-rw-r--r-- | src/test/modules/test_pg_dump/meson.build | 2 | ||||
-rw-r--r-- | src/test/modules/test_slru/meson.build | 1 | ||||
-rw-r--r-- | src/test/modules/worker_spi/meson.build | 4 | ||||
-rw-r--r-- | src/test/regress/meson.build | 1 |
9 files changed, 16 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/meson.build b/src/interfaces/ecpg/test/meson.build index 94b26d10314..d4f1f1c0fcf 100644 --- a/src/interfaces/ecpg/test/meson.build +++ b/src/interfaces/ecpg/test/meson.build @@ -84,6 +84,7 @@ tests += { 'test_kwargs': { 'depends': ecpg_test_dependencies, }, + 'dbname': 'ecpg1_regression,ecpg2_regression', 'regress_args': ecpg_regress_args, }, } 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', }, } |