]> eyrie.org Git - kerberos/krb5-strength.git/blob - ci/test
cd75a5df767dcde15b599c3ace5265ab013c946e
[kerberos/krb5-strength.git] / ci / test
1 #!/bin/sh
2 #
3 # Run tests for continuous integration.
4 #
5 # This script is normally run in a test container or VM, such as via GitHub
6 # Actions.
7 #
8 # Copyright 2015-2020 Russ Allbery <eagle@eyrie.org>
9 #
10 # SPDX-License-Identifier: MIT
11
12 set -eux
13
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}"
18
19 # Build everything.
20 ./bootstrap
21 if [ "$KERBEROS" = 'heimdal' ]; then
22     ./configure CC="$COMPILER" PATH_KRB5_CONFIG=/usr/bin/krb5-config.heimdal
23 else
24     ./configure CC="$COMPILER"
25 fi
26 make warnings
27
28 # Run tests.
29 make check