Skip to content

Commit

Permalink
Enable TAP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Mar 23, 2024
1 parent 0880f11 commit f5e99f5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
buildfarm-client:alpine \
--test \
--config ${{ matrix.builder }}.conf \
--skip-steps=recovery-check \
--delay-check \
${{ matrix.branch }}
# TODO: Remove --delay-check once this is fixed:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
buildfarm-client:alpine \
--test \
--config ${{ matrix.builder }}.conf \
--skip-steps=recovery-check \
--delay-check
# TODO: Remove --delay-check once this is fixed:
# https://www.postgresql.org/message-id/flat/fddd1cd6-dc16-40a2-9eb5-d7fef2101488%40technowledgy.de
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ RUN apk add \
ninja \
nss_wrapper \
openldap-dev \
openssl \
openssl-dev \
ossp-uuid-dev \
perl \
perl-dev \
perl-ipc-run \
perl-lwp-protocol-https \
perl-mozilla-ca \
python3-dev \
Expand Down Expand Up @@ -62,4 +64,4 @@ VOLUME /buildroot
ENTRYPOINT ["/docker-entrypoint.sh"]
# TODO: Remove --delay-check once this is fixed:
# https://www.postgresql.org/message-id/flat/fddd1cd6-dc16-40a2-9eb5-d7fef2101488%40technowledgy.de
CMD ["--test", "--config", "autoconf.conf", "--delay-check"]
CMD ["--test", "--config", "autoconf.conf", "--skip-steps=recovery-check", "--delay-check"]
2 changes: 2 additions & 0 deletions autoconf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ $PGGBuild::conf{secret} = $ENV{AUTOCONF_SECRET} // $PGBuild::conf{secret};
$PGBuild::conf{make_jobs} = 2;

push(@{$PGBuild::conf{config_opts}}, (
'--enable-tap-tests',
'--with-pam',
'--with-ssl=openssl',
'--with-uuid=ossp'
));

Expand Down
1 change: 1 addition & 0 deletions meson.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $PGBuild::conf{meson_jobs} = 2;
push(@{$PGBuild::conf{meson_opts}}, (
'-Dlz4=enabled',
'-Dpam=enabled',
'-Dtap_tests=enabled',
'-Duuid=ossp',
'-Dzstd=enabled'
));
Expand Down
2 changes: 2 additions & 0 deletions shared.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ $PGBuild::conf{mail_eventsalerts} = {
all => [$ENV{BUILDFARM_EMAIL_ALL}]
};

@PGBuild::conf{build_env}->{PG_TEST_EXTRA} = 'ssl kerberos';

1;
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ docker run --rm \
"$(docker build -q .)" \
--test \
--config autoconf.conf \
--skip-steps=recovery-check \
--delay-check \
"$@"
# TODO: Remove --delay-check once this is fixed:
Expand Down

0 comments on commit f5e99f5

Please sign in to comment.