summaryrefslogtreecommitdiff
path: root/src/bin/pg_amcheck/meson.build
blob: 9fae2d8f96a06c22bb32707815fd6442c1347512 (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
# Copyright (c) 2022, PostgreSQL Global Development Group

pg_amcheck_sources = files(
  'pg_amcheck.c',
)

if host_system == 'windows'
  pg_amcheck_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'pg_amcheck',
    '--FILEDESC', 'pg_amcheck - detect corruption within database relations',])
endif

pg_amcheck = executable('pg_amcheck',
  pg_amcheck_sources,
  dependencies: [frontend_code, libpq],
  kwargs: default_bin_args,
)
bin_targets += pg_amcheck

tests += {
  'name': 'pg_amcheck',
  'sd': meson.current_source_dir(),
  'bd': meson.current_build_dir(),
  'tap': {
    'tests': [
      't/001_basic.pl',
      't/002_nonesuch.pl',
      't/003_check.pl',
      't/004_verify_heapam.pl',
      't/005_opclass_damage.pl',
    ],
  },
}

subdir('po', if_found: libintl)