xref: /freebsd/crypto/openssl/test/recipes/95-test_external_krb5_data/krb5.sh (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1*e0c4386eSCy Schubert#!/bin/sh -ex
2*e0c4386eSCy Schubert#
3*e0c4386eSCy Schubert# Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
4*e0c4386eSCy Schubert#
5*e0c4386eSCy Schubert# Licensed under the Apache License 2.0 (the "License").  You may not use
6*e0c4386eSCy Schubert# this file except in compliance with the License.  You can obtain a copy
7*e0c4386eSCy Schubert# in the file LICENSE in the source distribution or at
8*e0c4386eSCy Schubert# https://www.openssl.org/source/license.html
9*e0c4386eSCy Schubert
10*e0c4386eSCy Schubert# krb5's test suite clears LD_LIBRARY_PATH
11*e0c4386eSCy SchubertLDFLAGS="-L`pwd`/$BLDTOP -Wl,-rpath,`pwd`/$BLDTOP"
12*e0c4386eSCy SchubertCFLAGS="-I`pwd`/$BLDTOP/include -I`pwd`/$SRCTOP/include"
13*e0c4386eSCy Schubert
14*e0c4386eSCy Schubertcd $SRCTOP/krb5/src
15*e0c4386eSCy Schubertautoreconf
16*e0c4386eSCy Schubert./configure --with-ldap --with-prng-alg=os --enable-pkinit \
17*e0c4386eSCy Schubert            --with-crypto-impl=openssl --with-tls-impl=openssl \
18*e0c4386eSCy Schubert            CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
19*e0c4386eSCy Schubert
20*e0c4386eSCy Schubert# quiet make so that Travis doesn't overflow
21*e0c4386eSCy Schubertmake -s
22*e0c4386eSCy Schubert
23*e0c4386eSCy Schubertmake check
24