1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
| # Copyright (c) 2026, QDB Development Group
|
| test_cfs_sources = files(
| 'test_cfs.c',
| )
|
| if host_system == 'windows'
| test_cfs_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
| '--NAME', 'test_cfs',
| '--FILEDESC', 'test_cfs - test code for Compressed File Store (CFS)',])
| endif
|
| test_cfs = shared_module('test_cfs',
| test_cfs_sources,
| kwargs: pg_test_mod_args,
| )
| test_install_libs += test_cfs
|
| test_install_data += files(
| 'test_cfs.control',
| 'test_cfs--1.0.sql',
| )
|
| tests += {
| 'name': 'test_cfs',
| 'sd': meson.current_source_dir(),
| 'bd': meson.current_build_dir(),
| 'regress': {
| 'sql': [
| 'cfs_codec',
| 'cfs_format',
| 'cfs_storage',
| 'cfs_shmem',
| 'cfs_reloptions',
| 'cfs_smgr',
| 'cfs_segments',
| 'cfs_create_table',
| 'cfs_create_table_like',
| 'cfs_indirect_toast',
| 'cfs_indexing',
| 'cfs_alter_table',
| 'cfs_reloptions_core',
| 'cfs_policy_defaults',
| 'cfs_tablespace',
| 'cfs_cluster',
| 'cfs_truncate',
| 'cfs_vacuum',
| 'cfs_brin',
| 'cfs_brin_bloom',
| 'cfs_brin_multi',
| 'cfs_gin',
| 'cfs_gist',
| 'cfs_hash_index',
| 'cfs_insert',
| 'cfs_update',
| 'cfs_generated_stored',
| 'cfs_vacuum_parallel',
| 'cfs_pageinspect_page',
| 'cfs_pageinspect_brin',
| 'cfs_amcheck_btree',
| 'cfs_amcheck_gin',
| 'cfs_amcheck_heap',
| 'cfs_pageinspect_btree',
| 'cfs_pageinspect_gin',
| 'cfs_pageinspect_gist',
| 'cfs_pageinspect_hash',
| 'cfs_checkpoint_lazy',
| # Keep in sync with REGRESS in Makefile: the batched-read, the
| # scratch-arena contract and the QDB-1516 statistics tests must run
| # under meson too.
| 'cfs_read_batch',
| 'cfs_read_scratch',
| 'cfs_stats',
| # QDB-1507: the matview CONCURRENTLY refresh and the injected
| # .cfp read-failure SQLSTATE tests.
| 'cfs_matview',
| 'cfs_io_error',
| # QDB-1507 U5: a policy-less index never follows the table's policy.
| 'cfs_index_policy',
| ],
| 'regress_args': ['--dlpath', meson.build_root() / 'src/test/regress'],
| },
| 'tap': {
| 'env': {
| 'enable_injection_points': get_option('injection_points') ? 'yes' : 'no',
| },
| 'tests': [
| 't/001_cfs_deferred_2pc.pl',
| 't/002_cfs_shmem_hooks.pl',
| 't/003_cfs_map_memory.pl',
| 't/004_cfs_journal_header.pl',
| 't/005_cfs_mapload_race.pl',
| 't/007_cfs_read_scratch.pl',
| 't/009_cfs_stats_capacity.pl',
| 't/010_cfs_nblocks_journal.pl',
| 't/012_cfs_io_error_sync.pl',
| 't/013_cfs_bg_reload.pl',
| 't/014_cfs_map_corrupt_panic.pl',
| # QDB-1507 U6: pg_prewarm prefetch/buffer on a CFS relation.
| 't/015_cfs_prewarm.pl',
| 't/016_cfs_relcache_lifetime.pl',
| ],
| },
| }
|
|