Skip to content

Commit 0805cc0

Browse files
committed
test: Run keyring trusted/encrypted test in CI.
And install dependencies unconditionally.
1 parent 9d03e59 commit 0805cc0

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

.gitlab/ci/centos.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
libblkid-devel libpwquality-devel libselinux-devel libssh-devel libtool
1111
libuuid-devel make popt-devel libsepol-devel nc openssh-clients passwd
1212
pkgconfig sharutils sshpass tar uuid-devel vim-common device-mapper
13-
expect gettext git jq keyutils openssl-devel openssl gem
13+
expect gettext git jq keyutils openssl-devel openssl gem swtpm swtpm-tools
14+
tpm2-tools
1415
- sudo gem install asciidoctor
1516
- sudo -E git clean -xdf
1617
- ./autogen.sh
@@ -28,6 +29,7 @@ test-main-commit-centos-stream9:
2829
interruptible: true
2930
variables:
3031
RUN_SSH_PLUGIN_TEST: "1"
32+
RUN_KEYRING_TRUSTED_TEST: "1"
3133
rules:
3234
- if: $RUN_SYSTEMD_PLUGIN_TEST != null
3335
when: never
@@ -49,6 +51,7 @@ test-mergerq-centos-stream9:
4951
interruptible: true
5052
variables:
5153
RUN_SSH_PLUGIN_TEST: "1"
54+
RUN_KEYRING_TRUSTED_TEST: "1"
5255
rules:
5356
- if: $RUN_SYSTEMD_PLUGIN_TEST != null
5457
when: never

.gitlab/ci/debian.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
- .fail_if_coredump_generated
44
before_script:
55
- sudo apt-get -y update
6-
- >
7-
[ -z "$RUN_SYSTEMD_PLUGIN_TEST" ] ||
8-
sudo apt-get -y install -y -qq swtpm meson ninja-build python3-jinja2
9-
gperf libcap-dev libtss2-dev libmount-dev swtpm-tools
106
- >
117
sudo apt-get -y install -y -qq git gcc make autoconf automake autopoint
128
pkgconf libtool libtool-bin gettext libssl-dev libdevmapper-dev
139
libpopt-dev uuid-dev libsepol-dev libjson-c-dev libssh-dev libblkid-dev
1410
tar libargon2-dev libpwquality-dev sharutils dmsetup jq xxd expect
1511
keyutils netcat-openbsd passwd openssh-client sshpass asciidoctor
12+
swtpm meson ninja-build python3-jinja2 gperf libcap-dev libtss2-dev
13+
libmount-dev swtpm-tools tpm2-tools
1614
- sudo apt-get -y build-dep cryptsetup
1715
- sudo -E git clean -xdf
1816
- ./autogen.sh
@@ -29,6 +27,7 @@ test-mergerq-job-debian:
2927
variables:
3028
DISTRO: cryptsetup-debian-12
3129
RUN_SSH_PLUGIN_TEST: "1"
30+
RUN_KEYRING_TRUSTED_TEST: "1"
3231
rules:
3332
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
3433
when: never
@@ -49,6 +48,7 @@ test-main-commit-job-debian:
4948
variables:
5049
DISTRO: cryptsetup-debian-12
5150
RUN_SSH_PLUGIN_TEST: "1"
51+
RUN_KEYRING_TRUSTED_TEST: "1"
5252
rules:
5353
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
5454
when: never
@@ -70,6 +70,7 @@ test-mergerq-job-debian-meson:
7070
variables:
7171
DISTRO: cryptsetup-debian-12
7272
RUN_SSH_PLUGIN_TEST: "1"
73+
RUN_KEYRING_TRUSTED_TEST: "1"
7374
rules:
7475
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
7576
when: never
@@ -91,6 +92,7 @@ test-main-commit-job-debian-meson:
9192
variables:
9293
DISTRO: cryptsetup-debian-12
9394
RUN_SSH_PLUGIN_TEST: "1"
95+
RUN_KEYRING_TRUSTED_TEST: "1"
9496
rules:
9597
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
9698
when: never

