Makefile revision 3542
217N/A# The contents of this file are subject to the terms of the 217N/A# Common Development and Distribution License (the "License"). 217N/A# You may not use this file except in compliance with the License. 217N/A# See the License for the specific language governing permissions 217N/A# and limitations under the License. 217N/A# When distributing Covered Code, include this CDDL HEADER in each 217N/A# If applicable, add the following below this CDDL HEADER, with the 217N/A# fields enclosed by brackets "[]" replaced with your own identifying 217N/A# information: Portions Copyright [yyyy] [name of copyright owner] 217N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 844N/A# hash from: sha256sum $(COMPONENT_ARCHIVE) | sed 's/\(.[^ ]*\).*/sha256:\1/' 2670N/A# FYI, The configure options are displayed by 'named -V'. Previously 2670N/A# that was overriden by setting CONFIGARGS to hide build server 217N/A# Traditionally all BIND executables are installed in sbin not bin. # To make it use version 2.9.x we need to skip this check by # specifying path where libxml2 is installed. # Configure will add "-mt" to CC which is already set in CFLAGS, so override. # Enable ASLR for this component # Currently manual pages are distributed from pkg:/system/manual@. # While there are some changes in our manuals, for example section # numbering and additions to named(1M) for SMF - that could be fixed # In addition to BIND deliverables we also deliver SMF files and # migration notes. There is no need to install these extras into the # prototype directory, they are simply referenced in relevant manifest # sumarize nawk script; reads ISC output which is of the form: # /^T:/ = Start of a test. # /^I:/ = Info from a test; colleced for possible use later. # /^A:/ = About: summary of the test - not used here. # /^R:/ = Result: If 'PASS' then continue, else print line and collected info. # Known issues may then be accounted for by adding tests, for example: # /^R:UNTESTED/ && name ~ /^T:dst:2:A/ {known++;}\ # /^R:UNRESOLVED/ && name ~ /^T:dst:1:A/ {known++;}\ # @ EOF = Display count of RESULTS: i.e. R:PASS=124 R:UNTESTED=26 Total=150 # if not 100% pass rate and issue is not known the word 'issues!' is appended /^T:/ {name=$$0;info="";}\ /^I:/ {info=sprintf("%s%s\n", info, $$0);}\ /^R:/ {test++; result[$$1]++;}\ /^R:/ {printf("%s: %s\n%s\n", $$1, name, info);}\ END{for (item in result)\ printf("%s=%d ", item, result[item]);\ printf("(known=%d) Total=%d%s\n", known, test, \ ((result["R:PASS"] + known) < test)? \ # fulltest requires sufficient privileges to configures IP addresses # 10.53.0.1 through 10.53.0.5 as aliases on the loopback interface. # Note PATH is being set so that isc_ifconfig can find ifconfig. -
cd $(@D) &&
$(MAKE) test 2>&
1 |
$(TEE) $@
# test-summary shows summary for targets test and fulltest. Use target # test-clean to remove previous tests. echo 'Summary for' $
$file;\