1# Copyright (C) Internet Systems Consortium, Inc. ("ISC") 2# 3# This Source Code Form is subject to the terms of the Mozilla Public 4# License, v. 2.0. If a copy of the MPL was not distributed with this 5# file, You can obtain one at http://mozilla.org/MPL/2.0/. 6# 7# See the COPYRIGHT file distributed with this work for additional 8# information regarding copyright ownership. 9 10srcdir = @srcdir@ 11VPATH = @srcdir@ 12top_srcdir = @top_srcdir@ 13 14VERSION=@BIND9_VERSION@ 15 16@BIND9_MAKE_INCLUDES@ 17 18SUBDIRS = dlzexternal dyndb pipelined rndc rpz rsabigexponent tkey 19 20CINCLUDES = ${ISC_INCLUDES} ${DNS_INCLUDES} 21 22CDEFINES = @USE_GSSAPI@ @CONTRIB_DLZ@ 23CWARNINGS = 24 25DNSLIBS = 26ISCLIBS = ../../../lib/isc/libisc.@A@ @OPENSSL_LIBS@ 27 28DNSDEPLIBS = 29ISCDEPLIBS = 30 31DEPLIBS = 32 33LIBS = @LIBS@ 34 35OBJS = feature-test.@O@ 36SRCS = feature-test.c 37 38TARGETS = feature-test@EXEEXT@ 39 40@BIND9_MAKE_RULES@ 41 42subdirs: ${TARGETS} 43 44feature-test@EXEEXT@: feature-test.@O@ 45 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ feature-test.@O@ ${ISCLIBS} ${LIBS} 46 47# Running the scripts below is bypassed when a separate build directory is 48# used. 49 50# Produce intermediate makefile that assigns unique port numbers to each 51# parallel test. The start port number of 5,000 is arbitrary - it must just 52# be greater than the highest privileged port, 1024. 53# 54# Test names need to be sanitized because Solaris make does not like 55# underscores in target names and requires explicit differentiation 56# between a target name and a directory name (.PHONY is not supported). 57 58.PHONY: parallel.mk 59 60parallel.mk: 61 $(SHELL) parallel.sh > parallel.mk 62 63# Targets to run the tests. 64 65test: parallel.mk subdirs 66 @$(MAKE) -f parallel.mk check 67 @$(SHELL) ./runsequential.sh -r 68 @$(SHELL) ./testsummary.sh 69 70check: test 71 72# Other targets: 73# 74# testclean - delete files generated by running tests. 75# clean - testclean + also delete files built for the tests by "make". 76# distclean - clean + also delete test-related files generated by "configure". 77 78testclean clean distclean:: 79 if test -f ./cleanall.sh; then $(SHELL) ./cleanall.sh; fi 80 rm -f systests.output 81 rm -f random.data 82 rm -f parallel.mk 83 84clean distclean:: 85 rm -f ${TARGETS} 86 rm -f ${OBJS} 87 88distclean:: 89 rm -f conf.sh 90 91installdirs: 92 93install:: 94 95uninstall:: 96