summaryrefslogtreecommitdiff
path: root/src/test/modules/test_custom_stats/meson.build
blob: f6b3f5c45a6daa0b3f5aac8fef3edfe95585a0ad (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
49
50
51
52
53
54
55
# Copyright (c) 2025, PostgreSQL Global Development Group

test_custom_var_stats_sources = files(
  'test_custom_var_stats.c',
)

if host_system == 'windows'
  test_custom_var_stats_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'test_custom_var_stats',
    '--FILEDESC', 'test_custom_var_stats - variable-sized custom pgstats',])
endif

test_custom_var_stats = shared_module('test_custom_var_stats',
  test_custom_var_stats_sources,
  kwargs: pg_test_mod_args,
)
test_install_libs += test_custom_var_stats

test_install_data += files(
  'test_custom_var_stats.control',
  'test_custom_var_stats--1.0.sql',
)

test_custom_fixed_stats_sources = files(
  'test_custom_fixed_stats.c',
)

if host_system == 'windows'
  test_custom_fixed_stats_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
    '--NAME', 'test_custom_fixed_stats',
    '--FILEDESC', 'test_custom_fixed_stats - fixed-sized custom pgstats',])
endif

test_custom_fixed_stats = shared_module('test_custom_fixed_stats',
  test_custom_fixed_stats_sources,
  kwargs: pg_test_mod_args,
)
test_install_libs += test_custom_fixed_stats

test_install_data += files(
  'test_custom_fixed_stats.control',
  'test_custom_fixed_stats--1.0.sql',
)

tests += {
  'name': 'test_custom_stats',
  'sd': meson.current_source_dir(),
  'bd': meson.current_build_dir(),
  'tap': {
    'tests': [
      't/001_custom_stats.pl',
    ],
    'runningcheck': false,
  },
}