1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/test
David Steele f9bbafbf3f C test harness improvements.
Add harness depends when present.

Include libyaml in all test builds.

Fix mode on paths before trying to remove and set test path with mode 770 to match the Perl test harness.

With these changes all unit tests run except those that specify the define (e.g. common/assert-off), binReq (e.g. command/archive-get), or containerReq (e.g. protocol/protocol) keywords.

Builds and code generation need to be done in advance. The following commands are required for setup:

meson setup -Dwerror=true -Dfatal-errors=true -Dbuildtype=debug build pgbackrest
ninja -C build test/src/test-pgbackrest
build/src/build-code help pgbackrest
build/src/build-code postgres pgbackrest

Now tests can be run, e.g.:

build/test/src/test-pgbackrest --module=postgres/interface
2022-07-20 19:02:14 -04:00
..
certificate Add TLS Server. 2021-10-18 14:32:41 -04:00
code-count v2.40: OpenSSL 3 Support 2022-07-18 09:32:30 -04:00
data Automate generation of WAL and pg_control test files. 2017-11-18 20:02:54 -05:00
lib/pgBackRestTest Update CI to use Ubuntu 22.04 and Fedora 36. 2022-06-06 16:32:20 -04:00
patch Add experimental Meson build. 2022-06-03 14:13:56 -04:00
src C test harness improvements. 2022-07-20 19:02:14 -04:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
ci.pl Add experimental Meson build. 2022-06-03 14:13:56 -04:00
container.yaml Update CI to use Ubuntu 22.04 and Fedora 36. 2022-06-06 16:32:20 -04:00
define.yaml Create snapshot when listing contents of a path. 2022-07-08 17:21:39 -04:00
Dockerfile Add valgrind to Dockerfile missed in a16cf5ea. 2022-06-09 17:18:32 -04:00
test.pl Unify code builder binaries into a single binary. 2022-07-20 17:45:39 -04:00
Vagrantfile Update CI to use Ubuntu 22.04 and Fedora 36. 2022-06-06 16:32:20 -04:00