CI_REGISTRY_IMAGE: registry.gitlab.isc.org/isc-projects/images/bind9
CCACHE_DIR: "/ccache"
SOFTHSM2_CONF: "/var/tmp/softhsm2/softhsm2.conf"
+ OPENSSL_ENGINES: "/usr/lib/x86_64-linux-gnu/engines-1.1"
+ DEFAULT_OPENSSL_CONF: "/etc/ssl/openssl.cnf"
+ OPENSSL_CONF: "/var/tmp/etc/openssl.cnf"
GIT_DEPTH: 1
BUILD_PARALLEL_JOBS: 6
sudo sh -x bin/tests/system/ifconfig.sh up;
fi
-.setup_softhsm: &setup_softhsm
- - export SLOT=$(sh -x bin/tests/prepare-softhsm2.sh)
- - test -n "${SLOT}" && test "${SLOT}" -gt 0
-
.system_test_common: &system_test_common
<<: *default_triggering_rules
stage: system
before_script:
- - *setup_softhsm
- *retrieve_out_of_tree_workspace
- *setup_interfaces
script:
<<: *default_triggering_rules
stage: unit
before_script:
- - *setup_softhsm
- *retrieve_out_of_tree_workspace
script:
- make -j${TEST_PARALLEL_JOBS:-1} -k unit V=1
CC: gcc
CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined"
LDFLAGS: "-fsanitize=address,undefined"
+ SOFTHSM2_MODULE: "/lib64/libsofthsm2.so"
EXTRA_CONFIGURE: "--with-libidn2 --without-jemalloc"
<<: *fedora_35_amd64_image
<<: *build_job
system:gcc:asan:
+ variables:
+ SOFTHSM2_MODULE: "/lib64/libsofthsm2.so"
<<: *fedora_35_amd64_image
<<: *system_test_job
needs:
CC: gcc
CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread"
LDFLAGS: "-fsanitize=thread"
+ SOFTHSM2_MODULE: "/lib64/libsofthsm2.so"
EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock --without-jemalloc"
<<: *fedora_35_amd64_image
<<: *build_job
system:gcc:tsan:
variables:
+ SOFTHSM2_MODULE: "/lib64/libsofthsm2.so"
TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON}
<<: *fedora_35_amd64_image
<<: *system_test_tsan_job
script:
- *configure
- *setup_interfaces
- - *setup_softhsm
- make -j${BUILD_PARALLEL_JOBS:-1} -k all V=1
- make DESTDIR="${INSTALL_PATH}" install
- git clone --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.isc.org/isc-private/bind-qa.git
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-if [ -n "${SOFTHSM2_CONF}" ] && command -v softhsm2-util >/dev/null; then
- SOFTHSM2_DIR=$(dirname "$SOFTHSM2_CONF")
- mkdir -p "${SOFTHSM2_DIR}/tokens"
- echo "directories.tokendir = ${SOFTHSM2_DIR}/tokens" > "${SOFTHSM2_CONF}"
- echo "objectstore.backend = file" >> "${SOFTHSM2_CONF}"
- echo "log.level = DEBUG" >> "${SOFTHSM2_CONF}"
- softhsm2-util --init-token --free --pin 1234 --so-pin 1234 --label "softhsm2" | awk '/^The token has been initialized and is reassigned to slot/ { print $NF }'
-fi
-exit 0