| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
amcheck_sources = files( |
| 4 |
'verify_common.c', |
| 5 |
'verify_gin.c', |
| 6 |
'verify_heapam.c', |
| 7 |
'verify_nbtree.c', |
| 8 |
) |
| 9 |
|
| 10 |
if host_system == 'windows' |
| 11 |
amcheck_sources += rc_lib_gen.process(win32ver_rc, extra_args: [ |
| 12 |
'--NAME', 'amcheck', |
| 13 |
'--FILEDESC', 'amcheck - function for verifying relation integrity',]) |
| 14 |
endif |
| 15 |
|
| 16 |
amcheck = shared_module('amcheck', |
| 17 |
amcheck_sources, |
| 18 |
kwargs: contrib_mod_args, |
| 19 |
) |
| 20 |
contrib_targets += amcheck |
| 21 |
|
| 22 |
install_data( |
| 23 |
'amcheck.control', |
| 24 |
'amcheck--1.0.sql', |
| 25 |
'amcheck--1.0--1.1.sql', |
| 26 |
'amcheck--1.1--1.2.sql', |
| 27 |
'amcheck--1.2--1.3.sql', |
| 28 |
'amcheck--1.3--1.4.sql', |
| 29 |
'amcheck--1.4--1.5.sql', |
| 30 |
kwargs: contrib_data_args, |
| 31 |
) |
| 32 |
|
| 33 |
tests += { |
| 34 |
'name': 'amcheck', |
| 35 |
'sd': meson.current_source_dir(), |
| 36 |
'bd': meson.current_build_dir(), |
| 37 |
'regress': { |
| 38 |
'sql': [ |
| 39 |
'check', |
| 40 |
'check_btree', |
| 41 |
'check_gin', |
| 42 |
'check_heap', |
| 43 |
], |
| 44 |
}, |
| 45 |
'tap': { |
| 46 |
'tests': [ |
| 47 |
't/001_verify_heapam.pl', |
| 48 |
't/002_cic.pl', |
| 49 |
't/003_cic_2pc.pl', |
| 50 |
't/004_verify_nbtree_unique.pl', |
| 51 |
't/005_pitr.pl', |
| 52 |
't/006_verify_gin.pl', |
| 53 |
], |
| 54 |
}, |
| 55 |
} |