mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-18 06:20:04 +02:00
63 lines
1.3 KiB
Meson
63 lines
1.3 KiB
Meson
|
# also used by isolationtester and ecpg tests
|
||
|
pg_regress_c = files('pg_regress.c')
|
||
|
pg_regress_inc = include_directories('.')
|
||
|
|
||
|
regress_sources = pg_regress_c + files(
|
||
|
'pg_regress_main.c'
|
||
|
)
|
||
|
|
||
|
pg_regress_cflags = ['-DHOST_TUPLE="frak"', '-DSHELLPROG="/bin/sh"']
|
||
|
|
||
|
pg_regress = executable('pg_regress',
|
||
|
regress_sources,
|
||
|
c_args: pg_regress_cflags,
|
||
|
dependencies: [frontend_code],
|
||
|
kwargs: default_bin_args + {
|
||
|
'install_dir': dir_pgxs / 'src/test/regress',
|
||
|
},
|
||
|
)
|
||
|
bin_targets += pg_regress
|
||
|
|
||
|
regress_module = shared_module('regress',
|
||
|
['regress.c'],
|
||
|
kwargs: pg_mod_args + {
|
||
|
'install': false,
|
||
|
},
|
||
|
)
|
||
|
testprep_targets += regress_module
|
||
|
|
||
|
# Get some extra C modules from contrib/spi but mark them as not to be
|
||
|
# installed.
|
||
|
# FIXME: avoid the duplication.
|
||
|
|
||
|
autoinc_regress = shared_module('autoinc',
|
||
|
['../../../contrib/spi/autoinc.c'],
|
||
|
kwargs: pg_mod_args + {
|
||
|
'install': false,
|
||
|
},
|
||
|
)
|
||
|
testprep_targets += autoinc_regress
|
||
|
|
||
|
refint_regress = shared_module('refint',
|
||
|
['../../../contrib/spi/refint.c'],
|
||
|
c_args: refint_cflags,
|
||
|
kwargs: pg_mod_args + {
|
||
|
'install': false,
|
||
|
},
|
||
|
)
|
||
|
testprep_targets += refint_regress
|
||
|
|
||
|
|
||
|
tests += {
|
||
|
'name': 'main',
|
||
|
'sd': meson.current_source_dir(),
|
||
|
'bd': meson.current_build_dir(),
|
||
|
'regress': {
|
||
|
'schedule': files('parallel_schedule'),
|
||
|
'test_kwargs': {
|
||
|
'priority': 50,
|
||
|
'timeout': 1000,
|
||
|
},
|
||
|
},
|
||
|
}
|