summaryrefslogtreecommitdiffstats
path: root/contrib/amcheck/meson.build
blob: 78a46bf273cc30174cad266988dbfadd2857cc82 (plain)
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
# Copyright (c) 2022-2023, PostgreSQL Global Development Group

amcheck_sources = files(
  'verify_heapam.c',
  'verify_nbtree.c',
)

if host_system == 'windows'
  amcheck_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'amcheck',
    '--FILEDESC', 'amcheck - function for verifying relation integrity',])
endif

amcheck = shared_module('amcheck',
  amcheck_sources,
  kwargs: contrib_mod_args,
)
contrib_targets += amcheck

install_data(
  'amcheck.control',
  'amcheck--1.0.sql',
  'amcheck--1.0--1.1.sql',
  'amcheck--1.1--1.2.sql',
  'amcheck--1.2--1.3.sql',
  kwargs: contrib_data_args,
)

tests += {
  'name': 'amcheck',
  'sd': meson.current_source_dir(),
  'bd': meson.current_build_dir(),
  'regress': {
    'sql': [
      'check',
      'check_btree',
      'check_heap',
    ],
  },
  'tap': {
    'tests': [
      't/001_verify_heapam.pl',
      't/002_cic.pl',
      't/003_cic_2pc.pl',
      't/005_pitr.pl',
    ],
  },
}