.gitlab/ci/fedora.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@
44
extends:
55
- .fail_if_coredump_generated
66
before_script:
7-
- >
8-
[ -z "$RUN_SYSTEMD_PLUGIN_TEST" ] ||
9-
sudo dnf -y -q install
10-
swtpm meson ninja-build python3-jinja2 gperf libcap-devel tpm2-tss-devel
11-
libmount-devel swtpm-tools
127
- >
138
sudo dnf -y -q install
149
autoconf automake device-mapper-devel gcc gettext-devel json-c-devel
1510
libargon2-devel libblkid-devel libpwquality-devel libselinux-devel
1611
libssh-devel libtool libuuid-devel make popt-devel
1712
libsepol-devel.x86_64 netcat openssh-clients passwd pkgconfig sharutils
1813
sshpass tar uuid-devel vim-common device-mapper expect gettext git jq
19-
keyutils openssl-devel openssl asciidoctor
14+
keyutils openssl-devel openssl asciidoctor swtpm meson ninja-build
15+
python3-jinja2 gperf libcap-devel tpm2-tss-devel libmount-devel swtpm-tools
2016
- sudo -E git clean -xdf
2117
- ./autogen.sh
2218
- ./configure --enable-fips --enable-pwquality --enable-libargon2 --with-crypto_backend=openssl --enable-asciidoc
@@ -32,6 +28,7 @@ test-main-commit-job-rawhide:
3228
allow_failure: true
3329
variables:
3430
RUN_SSH_PLUGIN_TEST: "1"
31+
RUN_KEYRING_TRUSTED_TEST: "1"
3532
rules:
3633
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
3734
when: never
@@ -52,6 +49,7 @@ test-mergerq-job-rawhide:
5249
allow_failure: true
5350
variables:
5451
RUN_SSH_PLUGIN_TEST: "1"
52+
RUN_KEYRING_TRUSTED_TEST: "1"
5553
rules:
5654
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
5755
when: never

.gitlab/ci/ubuntu.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
- .fail_if_coredump_generated
44
before_script:
55
- sudo apt-get -y update
6-
- >
7-
[ -z "$RUN_SYSTEMD_PLUGIN_TEST" ] ||
8-
sudo apt-get -y install -y -qq swtpm meson ninja-build python3-jinja2
9-
gperf libcap-dev libtss2-dev libmount-dev swtpm-tools
106
- >
117
sudo apt-get -y install -y -qq git gcc make autoconf automake autopoint
128
pkgconf libtool libtool-bin gettext libssl-dev libdevmapper-dev
139
libpopt-dev uuid-dev libsepol-dev libjson-c-dev libssh-dev libblkid-dev
1410
tar libargon2-dev libpwquality-dev sharutils dmsetup jq xxd expect
1511
keyutils netcat-openbsd passwd openssh-client sshpass asciidoctor
12+
swtpm meson ninja-build python3-jinja2 gperf libcap-dev libtss2-dev
13+
libmount-dev swtpm-tools tpm2-tools
1614
# scsi_debug, gost crypto
1715
- sudo apt-get -y install dkms linux-headers-$(uname -r) linux-modules-extra-$(uname -r) gost-crypto-dkms
1816
- sudo apt-get -y build-dep cryptsetup
@@ -31,6 +29,7 @@ test-mergerq-job-ubuntu:
3129
variables:
3230
DISTRO: cryptsetup-ubuntu-2404
3331
RUN_SSH_PLUGIN_TEST: "1"
32+
RUN_KEYRING_TRUSTED_TEST: "1"
3433
rules:
3534
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
3635
when: never
@@ -51,6 +50,7 @@ test-main-commit-job-ubuntu:
5150
variables:
5251
DISTRO: cryptsetup-ubuntu-2404
5352
RUN_SSH_PLUGIN_TEST: "1"
53+
RUN_KEYRING_TRUSTED_TEST: "1"
5454
rules:
5555
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
5656
when: never
@@ -72,6 +72,7 @@ test-mergerq-job-ubuntu-meson:
7272
variables:
7373
DISTRO: cryptsetup-ubuntu-2404
7474
RUN_SSH_PLUGIN_TEST: "1"
75+
RUN_KEYRING_TRUSTED_TEST: "1"
7576
rules:
7677
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
7778
when: never
@@ -93,6 +94,7 @@ test-main-commit-job-ubuntu-meson:
9394
variables:
9495
DISTRO: cryptsetup-ubuntu-2404
9596
RUN_SSH_PLUGIN_TEST: "1"
97+
RUN_KEYRING_TRUSTED_TEST: "1"
9698
rules:
9799
- if: $CI_PROJECT_PATH != "cryptsetup/cryptsetup"
98100
when: never

0 commit comments

Comments
 (0)