bind9/bin/tests/system/tsiggss/prereq.sh
Evan Hunt 45fd95544c [v9_11] simplify prereq checks by using feature-test.c
4498.	[test]		Simplify prerequisite checks in system tests.
			[RT #43516]

(cherry picked from commit 5480a74b70)
2016-10-31 17:47:42 -07:00

19 lines
556 B
Bash

#!/bin/sh
#
# Copyright (C) 2010-2012, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
# enable the tsiggss test only if gssapi was enabled
$FEATURETEST --gssapi || {
echo "I:gssapi and krb5 not supported - skipping tsiggss test"
exit 255
}
# ... and crypto
exec $SHELL ../testcrypto.sh