mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Mbed-TLS is a tiny TLS implementation designed for embedded environment which can greatly reduce the disk space requirement compared to OpenSSL. While we already have crypto_kernel for this purpose and Mbed-TLS lacking hash/cipher support can cause reduced functionality, there're situations where AF_ALG is not available but we're fine with limited scenarios like LUKS2 only.
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
test-clang-compilation:
|
|
extends:
|
|
- .gitlab-shared-clang
|
|
script:
|
|
- export CFLAGS="-Wall -Werror"
|
|
- ./autogen.sh
|
|
- ./configure
|
|
- make -j
|
|
- make -j check-programs
|
|
|
|
test-clang-Wall-script:
|
|
extends:
|
|
- .gitlab-shared-clang
|
|
script:
|
|
- export CFLAGS="-g -O0"
|
|
- export CC="$CI_PROJECT_DIR/.gitlab/ci/clang-Wall"
|
|
- ./autogen.sh
|
|
- ./configure
|
|
- make -j CFLAGS="-g -O0 -Werror"
|
|
- make -j CFLAGS="-g -O0 -Werror" check-programs
|
|
|
|
test-scan-build:
|
|
extends:
|
|
- .gitlab-shared-clang
|
|
script:
|
|
- ./autogen.sh
|
|
- scan-build${COMPILER_VERSION:+-$COMPILER_VERSION} -V ./configure CFLAGS="-g -O0"
|
|
- make clean
|
|
- scan-build${COMPILER_VERSION:+-$COMPILER_VERSION} --status-bugs -maxloop 10 make -j
|
|
- scan-build${COMPILER_VERSION:+-$COMPILER_VERSION} --status-bugs -maxloop 10 make -j check-programs
|
|
|
|
test-scan-build-backends:
|
|
extends:
|
|
- .gitlab-shared-clang
|
|
parallel:
|
|
matrix:
|
|
- BACKENDS: [
|
|
"openssl",
|
|
"gcrypt",
|
|
"nss",
|
|
"kernel",
|
|
"nettle",
|
|
"mbedtls"
|
|
]
|
|
rules:
|
|
- changes:
|
|
- lib/crypto_backend/*
|
|
script:
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libgcrypt20-dev libnss3-dev nettle-dev libmbedtls-dev
|
|
- ./autogen.sh
|
|
- echo "Configuring with crypto backend $BACKENDS"
|
|
- scan-build${COMPILER_VERSION:+-$COMPILER_VERSION} -V ./configure CFLAGS="-g -O0" --with-crypto_backend=$BACKENDS
|
|
- make clean
|
|
- scan-build${COMPILER_VERSION:+-$COMPILER_VERSION} --status-bugs -maxloop 10 make -j
|
|
- scan-build${COMPILER_VERSION:+-$COMPILER_VERSION} --status-bugs -maxloop 10 make -j check-programs
|