| # Copyright (c) 2022-2023, PostgreSQL Global Development Group |
| |
| pg_verifybackup_sources = files( |
| 'parse_manifest.c', |
| 'pg_verifybackup.c' |
| ) |
| |
| if host_system == 'windows' |
| pg_verifybackup_sources += rc_bin_gen.process(win32ver_rc, extra_args: [ |
| '--NAME', 'pg_verifybackup', |
| '--FILEDESC', 'pg_verifybackup - verify a backup against using a backup manifest']) |
| endif |
| |
| pg_verifybackup = executable('pg_verifybackup', |
| pg_verifybackup_sources, |
| dependencies: [frontend_code, libpq], |
| kwargs: default_bin_args, |
| ) |
| bin_targets += pg_verifybackup |
| |
| tests += { |
| 'name': 'pg_verifybackup', |
| 'sd': meson.current_source_dir(), |
| 'bd': meson.current_build_dir(), |
| 'tap': { |
| 'env': {'GZIP_PROGRAM': gzip.path(), |
| 'TAR': tar.path(), |
| 'LZ4': program_lz4.found() ? program_lz4.path() : '', |
| 'ZSTD': program_zstd.found() ? program_zstd.path() : ''}, |
| 'tests': [ |
| 't/001_basic.pl', |
| 't/002_algorithm.pl', |
| 't/003_corruption.pl', |
| 't/004_options.pl', |
| 't/005_bad_manifest.pl', |
| 't/006_encoding.pl', |
| 't/007_wal.pl', |
| 't/008_untar.pl', |
| 't/009_extract.pl', |
| 't/010_client_untar.pl', |
| ], |
| }, |
| } |
| |
| subdir('po', if_found: libintl) |