1#!/bin/bash -eu 2 3# basic-in-docker.sh 4# 5# Purpose 6# ------- 7# This runs sanity checks and library tests in a Docker container. The tests 8# are run for both clang and gcc. The testing includes a full test run 9# in the default configuration, partial test runs in the reference 10# configurations, and some dependency tests. 11# 12# WARNING: the Dockerfile used by this script is no longer maintained! See 13# https://github.com/Mbed-TLS/mbedtls-test/blob/master/README.md#quick-start 14# for the set of Docker images we use on the CI. 15# 16# Notes for users 17# --------------- 18# See docker_env.sh for prerequisites and other information. 19 20# Copyright The Mbed TLS Contributors 21# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 22 23source tests/scripts/docker_env.sh 24 25run_in_docker tests/scripts/all.sh 'check_*' 26 27for compiler in clang gcc; do 28 run_in_docker -e CC=${compiler} cmake -D CMAKE_BUILD_TYPE:String="Check" . 29 run_in_docker -e CC=${compiler} make 30 run_in_docker -e CC=${compiler} make test 31 run_in_docker programs/test/selftest 32 run_in_docker -e OSSL_NO_DTLS=1 tests/compat.sh 33 run_in_docker tests/ssl-opt.sh -e '\(DTLS\|SCSV\).*openssl' 34 run_in_docker tests/scripts/test-ref-configs.pl 35 run_in_docker tests/scripts/depends.py curves 36 run_in_docker tests/scripts/depends.py kex 37done 38