blob: cfb72f4cc78a6ddcfb7e09e66d30baefdbcb0aad [file] [log] [blame]
Peter Kolbuse4e2d3a2018-12-24 09:04:54 -06001#!/bin/bash -eu
2
3# basic-in-docker.sh
4#
5# This file is part of mbed TLS (https://tls.mbed.org)
6#
7# Copyright (c) 2018-2019, ARM Limited, All Rights Reserved
8#
9# Purpose
10# -------
11# This runs a rough equivalent of the travis.yml in a Docker container.
12# The tests are run for both clang and gcc.
13#
14# Notes for users
15# ---------------
16# See docker_env.sh for prerequisites and other information.
17
18source tests/scripts/docker_env.sh
19
20run_in_docker tests/scripts/recursion.pl library/*.c
21run_in_docker tests/scripts/check-generated-files.sh
22run_in_docker tests/scripts/check-doxy-blocks.pl
23run_in_docker tests/scripts/check-names.sh
24run_in_docker tests/scripts/check-files.py
25run_in_docker tests/scripts/doxygen.sh
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/curves.pl
36 run_in_docker tests/scripts/key-exchanges.pl
37done