diff options
Diffstat (limited to 'ci/test')
-rwxr-xr-x | ci/test | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +#!/bin/sh +# +# Run tests for continuous integration. +# +# This script is normally run in a test container or VM, such as via GitHub +# Actions. +# +# Copyright 2015-2020 Russ Allbery <eagle@eyrie.org> +# +# SPDX-License-Identifier: MIT + +set -eux + +# Normally, COMPILER and KERBEROS are set based on the CI matrix, but provide +# a default in case someone runs this test by hand. +COMPILER="${COMPILER:-gcc}" +KERBEROS="${KERBEROS:-mit}" + +# Build everything. +./bootstrap +if [ "$KERBEROS" = 'heimdal' ]; then + ./configure CC="$COMPILER" PATH_KRB5_CONFIG=/usr/bin/krb5-config.heimdal +else + ./configure CC="$COMPILER" +fi +make warnings + +# Run the tests. +make check |