3 # Run tests for continuous integration.
5 # This script is normally run in a test container or VM, such as via GitHub
8 # Copyright 2015-2020 Russ Allbery <eagle@eyrie.org>
10 # SPDX-License-Identifier: MIT
14 # Normally, COMPILER and KERBEROS are set based on the CI matrix, but provide
15 # a default in case someone runs this test by hand.
16 COMPILER="${COMPILER:-gcc}"
17 KERBEROS="${KERBEROS:-mit}"
21 if [ "$KERBEROS" = 'heimdal' ]; then
22 ./configure CC="$COMPILER" PATH_KRB5_CONFIG=/usr/bin/krb5-config.heimdal
24 ./configure CC="$COMPILER"
28 # Run the tests with valgrind for one of the compilers. Arbitrarily
29 # pick the GCC build. (The assumption here is that other compilers won't
30 # produce sufficiently different code as to create memory management
32 if [ "$COMPILER" = 'gcc' ]; then
38 # Run some additional checks for one of the builds. Arbitrarily pick the GCC
40 if [ "$COMPILER" = 'gcc' ] && [ "$KERBEROS" = 'mit' ]; then