1# Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC") 2# 3# Permission to use, copy, modify, and/or distribute this software for any 4# purpose with or without fee is hereby granted, provided that the above 5# copyright notice and this permission notice appear in all copies. 6# 7# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 8# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 9# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 10# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 11# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 12# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 13# PERFORMANCE OF THIS SOFTWARE. 14 15# Id 16 17srcdir = @srcdir@ 18VPATH = @srcdir@ 19top_srcdir = @top_srcdir@ 20 21# Attempt to disable parallel processing. 22.NOTPARALLEL: 23.NO_PARALLEL: 24 25@BIND9_VERSION@ 26 27@BIND9_MAKE_INCLUDES@ 28 29CINCLUDES = -I. -Iinclude ${DNS_INCLUDES} ${ISC_INCLUDES} @DST_OPENSSL_INC@ 30CDEFINES = @USE_OPENSSL@ -DTESTS="\"${top_builddir}/lib/dns/tests/\"" 31 32ISCLIBS = ../../isc/libisc.@A@ 33ISCDEPLIBS = ../../isc/libisc.@A@ 34DNSLIBS = ../libdns.@A@ @DNS_CRYPTO_LIBS@ 35DNSDEPLIBS = ../libdns.@A@ 36 37LIBS = @LIBS@ @ATFLIBS@ 38 39OBJS = dnstest.@O@ 40SRCS = dnstest.c master_test.c dbiterator_test.c time_test.c \ 41 private_test.c update_test.c zonemgr_test.c zt_test.c \ 42 dbdiff_test.c nsec3_test.c rdataset_test.c rdata_test.c 43 44SUBDIRS = 45TARGETS = master_test@EXEEXT@ dbiterator_test@EXEEXT@ time_test@EXEEXT@ \ 46 private_test@EXEEXT@ update_test@EXEEXT@ zonemgr_test@EXEEXT@ \ 47 zt_test@EXEEXT@ dbversion_test@EXEEXT@ dbdiff_test@EXEEXT@ \ 48 nsec3_test@EXEEXT@ rdataset_test@EXEEXT@ rdata_test@EXEEXT@ 49 50@BIND9_MAKE_RULES@ 51 52master_test@EXEEXT@: master_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 53 ${PERL} mkraw.pl < testdata/master/master12.data.in \ 54 > testdata/master/master12.data 55 ${PERL} mkraw.pl < testdata/master/master13.data.in \ 56 > testdata/master/master13.data 57 ${PERL} mkraw.pl < testdata/master/master14.data.in \ 58 > testdata/master/master14.data 59 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 60 master_test.@O@ dnstest.@O@ ${DNSLIBS} \ 61 ${ISCLIBS} ${LIBS} 62 63time_test@EXEEXT@: time_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 64 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 65 time_test.@O@ dnstest.@O@ ${DNSLIBS} \ 66 ${ISCLIBS} ${LIBS} 67 68private_test@EXEEXT@: private_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 69 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 70 private_test.@O@ dnstest.@O@ ${DNSLIBS} \ 71 ${ISCLIBS} ${LIBS} 72 73update_test@EXEEXT@: update_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 74 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 75 update_test.@O@ dnstest.@O@ ${DNSLIBS} \ 76 ${ISCLIBS} ${LIBS} 77 78zonemgr_test@EXEEXT@: zonemgr_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 79 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 80 zonemgr_test.@O@ dnstest.@O@ ${DNSLIBS} \ 81 ${ISCLIBS} ${LIBS} 82 83dbiterator_test@EXEEXT@: dbiterator_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 84 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 85 dbiterator_test.@O@ dnstest.@O@ ${DNSLIBS} \ 86 ${ISCLIBS} ${LIBS} 87 88dbdiff_test@EXEEXT@: dbdiff_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 89 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 90 dbdiff_test.@O@ dnstest.@O@ ${DNSLIBS} \ 91 ${ISCLIBS} ${LIBS} 92 93dbversion_test@EXEEXT@: dbversion_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 94 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 95 dbversion_test.@O@ dnstest.@O@ ${DNSLIBS} \ 96 ${ISCLIBS} ${LIBS} 97 98zt_test@EXEEXT@: zt_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 99 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 100 zt_test.@O@ dnstest.@O@ ${DNSLIBS} \ 101 ${ISCLIBS} ${LIBS} 102 103nsec3_test@EXEEXT@: nsec3_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 104 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 105 nsec3_test.@O@ dnstest.@O@ ${DNSLIBS} \ 106 ${ISCLIBS} ${LIBS} 107 108rdataset_test@EXEEXT@: rdataset_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 109 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 110 rdataset_test.@O@ dnstest.@O@ ${DNSLIBS} \ 111 ${ISCLIBS} ${LIBS} 112 113rdata_test@EXEEXT@: rdata_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS} 114 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \ 115 rdata_test.@O@ ${DNSLIBS} ${ISCLIBS} ${LIBS} 116 117unit:: 118 sh ${top_srcdir}/unit/unittest.sh 119 120clean distclean:: 121 rm -f ${TARGETS} 122 rm -f atf.out 123 rm -f testdata/master/master12.data testdata/master/master13.data \ 124 testdata/master/master14.data 125