Debian Codegraph @

src/interfaces/ecpg/test/sql/meson.build

raw
1 # Copyright (c) 2022-2025, PostgreSQL Global Development Group
2
3 pgc_files = [
4 'array',
5 'binary',
6 'bytea',
7 'code100',
8 'copystdout',
9 'createtableas',
10 'declare',
11 'define',
12 'desc',
13 'describe',
14 'dynalloc',
15 'dynalloc2',
16 'dyntest',
17 'execute',
18 'fetch',
19 'func',
20 'indicators',
21 'insupd',
22 'oldexec',
23 'parser',
24 'prepareas',
25 'quote',
26 'show',
27 'sqlda',
28 'sqljson',
29 'sqljson_jsontable',
30 'twophase',
31 ]
32
33 pgc_extra_flags = {
34 'define': ['-DCMDLINESYM=123', files('define_prelim.pgc')],
35 'oldexec': ['-r', 'questionmarks'],
36 }
37
38 foreach pgc_file : pgc_files
39 exe_input = custom_target('@[email protected]'.format(pgc_file),
40 input: '@[email protected]'.format(pgc_file),
41 command: ecpg_preproc_test_command_start +
42 pgc_extra_flags.get(pgc_file, []) +
43 ecpg_preproc_test_command_end,
44 kwargs: ecpg_preproc_kw,
45 )
46
47 ecpg_test_dependencies += executable(pgc_file,
48 exe_input,
49 kwargs: ecpg_test_exec_kw,
50 )
51 endforeach