Skip to content
Snippets Groups Projects
Unverified Commit 4c7783de authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Run unit tests


Backend comes with a set of unit tests which may help detect
errors earlier.

Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent cc022aee
Branches
No related tags found
1 merge request!90Compile Perl modules and run unit tests
Pipeline #136190 passed
...@@ -74,6 +74,35 @@ worker: ...@@ -74,6 +74,35 @@ worker:
variables: variables:
image: worker image: worker
unit-tests:
stage: test
tags:
- lightweight
needs:
- job: backend
variables:
PERL_TEST_HARNESS_DUMP_TAP: $CI_PROJECT_DIR/tap-output
image:
name: $CI_REGISTRY_IMAGE/backend:$TAG_SHA
entrypoint: [""]
script:
- apt-get install -qy libtap-formatter-junit-perl
- mkdir -p "$PERL_TEST_HARNESS_DUMP_TAP"
- cd $CI_PROJECT_DIR/src/backend
- make test_unit
after_script:
- |
for d in $PERL_TEST_HARNESS_DUMP_TAP/t/*.t
do
tap2junit $d
done
artifacts:
paths:
- tap-output/*
reports:
junit: tap-output/**/*.xml
when: always
.boot-instance: .boot-instance:
image: debian:bookworm-slim image: debian:bookworm-slim
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment