| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
pg_combinebackup_sources = files( |
| 4 |
'pg_combinebackup.c', |
| 5 |
'backup_label.c', |
| 6 |
'copy_file.c', |
| 7 |
'load_manifest.c', |
| 8 |
'reconstruct.c', |
| 9 |
'write_manifest.c', |
| 10 |
) |
| 11 |
|
| 12 |
if host_system == 'windows' |
| 13 |
pg_combinebackup_sources += rc_bin_gen.process(win32ver_rc, extra_args: [ |
| 14 |
'--NAME', 'pg_combinebackup', |
| 15 |
'--FILEDESC', 'pg_combinebackup - combine incremental backups',]) |
| 16 |
endif |
| 17 |
|
| 18 |
pg_combinebackup = executable('pg_combinebackup', |
| 19 |
pg_combinebackup_sources, |
| 20 |
dependencies: [frontend_code], |
| 21 |
kwargs: default_bin_args, |
| 22 |
) |
| 23 |
bin_targets += pg_combinebackup |
| 24 |
|
| 25 |
tests += { |
| 26 |
'name': 'pg_combinebackup', |
| 27 |
'sd': meson.current_source_dir(), |
| 28 |
'bd': meson.current_build_dir(), |
| 29 |
'tap': { |
| 30 |
'tests': [ |
| 31 |
't/001_basic.pl', |
| 32 |
't/002_compare_backups.pl', |
| 33 |
't/003_timeline.pl', |
| 34 |
't/004_manifest.pl', |
| 35 |
't/005_integrity.pl', |
| 36 |
't/006_db_file_copy.pl', |
| 37 |
't/007_wal_level_minimal.pl', |
| 38 |
't/008_promote.pl', |
| 39 |
't/009_no_full_file.pl', |
| 40 |
't/010_hardlink.pl', |
| 41 |
't/011_ib_truncation.pl', |
| 42 |
't/012_vm_consistency.pl', |
| 43 |
], |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
subdir('po', if_found: libintl) |