Debian Codegraph @

src/test/isolation/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 # pg_regress_c helpfully provided by regress/meson.build
4
5 isolation_sources = pg_regress_c + files(
6 'isolation_main.c',
7 )
8
9 isolationtester_sources = files(
10 'isolationtester.c',
11 )
12
13 spec_scanner = custom_target('specscanner',
14 input: 'specscanner.l',
15 output: 'specscanner.c',
16 command: flex_cmd,
17 )
18 isolationtester_sources += spec_scanner
19 generated_sources += spec_scanner
20
21 spec_parser = custom_target('specparse',
22 input: 'specparse.y',
23 kwargs: bison_kw,
24 )
25 isolationtester_sources += spec_parser
26 generated_sources += spec_parser.to_list()
27
28 if host_system == 'windows'
29 isolation_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
30 '--NAME', 'pg_isolation_regress',
31 '--FILEDESC', 'pg_isolation_regress - multi-client test driver',])
32 endif
33
34 pg_isolation_regress = executable('pg_isolation_regress',
35 isolation_sources,
36 c_args: pg_regress_cflags,
37 include_directories: pg_regress_inc,
38 dependencies: [frontend_code, libpq],
39 kwargs: default_bin_args + {
40 'install_dir': dir_pgxs / 'src/test/isolation',
41 },
42 )
43 bin_targets += pg_isolation_regress
44
45
46 if host_system == 'windows'
47 isolationtester_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
48 '--NAME', 'isolationtester',
49 '--FILEDESC', 'isolationtester - multi-client test driver',])
50 endif
51
52 isolationtester = executable('isolationtester',
53 isolationtester_sources,
54 include_directories: include_directories('.'),
55 dependencies: [frontend_code, libpq],
56 kwargs: default_bin_args + {
57 'install_dir': dir_pgxs / 'src/test/isolation',
58 },
59 )
60 bin_targets += isolationtester
61
62 tests += {
63 'name': 'isolation',
64 'sd': meson.current_source_dir(),
65 'bd': meson.current_build_dir(),
66 'isolation': {
67 'schedule': files('isolation_schedule'),
68 'test_kwargs': {
69 'priority': 40,
70 'timeout': 1000,
71 },
72 'dbname': 'isolation_regression',
73 },
74 }