From owner-svn-src-vendor@FreeBSD.ORG Mon Jun 4 22:06:30 2012 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBD3B1065672; Mon, 4 Jun 2012 22:06:29 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D65238FC14; Mon, 4 Jun 2012 22:06:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q54M6Tca069311; Mon, 4 Jun 2012 22:06:29 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q54M6Tnl069306; Mon, 4 Jun 2012 22:06:29 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201206042206.q54M6Tnl069306@svn.freebsd.org> From: Doug Barton Date: Mon, 4 Jun 2012 22:06:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236584 - in vendor/bind9/dist: . lib/dns X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 22:06:30 -0000 Author: dougb Date: Mon Jun 4 22:06:29 2012 New Revision: 236584 URL: http://svn.freebsd.org/changeset/base/236584 Log: Vendor import of BIND 9.8.3-P1 Modified: vendor/bind9/dist/CHANGES vendor/bind9/dist/lib/dns/rdata.c vendor/bind9/dist/lib/dns/rdataslab.c vendor/bind9/dist/version Modified: vendor/bind9/dist/CHANGES ============================================================================== --- vendor/bind9/dist/CHANGES Mon Jun 4 22:01:12 2012 (r236583) +++ vendor/bind9/dist/CHANGES Mon Jun 4 22:06:29 2012 (r236584) @@ -1,3 +1,8 @@ + --- 9.8.3-P1 released --- + +3331. [security] dns_rdataslab_fromrdataset could produce bad + rdataslabs. [RT #29644] + --- 9.8.3 released --- 3318. [tuning] Reduce the amount of work performed while holding a Modified: vendor/bind9/dist/lib/dns/rdata.c ============================================================================== --- vendor/bind9/dist/lib/dns/rdata.c Mon Jun 4 22:01:12 2012 (r236583) +++ vendor/bind9/dist/lib/dns/rdata.c Mon Jun 4 22:06:29 2012 (r236584) @@ -329,8 +329,8 @@ dns_rdata_compare(const dns_rdata_t *rda REQUIRE(rdata1 != NULL); REQUIRE(rdata2 != NULL); - REQUIRE(rdata1->data != NULL); - REQUIRE(rdata2->data != NULL); + REQUIRE(rdata1->length == 0 || rdata1->data != NULL); + REQUIRE(rdata2->length == 0 || rdata2->data != NULL); REQUIRE(DNS_RDATA_VALIDFLAGS(rdata1)); REQUIRE(DNS_RDATA_VALIDFLAGS(rdata2)); @@ -360,8 +360,8 @@ dns_rdata_casecompare(const dns_rdata_t REQUIRE(rdata1 != NULL); REQUIRE(rdata2 != NULL); - REQUIRE(rdata1->data != NULL); - REQUIRE(rdata2->data != NULL); + REQUIRE(rdata1->length == 0 || rdata1->data != NULL); + REQUIRE(rdata2->length == 0 || rdata2->data != NULL); REQUIRE(DNS_RDATA_VALIDFLAGS(rdata1)); REQUIRE(DNS_RDATA_VALIDFLAGS(rdata2)); Modified: vendor/bind9/dist/lib/dns/rdataslab.c ============================================================================== --- vendor/bind9/dist/lib/dns/rdataslab.c Mon Jun 4 22:01:12 2012 (r236583) +++ vendor/bind9/dist/lib/dns/rdataslab.c Mon Jun 4 22:06:29 2012 (r236584) @@ -126,6 +126,11 @@ isc_result_t dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx, isc_region_t *region, unsigned int reservelen) { + /* + * Use &removed as a sentinal pointer for duplicate + * rdata as rdata.data == NULL is valid. + */ + static unsigned char removed; struct xrdata *x; unsigned char *rawbuf; #if DNS_RDATASET_FIXED @@ -169,6 +174,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_ INSIST(result == ISC_R_SUCCESS); dns_rdata_init(&x[i].rdata); dns_rdataset_current(rdataset, &x[i].rdata); + INSIST(x[i].rdata.data != &removed); #if DNS_RDATASET_FIXED x[i].order = i; #endif @@ -201,8 +207,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_ */ for (i = 1; i < nalloc; i++) { if (compare_rdata(&x[i-1].rdata, &x[i].rdata) == 0) { - x[i-1].rdata.data = NULL; - x[i-1].rdata.length = 0; + x[i-1].rdata.data = &removed; #if DNS_RDATASET_FIXED /* * Preserve the least order so A, B, A -> A, B @@ -292,7 +297,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_ #endif for (i = 0; i < nalloc; i++) { - if (x[i].rdata.data == NULL) + if (x[i].rdata.data == &removed) continue; #if DNS_RDATASET_FIXED offsettable[x[i].order] = rawbuf - offsetbase; Modified: vendor/bind9/dist/version ============================================================================== --- vendor/bind9/dist/version Mon Jun 4 22:01:12 2012 (r236583) +++ vendor/bind9/dist/version Mon Jun 4 22:06:29 2012 (r236584) @@ -6,5 +6,5 @@ MAJORVER=9 MINORVER=8 PATCHVER=3 -RELEASETYPE= -RELEASEVER= +RELEASETYPE=-P +RELEASEVER=1 From owner-svn-src-vendor@FreeBSD.ORG Mon Jun 4 22:07:06 2012 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A4CF1065680; Mon, 4 Jun 2012 22:07:06 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5B89A8FC14; Mon, 4 Jun 2012 22:07:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q54M76UU069382; Mon, 4 Jun 2012 22:07:06 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q54M768m069381; Mon, 4 Jun 2012 22:07:06 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201206042207.q54M768m069381@svn.freebsd.org> From: Doug Barton Date: Mon, 4 Jun 2012 22:07:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236585 - vendor/bind9/9.8.3-P1 X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 22:07:06 -0000 Author: dougb Date: Mon Jun 4 22:07:05 2012 New Revision: 236585 URL: http://svn.freebsd.org/changeset/base/236585 Log: Tag the 9.8.3-P1 release Added: vendor/bind9/9.8.3-P1/ - copied from r236584, vendor/bind9/dist/ From owner-svn-src-vendor@FreeBSD.ORG Mon Jun 4 22:19:10 2012 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35EE8106566B; Mon, 4 Jun 2012 22:19:10 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 16BB48FC0A; Mon, 4 Jun 2012 22:19:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q54MJ9XL070907; Mon, 4 Jun 2012 22:19:09 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q54MJ9XX070902; Mon, 4 Jun 2012 22:19:09 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201206042219.q54MJ9XX070902@svn.freebsd.org> From: Doug Barton Date: Mon, 4 Jun 2012 22:19:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236588 - in vendor/bind9/dist-9.6: . lib/dns X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 22:19:10 -0000 Author: dougb Date: Mon Jun 4 22:19:09 2012 New Revision: 236588 URL: http://svn.freebsd.org/changeset/base/236588 Log: Vendor import of BIND 9.6-ESV-R7-P1 Modified: vendor/bind9/dist-9.6/CHANGES vendor/bind9/dist-9.6/lib/dns/rdata.c vendor/bind9/dist-9.6/lib/dns/rdataslab.c vendor/bind9/dist-9.6/version Modified: vendor/bind9/dist-9.6/CHANGES ============================================================================== --- vendor/bind9/dist-9.6/CHANGES Mon Jun 4 22:14:33 2012 (r236587) +++ vendor/bind9/dist-9.6/CHANGES Mon Jun 4 22:19:09 2012 (r236588) @@ -1,3 +1,8 @@ + --- 9.6-ESV-R7-P1 released --- + +3331. [security] dns_rdataslab_fromrdataset could produce bad + rdataslabs. [RT #29644] + --- 9.6-ESV-R7 released --- 3318. [tuning] Reduce the amount of work performed while holding a Modified: vendor/bind9/dist-9.6/lib/dns/rdata.c ============================================================================== --- vendor/bind9/dist-9.6/lib/dns/rdata.c Mon Jun 4 22:14:33 2012 (r236587) +++ vendor/bind9/dist-9.6/lib/dns/rdata.c Mon Jun 4 22:19:09 2012 (r236588) @@ -345,8 +345,8 @@ dns_rdata_compare(const dns_rdata_t *rda REQUIRE(rdata1 != NULL); REQUIRE(rdata2 != NULL); - REQUIRE(rdata1->data != NULL); - REQUIRE(rdata2->data != NULL); + REQUIRE(rdata1->length == 0 || rdata1->data != NULL); + REQUIRE(rdata2->length == 0 || rdata2->data != NULL); REQUIRE(DNS_RDATA_VALIDFLAGS(rdata1)); REQUIRE(DNS_RDATA_VALIDFLAGS(rdata2)); Modified: vendor/bind9/dist-9.6/lib/dns/rdataslab.c ============================================================================== --- vendor/bind9/dist-9.6/lib/dns/rdataslab.c Mon Jun 4 22:14:33 2012 (r236587) +++ vendor/bind9/dist-9.6/lib/dns/rdataslab.c Mon Jun 4 22:19:09 2012 (r236588) @@ -126,6 +126,11 @@ isc_result_t dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx, isc_region_t *region, unsigned int reservelen) { + /* + * Use &removed as a sentinal pointer for duplicate + * rdata as rdata.data == NULL is valid. + */ + static unsigned char removed; struct xrdata *x; unsigned char *rawbuf; #if DNS_RDATASET_FIXED @@ -165,6 +170,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_ INSIST(result == ISC_R_SUCCESS); dns_rdata_init(&x[i].rdata); dns_rdataset_current(rdataset, &x[i].rdata); + INSIST(x[i].rdata.data != &removed); #if DNS_RDATASET_FIXED x[i].order = i; #endif @@ -197,8 +203,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_ */ for (i = 1; i < nalloc; i++) { if (compare_rdata(&x[i-1].rdata, &x[i].rdata) == 0) { - x[i-1].rdata.data = NULL; - x[i-1].rdata.length = 0; + x[i-1].rdata.data = &removed; #if DNS_RDATASET_FIXED /* * Preserve the least order so A, B, A -> A, B @@ -285,7 +290,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_ #endif for (i = 0; i < nalloc; i++) { - if (x[i].rdata.data == NULL) + if (x[i].rdata.data == &removed) continue; #if DNS_RDATASET_FIXED offsettable[x[i].order] = rawbuf - offsetbase; Modified: vendor/bind9/dist-9.6/version ============================================================================== --- vendor/bind9/dist-9.6/version Mon Jun 4 22:14:33 2012 (r236587) +++ vendor/bind9/dist-9.6/version Mon Jun 4 22:19:09 2012 (r236588) @@ -7,4 +7,4 @@ MAJORVER=9 MINORVER=6 PATCHVER= RELEASETYPE=-ESV -RELEASEVER=-R7 +RELEASEVER=-R7-P1 From owner-svn-src-vendor@FreeBSD.ORG Mon Jun 4 22:19:33 2012 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 199CC106568B; Mon, 4 Jun 2012 22:19:33 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DF7D48FC12; Mon, 4 Jun 2012 22:19:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q54MJWrF070985; Mon, 4 Jun 2012 22:19:32 GMT (envelope-from dougb@svn.freebsd.org) Received: (from dougb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q54MJWHY070984; Mon, 4 Jun 2012 22:19:32 GMT (envelope-from dougb@svn.freebsd.org) Message-Id: <201206042219.q54MJWHY070984@svn.freebsd.org> From: Doug Barton Date: Mon, 4 Jun 2012 22:19:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236589 - vendor/bind9/9.6-ESV-R7-P1 X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 22:19:33 -0000 Author: dougb Date: Mon Jun 4 22:19:32 2012 New Revision: 236589 URL: http://svn.freebsd.org/changeset/base/236589 Log: Tag the 9.6-ESV-R7-P1 release Added: vendor/bind9/9.6-ESV-R7-P1/ - copied from r236588, vendor/bind9/dist-9.6/ From owner-svn-src-vendor@FreeBSD.ORG Tue Jun 5 20:22:38 2012 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B054C1065678; Tue, 5 Jun 2012 20:22:38 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9704C8FC28; Tue, 5 Jun 2012 20:22:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q55KMc8R041942; Tue, 5 Jun 2012 20:22:38 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q55KMc3f041929; Tue, 5 Jun 2012 20:22:38 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <201206052022.q55KMc3f041929@svn.freebsd.org> From: "David E. O'Brien" Date: Tue, 5 Jun 2012 20:22:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236635 - in vendor/NetBSD/atf: . dist dist/dist dist/dist/atf-c dist/dist/atf-c++ dist/dist/atf-c++/detail dist/dist/atf-c/detail dist/dist/atf-config dist/dist/atf-report dist/dist/at... X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2012 20:22:38 -0000 Author: obrien Date: Tue Jun 5 20:22:37 2012 New Revision: 236635 URL: http://svn.freebsd.org/changeset/base/236635 Log: Import NetBSD's ATF as of 2011-04-05 16:3:06 UTC Submitted by: sjg@juniper.net Obtained from: Juniper Networks Added: vendor/NetBSD/atf/ vendor/NetBSD/atf/dist/ vendor/NetBSD/atf/dist/Makefile vendor/NetBSD/atf/dist/dist/ vendor/NetBSD/atf/dist/dist/AUTHORS vendor/NetBSD/atf/dist/dist/Atffile vendor/NetBSD/atf/dist/dist/COPYING vendor/NetBSD/atf/dist/dist/Kyuafile vendor/NetBSD/atf/dist/dist/NEWS vendor/NetBSD/atf/dist/dist/README vendor/NetBSD/atf/dist/dist/atf-c/ vendor/NetBSD/atf/dist/dist/atf-c++/ vendor/NetBSD/atf/dist/dist/atf-c++.hpp vendor/NetBSD/atf/dist/dist/atf-c++/Atffile vendor/NetBSD/atf/dist/dist/atf-c++/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++-api.3 vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++.pc.in vendor/NetBSD/atf/dist/dist/atf-c++/atf_c++_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/build.cpp vendor/NetBSD/atf/dist/dist/atf-c++/build.hpp vendor/NetBSD/atf/dist/dist/atf-c++/build_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/check.cpp vendor/NetBSD/atf/dist/dist/atf-c++/check.hpp vendor/NetBSD/atf/dist/dist/atf-c++/check_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/config.cpp vendor/NetBSD/atf/dist/dist/atf-c++/config.hpp vendor/NetBSD/atf/dist/dist/atf-c++/config_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ vendor/NetBSD/atf/dist/dist/atf-c++/detail/Atffile vendor/NetBSD/atf/dist/dist/atf-c++/detail/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c++/detail/application.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/application.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/application_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/env.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/env.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/env_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/exceptions.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/exceptions.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/exceptions_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/expand.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/expand.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/expand_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/fs.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/fs.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/fs_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/parser.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/parser.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/parser_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/process.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/process.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/process_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/sanity.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/sanity_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/test_helpers.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/test_helpers.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/text.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/text.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/text_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ui.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ui.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ui_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/macros.hpp vendor/NetBSD/atf/dist/dist/atf-c++/macros_hpp_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/macros_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/pkg_config_test.sh vendor/NetBSD/atf/dist/dist/atf-c++/tests.cpp vendor/NetBSD/atf/dist/dist/atf-c++/tests.hpp vendor/NetBSD/atf/dist/dist/atf-c++/tests_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/utils.hpp vendor/NetBSD/atf/dist/dist/atf-c++/utils_test.cpp vendor/NetBSD/atf/dist/dist/atf-c.h vendor/NetBSD/atf/dist/dist/atf-c/Atffile vendor/NetBSD/atf/dist/dist/atf-c/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c/atf-c-api.3 vendor/NetBSD/atf/dist/dist/atf-c/atf-c.pc.in vendor/NetBSD/atf/dist/dist/atf-c/atf_c_test.c vendor/NetBSD/atf/dist/dist/atf-c/build.c vendor/NetBSD/atf/dist/dist/atf-c/build.h vendor/NetBSD/atf/dist/dist/atf-c/build_test.c vendor/NetBSD/atf/dist/dist/atf-c/check.c vendor/NetBSD/atf/dist/dist/atf-c/check.h vendor/NetBSD/atf/dist/dist/atf-c/check_test.c vendor/NetBSD/atf/dist/dist/atf-c/config.c vendor/NetBSD/atf/dist/dist/atf-c/config.h vendor/NetBSD/atf/dist/dist/atf-c/config_test.c vendor/NetBSD/atf/dist/dist/atf-c/defs.h.in vendor/NetBSD/atf/dist/dist/atf-c/detail/ vendor/NetBSD/atf/dist/dist/atf-c/detail/Atffile vendor/NetBSD/atf/dist/dist/atf-c/detail/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c/detail/dynstr.c vendor/NetBSD/atf/dist/dist/atf-c/detail/dynstr.h vendor/NetBSD/atf/dist/dist/atf-c/detail/dynstr_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/env.c vendor/NetBSD/atf/dist/dist/atf-c/detail/env.h vendor/NetBSD/atf/dist/dist/atf-c/detail/env_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/fs.c vendor/NetBSD/atf/dist/dist/atf-c/detail/fs.h vendor/NetBSD/atf/dist/dist/atf-c/detail/fs_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/list.c vendor/NetBSD/atf/dist/dist/atf-c/detail/list.h vendor/NetBSD/atf/dist/dist/atf-c/detail/list_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/map.c vendor/NetBSD/atf/dist/dist/atf-c/detail/map.h vendor/NetBSD/atf/dist/dist/atf-c/detail/map_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/process.c vendor/NetBSD/atf/dist/dist/atf-c/detail/process.h vendor/NetBSD/atf/dist/dist/atf-c/detail/process_helpers.c vendor/NetBSD/atf/dist/dist/atf-c/detail/process_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/sanity.c vendor/NetBSD/atf/dist/dist/atf-c/detail/sanity.h vendor/NetBSD/atf/dist/dist/atf-c/detail/sanity_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/test_helpers.c vendor/NetBSD/atf/dist/dist/atf-c/detail/test_helpers.h vendor/NetBSD/atf/dist/dist/atf-c/detail/test_helpers_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/text.c vendor/NetBSD/atf/dist/dist/atf-c/detail/text.h vendor/NetBSD/atf/dist/dist/atf-c/detail/text_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/tp_main.c vendor/NetBSD/atf/dist/dist/atf-c/detail/user.c vendor/NetBSD/atf/dist/dist/atf-c/detail/user.h vendor/NetBSD/atf/dist/dist/atf-c/detail/user_test.c vendor/NetBSD/atf/dist/dist/atf-c/error.c vendor/NetBSD/atf/dist/dist/atf-c/error.h vendor/NetBSD/atf/dist/dist/atf-c/error_fwd.h vendor/NetBSD/atf/dist/dist/atf-c/error_test.c vendor/NetBSD/atf/dist/dist/atf-c/h_build.h vendor/NetBSD/atf/dist/dist/atf-c/macros.h vendor/NetBSD/atf/dist/dist/atf-c/macros_h_test.c vendor/NetBSD/atf/dist/dist/atf-c/macros_test.c vendor/NetBSD/atf/dist/dist/atf-c/pkg_config_test.sh vendor/NetBSD/atf/dist/dist/atf-c/tc.c vendor/NetBSD/atf/dist/dist/atf-c/tc.h vendor/NetBSD/atf/dist/dist/atf-c/tc_test.c vendor/NetBSD/atf/dist/dist/atf-c/tp.c vendor/NetBSD/atf/dist/dist/atf-c/tp.h vendor/NetBSD/atf/dist/dist/atf-c/tp_test.c vendor/NetBSD/atf/dist/dist/atf-c/utils.c vendor/NetBSD/atf/dist/dist/atf-c/utils.h vendor/NetBSD/atf/dist/dist/atf-c/utils_test.c vendor/NetBSD/atf/dist/dist/atf-config/ vendor/NetBSD/atf/dist/dist/atf-config/Atffile vendor/NetBSD/atf/dist/dist/atf-config/Kyuafile vendor/NetBSD/atf/dist/dist/atf-config/atf-config.1 vendor/NetBSD/atf/dist/dist/atf-config/atf-config.cpp vendor/NetBSD/atf/dist/dist/atf-config/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-report/ vendor/NetBSD/atf/dist/dist/atf-report/Atffile vendor/NetBSD/atf/dist/dist/atf-report/Kyuafile vendor/NetBSD/atf/dist/dist/atf-report/atf-report.1 vendor/NetBSD/atf/dist/dist/atf-report/atf-report.cpp vendor/NetBSD/atf/dist/dist/atf-report/fail_helper.cpp vendor/NetBSD/atf/dist/dist/atf-report/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-report/misc_helpers.cpp vendor/NetBSD/atf/dist/dist/atf-report/pass_helper.cpp vendor/NetBSD/atf/dist/dist/atf-report/reader.cpp vendor/NetBSD/atf/dist/dist/atf-report/reader.hpp vendor/NetBSD/atf/dist/dist/atf-report/reader_test.cpp vendor/NetBSD/atf/dist/dist/atf-report/tests-results.css vendor/NetBSD/atf/dist/dist/atf-report/tests-results.dtd vendor/NetBSD/atf/dist/dist/atf-report/tests-results.xsl vendor/NetBSD/atf/dist/dist/atf-run/ vendor/NetBSD/atf/dist/dist/atf-run/Atffile vendor/NetBSD/atf/dist/dist/atf-run/Kyuafile vendor/NetBSD/atf/dist/dist/atf-run/atf-run.1 vendor/NetBSD/atf/dist/dist/atf-run/atf-run.cpp vendor/NetBSD/atf/dist/dist/atf-run/atffile.cpp vendor/NetBSD/atf/dist/dist/atf-run/atffile.hpp vendor/NetBSD/atf/dist/dist/atf-run/atffile_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/bad_metadata_helper.c vendor/NetBSD/atf/dist/dist/atf-run/config.cpp vendor/NetBSD/atf/dist/dist/atf-run/config.hpp vendor/NetBSD/atf/dist/dist/atf-run/config_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/expect_helpers.c vendor/NetBSD/atf/dist/dist/atf-run/fs.cpp vendor/NetBSD/atf/dist/dist/atf-run/fs.hpp vendor/NetBSD/atf/dist/dist/atf-run/fs_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-run/io.cpp vendor/NetBSD/atf/dist/dist/atf-run/io.hpp vendor/NetBSD/atf/dist/dist/atf-run/io_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/misc_helpers.cpp vendor/NetBSD/atf/dist/dist/atf-run/pass_helper.cpp vendor/NetBSD/atf/dist/dist/atf-run/requirements.cpp vendor/NetBSD/atf/dist/dist/atf-run/requirements.hpp vendor/NetBSD/atf/dist/dist/atf-run/requirements_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/sample/ vendor/NetBSD/atf/dist/dist/atf-run/sample/atf-run.hooks vendor/NetBSD/atf/dist/dist/atf-run/sample/common.conf vendor/NetBSD/atf/dist/dist/atf-run/several_tcs_helper.c vendor/NetBSD/atf/dist/dist/atf-run/share/ vendor/NetBSD/atf/dist/dist/atf-run/share/atf-run.hooks vendor/NetBSD/atf/dist/dist/atf-run/signals.cpp vendor/NetBSD/atf/dist/dist/atf-run/signals.hpp vendor/NetBSD/atf/dist/dist/atf-run/signals_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/test-program.cpp vendor/NetBSD/atf/dist/dist/atf-run/test-program.hpp vendor/NetBSD/atf/dist/dist/atf-run/test_program_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/timer.cpp vendor/NetBSD/atf/dist/dist/atf-run/timer.hpp vendor/NetBSD/atf/dist/dist/atf-run/user.cpp vendor/NetBSD/atf/dist/dist/atf-run/user.hpp vendor/NetBSD/atf/dist/dist/atf-run/user_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/zero_tcs_helper.c vendor/NetBSD/atf/dist/dist/atf-sh/ vendor/NetBSD/atf/dist/dist/atf-sh/Atffile vendor/NetBSD/atf/dist/dist/atf-sh/Kyuafile vendor/NetBSD/atf/dist/dist/atf-sh/atf-check.1 vendor/NetBSD/atf/dist/dist/atf-sh/atf-check.cpp vendor/NetBSD/atf/dist/dist/atf-sh/atf-check_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/atf-sh-api.3 vendor/NetBSD/atf/dist/dist/atf-sh/atf-sh.1 vendor/NetBSD/atf/dist/dist/atf-sh/atf-sh.cpp vendor/NetBSD/atf/dist/dist/atf-sh/atf_check_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/config_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/libatf-sh.subr vendor/NetBSD/atf/dist/dist/atf-sh/misc_helpers.sh vendor/NetBSD/atf/dist/dist/atf-sh/normalize_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/tc_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/tp_test.sh vendor/NetBSD/atf/dist/dist/atf-version/ vendor/NetBSD/atf/dist/dist/atf-version/atf-version.1 vendor/NetBSD/atf/dist/dist/atf-version/atf-version.cpp vendor/NetBSD/atf/dist/dist/atf-version/generate-revision.sh (contents, props changed) vendor/NetBSD/atf/dist/dist/doc/ vendor/NetBSD/atf/dist/dist/doc/atf-formats.5 vendor/NetBSD/atf/dist/dist/doc/atf-test-case.4 vendor/NetBSD/atf/dist/dist/doc/atf-test-program.1 vendor/NetBSD/atf/dist/dist/doc/atf.7.in vendor/NetBSD/atf/dist/dist/test-programs/ vendor/NetBSD/atf/dist/dist/test-programs/Atffile vendor/NetBSD/atf/dist/dist/test-programs/Kyuafile vendor/NetBSD/atf/dist/dist/test-programs/c_helpers.c vendor/NetBSD/atf/dist/dist/test-programs/common.sh vendor/NetBSD/atf/dist/dist/test-programs/config_test.sh vendor/NetBSD/atf/dist/dist/test-programs/cpp_helpers.cpp vendor/NetBSD/atf/dist/dist/test-programs/expect_test.sh vendor/NetBSD/atf/dist/dist/test-programs/fork_test.sh vendor/NetBSD/atf/dist/dist/test-programs/meta_data_test.sh vendor/NetBSD/atf/dist/dist/test-programs/result_test.sh vendor/NetBSD/atf/dist/dist/test-programs/sh_helpers.sh vendor/NetBSD/atf/dist/dist/test-programs/srcdir_test.sh vendor/NetBSD/atf/dist/etc/ vendor/NetBSD/atf/dist/etc/Makefile vendor/NetBSD/atf/dist/etc/atf/ vendor/NetBSD/atf/dist/etc/atf/Makefile vendor/NetBSD/atf/dist/etc/atf/NetBSD.conf vendor/NetBSD/atf/dist/etc/atf/common.conf vendor/NetBSD/atf/dist/lib/ vendor/NetBSD/atf/dist/lib/Makefile vendor/NetBSD/atf/dist/lib/libatf-c/ vendor/NetBSD/atf/dist/lib/libatf-c++/ vendor/NetBSD/atf/dist/lib/libatf-c++/Makefile vendor/NetBSD/atf/dist/lib/libatf-c/Makefile vendor/NetBSD/atf/dist/lib/libatf-c/bconfig.h vendor/NetBSD/atf/dist/libexec/ vendor/NetBSD/atf/dist/libexec/Makefile vendor/NetBSD/atf/dist/libexec/atf-check/ vendor/NetBSD/atf/dist/libexec/atf-check/Makefile vendor/NetBSD/atf/dist/prepare-import.sh (contents, props changed) vendor/NetBSD/atf/dist/share/ vendor/NetBSD/atf/dist/share/Makefile vendor/NetBSD/atf/dist/share/doc/ vendor/NetBSD/atf/dist/share/doc/Makefile vendor/NetBSD/atf/dist/share/doc/atf/ vendor/NetBSD/atf/dist/share/doc/atf/Makefile vendor/NetBSD/atf/dist/share/examples/ vendor/NetBSD/atf/dist/share/examples/Makefile vendor/NetBSD/atf/dist/share/examples/atf/ vendor/NetBSD/atf/dist/share/examples/atf/Makefile vendor/NetBSD/atf/dist/share/xml/ vendor/NetBSD/atf/dist/share/xml/Makefile vendor/NetBSD/atf/dist/share/xml/atf/ vendor/NetBSD/atf/dist/share/xml/atf/Makefile vendor/NetBSD/atf/dist/share/xsl/ vendor/NetBSD/atf/dist/share/xsl/Makefile vendor/NetBSD/atf/dist/share/xsl/atf/ vendor/NetBSD/atf/dist/share/xsl/atf/Makefile vendor/NetBSD/atf/dist/tests/ vendor/NetBSD/atf/dist/tests/Makefile vendor/NetBSD/atf/dist/tests/atf/ vendor/NetBSD/atf/dist/tests/atf/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c/ vendor/NetBSD/atf/dist/tests/atf/atf-c++/ vendor/NetBSD/atf/dist/tests/atf/atf-c++/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c++/detail/ vendor/NetBSD/atf/dist/tests/atf/atf-c++/detail/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c/detail/ vendor/NetBSD/atf/dist/tests/atf/atf-c/detail/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-config/ vendor/NetBSD/atf/dist/tests/atf/atf-config/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-report/ vendor/NetBSD/atf/dist/tests/atf/atf-report/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-run/ vendor/NetBSD/atf/dist/tests/atf/atf-run/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-sh/ vendor/NetBSD/atf/dist/tests/atf/atf-sh/Makefile vendor/NetBSD/atf/dist/tests/atf/test-programs/ vendor/NetBSD/atf/dist/tests/atf/test-programs/Makefile vendor/NetBSD/atf/dist/usr.bin/ vendor/NetBSD/atf/dist/usr.bin/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-config/ vendor/NetBSD/atf/dist/usr.bin/atf-config/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-report/ vendor/NetBSD/atf/dist/usr.bin/atf-report/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-run/ vendor/NetBSD/atf/dist/usr.bin/atf-run/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-sh/ vendor/NetBSD/atf/dist/usr.bin/atf-sh/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-version/ vendor/NetBSD/atf/dist/usr.bin/atf-version/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-version/revision.h Added: vendor/NetBSD/atf/dist/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/Makefile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.3 2010/10/20 09:20:09 jmmv Exp $ + +SUBDIR= etc lib .WAIT libexec share usr.bin tests + +.include Added: vendor/NetBSD/atf/dist/dist/AUTHORS ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/AUTHORS Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,25 @@ +Authors and contributors Automated Testing Framework +=========================================================================== + + +* Julio Merino + + Main developer. He started the work on this project when he took part in + the Google Summer of Code 2007 program as a student. + +* Martin Husemann + + Mentored this project during its development as part of the Google Summer + of Code 2007 program. + +* Lukasz Strzygowski + + Participant of the Google Summer of Code 2008 program. Mentored by The + NetBSD Foundation, he worked on the atfify NetBSD-SoC project and, as a + side-effect, he contributed to the ATF source code. He developed the + initial version of the atf-check utility and started the addition of the + ATF_REQUIRE family of macros in the C interface. + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/Atffile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/Atffile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,11 @@ +Content-Type: application/X-atf-atffile; version="1" + +prop: test-suite = atf + +tp: atf-c +tp: atf-c++ +tp: atf-sh +tp: test-programs +tp: atf-config +tp: atf-report +tp: atf-run Added: vendor/NetBSD/atf/dist/dist/COPYING ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/COPYING Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,70 @@ +Redistribution terms Automated Testing Framework +=========================================================================== + + +License +******* + +Copyright (c) 2007, 2008, 2009, 2010, 2011 The NetBSD Foundation, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + + +Relicensed code +*************** + +The following code snippets have been taken from other projects. Even +though they were not originally licensed under the terms above, the +original authors have agreed to relicense their work so that this project +can be distributed under a single license. This section is put here just to +clarify this fact. + +* configure.ac, Makefile.am: The original versions were derived from the + ones in the XML Catalog Manager project, version 2.2. + + Author: Julio Merino + +* atf-c/ui.c: The format_paragraph and format_text functions were + derived form the ones in the Monotone project, revision + 3a0982da308228d796df35f98d787c5cff2bb5b6. + + Author: Julio Merino + +* atf-c++/detail/io.hpp, atf-c++/detail/io.cpp, atf-c++/detail/io_test.cpp: + These files were derived from the file_handle, systembuf, pipe and pistream + classes and tests found in the Boost.Process library. + + Author: Julio Merino + +* admin/check-style.sh, admin/check-style-common.awk, + admin/check-style-cpp.awk, admin/check-style-shell.awk: These files, + except the first one, were first implemented in the Buildtool project. + They were later adapted to be part of Boost.Process and, during that + process, the shell script was created. + + Author: Julio Merino + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/Kyuafile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/Kyuafile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,11 @@ +syntax("kyuafile", 1) + +test_suite("atf") + +include("atf-c/Kyuafile") +include("atf-c++/Kyuafile") +include("atf-sh/Kyuafile") +include("test-programs/Kyuafile") +include("atf-config/Kyuafile") +include("atf-report/Kyuafile") +include("atf-run/Kyuafile") Added: vendor/NetBSD/atf/dist/dist/NEWS ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/NEWS Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,469 @@ +Major changes between releases Automated Testing Framework +=========================================================================== + + +Changes in version 0.13 +*********************** + +Experimental version released on March 31st, 2011. + +This is the first release after the creation of the Kyua project, a more +modular and reliable replacement for ATF. From now on, ATF will change to +accomodate the transition to this new codebase, but ATF will still continue +to see development in the short/medium term. Check out the project page at +http://code.google.com/p/kyua/ for more details. + +The changes in this release are: + +* Added support to run the tests with the Kyua runtime engine (kyua-cli), a + new package that aims to replace atf-run and atf-report. The ATF tests + can be run with the new system by issuing a 'make installcheck-kyua' from + the top-level directory of the project (assuming the 'kyua' binary is + available during the configuration stage of ATF). + +* atf-run and atf-report are now in maintenance mode (but *not* deprecated + yet!). Kyua already implements a new, much more reliable runtime engine + that provides similar features to these tools. That said, it is not + complete yet so all development efforts should go towards it. + +* If GDB is installed, atf-run dumps the stack trace of crashing test + programs in an attempt to aid debugging. Contributed by Antti Kantee. + +* Reverted default timeout change in previous release and reset its value + to 5 minutes. This was causing several issues, specially when running + the existing NetBSD test suite in qemu. + +* Fixed the 'match' output checker in atf-check to properly validate the + last line of a file even if it does not have a newline. + +* Added the ATF_REQUIRE_IN and ATF_REQUIRE_NOT_IN macros to atf-c++ to + check for the presence (or lack thereof) of an element in a collection. + +* PR bin/44176: Fixed a race condition in atf-run that would crash atf-run + when the cleanup of a test case triggered asynchronous modifications to + its work directory (e.g. killing a daemon process that cleans up a pid + file in the work directory). + +* PR bin/44301: Fixed the sample XSLT file to report bogus test programs + instead of just listing them as having 0 test cases. + + +Changes in version 0.12 +*********************** + +Experimental version released on November 7th, 2010. + +* Added the ATF_REQUIRE_THROW_RE to atf-c++, which is the same as + ATF_REQUIRE_THROW but allows checking for the validity of the exception's + error message by means of a regular expression. + +* Added the ATF_REQUIRE_MATCH to atf-c++, which allows checking for a + regular expression match in a string. + +* Changed the default timeout for test cases from 5 minutes to 30 seconds. + 30 seconds is long enough for virtually all tests to complete, and 5 + minutes is a way too long pause in a test suite where a single test case + stalls. + +* Deprecated the use.fs property. While this seemed like a good idea in + the first place to impose more control on what test cases can do, it + turns out to be bad. First, use.fs=false prevents bogus test cases + from dumping core so after-the-fact debugging is harder. Second, + supporting use.fs adds a lot of unnecessary complexity. atf-run will + now ignore any value provided to use.fs and will allow test cases to + freely access the file system if they wish to. + +* Added the atf_tc_get_config_var_as_{bool,long}{,_wd} functions to the atf-c + library. The 'text' module became private in 0.11 but was being used + externally to simplify the parsing of configuration variables. + +* Made atf-run recognize the 'unprivileged-user' configuration variable + and automatically drop root privileges when a test case sets + require.user=unprivileged. Note that this is, by no means, done for + security purposes; this is just for user convenience; tests should, in + general, not be blindly run as root in the first place. + + +Changes in version 0.11 +*********************** + +Experimental version released on October 20th, 2010. + +* The ATF_CHECK* macros in atf-c++ were renamed to ATF_REQUIRE* to match + their counterparts in atf-c. + +* Clearly separated the modules in atf-c that are supposed to be public + from those that are implementation details. The header files for the + internal modules are not installed any more. + +* Made the atf-check tool private. It is only required by atf-sh and being + public has the danger of causing confusion. Also, making it private + simplifies the public API of atf. + +* Changed atf-sh to enable per-command error checking (set -e) by default. + This catches many cases in which a test case is broken but it is not + reported as such because execution continues. + +* Fixed the XSTL and CSS stylesheets to support expected failures. + + +Changes in version 0.10 +*********************** + +Experimental version released on July 2nd, 2010. + +Miscellaneous features + +* Added expected failures support to test cases and atf-run. These + include, for example, expected clean exits, expected reception of fatal + signals, expected timeouts and expected errors in condition checks. + These statuses can be used to denote test cases that are known to fail + due to a bug in the code they are testing. atf-report reports these + tests separately but they do not count towards the failed test cases + amount. + +* Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to + allow easy checking of call failures that update errno. + +* Added the has.cleanup meta-data property to test caes that specifies + whether the test case has a cleanup routine or not; its value is + automatically set. This property is read by atf-run to know if it has to + run the cleanup routine; skipping this run for every test case + significantly speeds up the run time of test suites. + +* Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to + take the expected exception as the first argument and the statement to + execute as the second argument. + +Changes in atf-check + +* Changed atf-check to support negating the status and output checks by + prefixing them with not- and added support to specify multiple checkers + for stdout and stderr, not only one. + +* Added the match output checker to atf-check to look for regular + expressions in the stdout and stderr of commands. + +* Modified the exit checks in atf-check to support checking for the + reception of signals. + +Code simplifications and cleanups + +* Removed usage messages from test programs to simplify the + implementation of every binding by a significant amount. They just now + refer the user to the appropriate manual page and do not attempt to wrap + lines on terminal boundaries. Test programs are not supposed to be run + by users directly so this minor interface regression is not important. + +* Removed the atf-format internal utility, which is unused after the + change documented above. + +* Removed the atf-cleanup internal utility. It has been unused since the + test case isolation was moved to atf-run in 0.8 + +* Splitted the Makefile.am into smaller files for easier maintenance and + dropped the use of M4. Only affects users building from the repository + sources. + +* Intermixed tests with the source files in the source tree to provide + them more visibility and easier access. The tests directory is gone from + the source tree and tests are now suffixed by _test, not prefixed by t_. + +* Simplifications to the atf-c library: removed the io, tcr and ui + modules as they had become unnecessary after all simplifications + introduced since the 0.8 release. + +* Removed the application/X-atf-tcr format introduced in 0.8 release. + Tests now print a much simplified format that is easy to parse and nicer + to read by end users. As a side effect, the default for test cases is + now to print their results to stdout unless otherwise stated by providing + the -r flag. + +* Removed XML distribution documents and replaced them with plain-text + documents. They provided little value and introduced a lot of complexity + to the build system. + +* Simplified the output of atf-version by not attempting to print a + revision number when building form a distfile. Makes the build system + easier to maintain. + + +Changes in version 0.9 +********************** + +Experimental version released on June 3rd, 2010. + +* Added atf-sh, an interpreter to process test programs written using + the shell API. This is not really a shell interpreter by itself though: + it is just a wrapper around the system shell that eases the loading of + the necessary ATF libraries. + +* Removed atf-compile in favour of atf-sh. + +* Added the use.fs metadata property to test case, which is used to + specify which test cases require file system access. This is to + highlight dependencies on external resources more clearly and to speed up + the execution of test suites by skipping the creation of many unnecessary + work directories. + +* Fixed test programs to get a sane default value for their source + directory. This means that it should not be necessary any more to pass + -s when running test programs that do not live in the current directory. + +* Defining test case headers became optional. This is trivial to achieve + in shell-based tests but a bit ugly in C and C++. In C, use the new + ATF_TC_WITHOUT_HEAD macro to define the test case, and in C++ use + ATF_TEST_CASE_WITHOUT_HEAD. + + +Changes in version 0.8 +********************** + +Experimental version released on May 7th, 2010. + +* Test programs no longer run several test cases in a row. The execution + of a test program now requires a test case name, and that single test + case is executed. To execute several test cases, use the atf-run utility + as usual. + +* Test programs no longer fork a subprocess to isolate the execution of + test cases. They run the test case code in-process, and a crash of the + test case will result in a crash of the test program. This is to ease + debugging of faulty test cases. + +* Test programs no longer isolate their test cases. This means that they + will not create temporary directories nor sanitize the environment any + more. Yes: running a test case that depends on system state by hand will + most likely yield different results depending on where (machine, + directory, user environment, etc.) it is run. Isolation has been moved + to atf-run. + +* Test programs no longer print a cryptic format (application/X-atf-tcs) + on a special file channel. They can now print whatever they want on the + screen. Because test programs can now only run one test case every time, + providing controlled output is not necessary any more. + +* Test programs no longer write their status into a special file + descriptor. Instead, they create a file with the results, which is later + parsed by atf-run. This changes the semantics of the -r flag. + +* atf-run has been adjusted to perform the test case isolation. As a + result, there is now a single canonical place that implements the + isolation of test caes. In previous releases, the three language + bindings (C, C++ and shell) had to be kept in sync with each other (read: + not a nice thing to do at all). As a side effect of this change, writing + bindings for other languages will be much, much easier from now on. + +* atf-run forks test programs on a test case basis, instead of on a test + program basis as it did before. This is to provide the test case + isolation that was before implemented by the test programs themselves. + +* Removed the atf-exec tool. This was used to implement test case + isolation in atf-sh, but it is now unnecessary. + +* It is now optional to define the descr meta-data property. It has been + proven to be mostly useless, because test cases often carry a descriptive + name of their own. + + +Changes in version 0.7 +********************** + +Experimental version released on December 22nd, 2009. + +* Added build-time checks to atf-c and atf-c++. A binding for atf-sh + will come later. + +* Migrated all build-time checks for header files to proper ATF tests. + This demonstrates the use of the new feature described above. + +* Added an internal API for child process management. + +* Converted all plain-text distribution documents to a Docbook canonical + version, and include pre-generated plain text and HTML copies in the + distribution file. + +* Simplified the contents of the Makefile.am by regenerating it from a + canonical Makefile.am.m4 source. As a side-effect, some dependency + specifications were fixed. + +* Migrated all checks from the check target to installcheck, as these + require ATF to be installed. + +* Fixed sign comparison mismatches triggered by the now-enabled + -Wsign-compare. + +* Fixed many memory and object leaks. + + +Changes in version 0.6 +********************** + +Experimental version released on January 18th, 2009. + +* Make atf-exec be able to kill its child process after a certain period + of time; this is controlled through the new -t option. + +* Change atf-sh to use atf-exec's -t option to control the test case's + timeouts, instead of doing it internally. Same behavior as before, but + noticeably faster. + +* atf-exec's -g option and atf-killpg are gone due to the previous + change. + +* Added the atf-check(1) tool, a program that executes a given command + and checks its exit code against a known value and allows the management + of stdout and stderr in multiple ways. This replaces the previous + atf_check function in the atf-sh library and exposes this functionality + to both atf-c and atf-c++. + +* Added the ATF_REQUIRE family of macros to the C interface. These help + in checking for fatal test conditions. The old ATF_CHECK macros now + perform non-fatal checks only. I.e. by using ATF_CHECK, the test case + can now continue its execution and the failures will not be reported + until the end of the whole run. + +* Extended the amount of ATF_CHECK_* C macros with new ones to provide + more features to the developer. These also have their corresponding + counterparts in the ATF_REQUIRE_* family. The new macros (listing the + suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and + _STREQ_MSG. + + +Changes in version 0.5 +********************** + +Experimental version released on May 1st, 2008. + +* Clauses 3 and 4 of the BSD license used by the project were dropped. + All the code is now under a 2-clause BSD license compatible with the GNU + General Public License (GPL). + +* Added a C-only binding so that binary test programs do not need to be + tied to C++ at all. This binding is now known as the atf-c library. + +* Renamed the C++ binding to atf-c++ for consistency with the new atf-c. + +* Renamed the POSIX shell binding to atf-sh for consistency with the new + atf-c and atf-c++. + +* Added a -w flag to test programs through which it is possible to + specify the work directory to be used. This was possible in prior + releases by defining the workdir configuration variable (-v workdir=...), + but was a conceptually incorrect mechanism. + +* Test programs now preserve the execution order of test cases when they + are given in the command line. Even those mentioned more than once are + executed multiple times to comply with the user's requests. + + +Changes in version 0.4 +********************** + +Experimental version released on February 4th, 2008. + +* Added two new manual pages, atf-c++-api and atf-sh-api, describing the + C++ and POSIX shell interfaces used to write test programs. + +* Added a pkg-config file, useful to get the flags to build against the + C++ library or to easily detect the presence of ATF. + +* Added a way for test cases to require a specific architecture and/or + machine type through the new 'require.arch' and 'require.machine' + meta-data properties, respectively. + +* Added the 'timeout' property to test cases, useful to set an + upper-bound limit for the test's run time and thus prevent global test + program stalls due to the test case's misbehavior. + +* Added the atf-exec(1) internal utility, used to execute a command + after changing the process group it belongs to. + +* Added the atf-killpg(1) internal utility, used to kill process groups. + +* Multiple portability fixes. Of special interest, full support for + SunOS (Solaris Express Developer Edition 2007/09) using the Sun Studio 12 + C++ compiler. + +* Fixed a serious bug that prevented atf-run(1) from working at all + under Fedora 8 x86_64. Due to the nature of the bug, other platforms + were likely affected too. + + +Changes in version 0.3 +********************** + +Experimental version released on November 11th, 2007. + +* Added XML output support to atf-report. This is accompanied by a DTD + for the format's structure and sample XSLT/CSS files to post-process this + output and convert it to a plain HTML report. + +* Changed atf-run to add system information to the report it generates. + This is currently used by atf-report's XML output only, and is later + printed in the HTML reports in a nice and useful summary table. The user + and system administrator are allowed to tune this feature by means of + hooks. + +* Removed the test cases' 'isolated' property. This was intended to + avoid touching the file system at all when running the related test case, + but this has not been true for a long while: some control files are + unconditionally required for several purposes, and we cannot easily get + rid of them. This way we remove several critical and delicate pieces of + code. + +* Improved atf-report's CSV output format to include information about + test programs too. + +* Fixed the tests that used atf-compile to not require this tool as a + helper. Avoids systems without build-time utilities to skip many tests + that could otherwise be run. (E.g. NetBSD without the comp.tgz set + installed.) + +* Many general cleanups: Fixed many pieces of code marked as ugly and/or + incomplete. + + +Changes in version 0.2 +********************** + +Experimental version released on September 20th, 2007. + +* Test cases now get a known umask on entry. + +* atf-run now detects many unexpected failures caused by test programs and + reports them as bogus tests. atf-report is able to handle these new + errors and nicely reports them to the user. + +* All the data formats read and written by the tools have been + documented and cleaned up. These include those grammars that define how + the different components communicate with each other as well as the + format of files written by the developers and users: the Atffiles and the + configuration files. + +* Added the atf-version tool, a utility that displays information about + the currently installed version of ATF. + +* Test cases can now define an optional cleanup routine to undo their + actions regardless of their exit status. + +* atf-report now summarizes the list of failed (bogus) test programs + when using the ticker output format. + +* Test programs now capture some termination signals and clean up any + temporary files before exiting the program. + +* Multiple bug fixes and improvements all around. + + +Changes in version 0.1 +********************** + +Experimental version released on August 20th, 2007. + +* First public version. This was released coinciding with the end of the + Google Summer of Code 2007 program. + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/README ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/README Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,40 @@ +Introductory information Automated Testing Framework +=========================================================================== + + +Introduction +************ + +The Automated Testing Framework (ATF) is a collection of libraries and +utilities designed to ease unattended application testing in the hands of +developers and end users of a specific piece of software. + +As regards developers, ATF provides the necessary means to easily create +test suites composed of multiple test programs, which in turn are a +collection of test cases. It also attempts to simplify the debugging of +problems when these test cases detect an error by providing as much +information as possible about the failure. + +As regards users, it simplifies the process of running the test suites and, +in special, encourages end users to run them often: they do not need to +have source trees around nor any other development tools installed to be +able to certify that a given piece of software works on their machine as +advertised. + + +Other documents +*************** + +* AUTHORS: List of authors and contributors for this project. + +* COPYING: License information. + +* INSTALL: Compilation and installation instructions. These is not the + standard document shipped with many packages, so be sure to read it for + things that are specific to ATF's build. + +* NEWS: List of major changes between formal, published releases. + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/atf-c++.hpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++.hpp Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,35 @@ +// +// Automated Testing Framework (atf) +// +// Copyright (c) 2007, 2008 The NetBSD Foundation, Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND +// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY +// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +#if !defined(_ATF_CXX_HPP_) +#define _ATF_CXX_HPP_ + +#include + +#endif // !defined(_ATF_CXX_HPP_) Added: vendor/NetBSD/atf/dist/dist/atf-c++/Atffile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++/Atffile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,14 @@ +Content-Type: application/X-atf-atffile; version="1" + +prop: test-suite = atf + +tp: detail + +tp: atf_c++_test +tp: build_test +tp: check_test +tp: config_test +tp: macros_test +tp: pkg_config_test +tp: tests_test +tp: utils_test Added: vendor/NetBSD/atf/dist/dist/atf-c++/Kyuafile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++/Kyuafile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,14 @@ +syntax("kyuafile", 1) + +test_suite("atf") + +atf_test_program{name="atf_c++_test"} +atf_test_program{name="build_test"} +atf_test_program{name="check_test"} +atf_test_program{name="config_test"} +atf_test_program{name="macros_test"} +atf_test_program{name="pkg_config_test"} +atf_test_program{name="tests_test"} +atf_test_program{name="utils_test"} + +include("detail/Kyuafile") Added: vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++-api.3 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++-api.3 Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,404 @@ +.\" +.\" Automated Testing Framework (atf) +.\" +.\" Copyright (c) 2008, 2010 The NetBSD Foundation, Inc. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND +.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd December 10, 2010 +.Dt ATF-C++-API 3 +.Os +.Sh NAME +.Nm ATF_ADD_TEST_CASE , +.Nm ATF_CHECK_ERRNO , +.Nm ATF_FAIL , +.Nm ATF_INIT_TEST_CASES , +.Nm ATF_PASS , +.Nm ATF_REQUIRE , +.Nm ATF_REQUIRE_EQ , +.Nm ATF_REQUIRE_ERRNO , +.Nm ATF_REQUIRE_IN , +.Nm ATF_REQUIRE_MATCH , +.Nm ATF_REQUIRE_NOT_IN , +.Nm ATF_REQUIRE_THROW , +.Nm ATF_REQUIRE_THROW_RE , +.Nm ATF_SKIP , +.Nm ATF_TEST_CASE , +.Nm ATF_TEST_CASE_BODY , +.Nm ATF_TEST_CASE_CLEANUP , +.Nm ATF_TEST_CASE_HEAD , +.Nm ATF_TEST_CASE_WITH_CLEANUP , +.Nm ATF_TEST_CASE_WITHOUT_HEAD , +.Nd C++ API to write ATF-based test programs +.Sh SYNOPSIS +.In atf-c++.hpp +.Fn ATF_ADD_TEST_CASE "tcs" "name" +.Fn ATF_CHECK_ERRNO "exp_errno" "bool_expression" +.Fn ATF_FAIL "reason" +.Fn ATF_INIT_TEST_CASES "tcs" +.Fn ATF_PASS +.Fn ATF_REQUIRE "expression" +.Fn ATF_REQUIRE_EQ "expression_1" "expression_2" +.Fn ATF_REQUIRE_ERRNO "exp_errno" "bool_expression" +.Fn ATF_REQUIRE_IN "element" "collection" +.Fn ATF_REQUIRE_MATCH "regexp" "string_expression" +.Fn ATF_REQUIRE_NOT_IN "element" "collection" +.Fn ATF_REQUIRE_THROW "expected_exception" "statement" +.Fn ATF_REQUIRE_THROW_RE "expected_exception" "regexp" "statement" +.Fn ATF_SKIP "reason" +.Fn ATF_TEST_CASE "name" +.Fn ATF_TEST_CASE_BODY "name" +.Fn ATF_TEST_CASE_CLEANUP "name" +.Fn ATF_TEST_CASE_HEAD "name" +.Fn ATF_TEST_CASE_WITH_CLEANUP "name" +.Fn ATF_TEST_CASE_WITHOUT_HEAD "name" +.Sh DESCRIPTION +ATF provides a mostly-macro-based programming interface to implement test +programs in C or C++. +This interface is backed by a C++ implementation, but this fact is +hidden from the developer as much as possible through the use of +macros to simplify programming. +However, the use of C++ is not hidden everywhere and while you can +implement test cases without knowing anything at all about the object model +underneath the provided calls, you might need some minimum notions of the +language in very specific circumstances. +.Pp +C++-based test programs always follow this template: +.Bd -literal -offset indent +extern "C" { +.Ns ... C-specific includes go here ... +} + +.Ns ... C++-specific includes go here ... + +#include + +ATF_TEST_CASE(tc1); +ATF_TEST_CASE_HEAD(tc1) +{ + ... first test case's header ... +} +ATF_TEST_CASE_BODY(tc1) +{ + ... first test case's body ... +} + +ATF_TEST_CASE_WITH_CLEANUP(tc2); +ATF_TEST_CASE_HEAD(tc2) +{ + ... second test case's header ... +} +ATF_TEST_CASE_BODY(tc2) +{ + ... second test case's body ... +} +ATF_TEST_CASE_CLEANUP(tc2) +{ + ... second test case's cleanup ... +} + +ATF_TEST_CASE(tc3); +ATF_TEST_CASE_BODY(tc3) +{ + ... third test case's body ... +} + +.Ns ... additional test cases ... + +ATF_INIT_TEST_CASES(tcs) +{ + ATF_ADD_TEST_CASE(tcs, tc1); + ATF_ADD_TEST_CASE(tcs, tc2); + ATF_ADD_TEST_CASE(tcs, tc3); + ... add additional test cases ... +} +.Ed +.Ss Definition of test cases +Test cases have an identifier and are composed of three different parts: +the header, the body and an optional cleanup routine, all of which are +described in +.Xr atf-test-case 4 . +To define test cases, one can use the +.Fn ATF_TEST_CASE , +.Fn ATF_TEST_CASE_WITH_CLEANUP +or the +.Fn ATF_TEST_CASE_WITHOUT_HEAD +macros, which take a single parameter specifiying the test case's +name. +.Fn ATF_TEST_CASE , +requires to define a head and a body for the test case, +.Fn ATF_TEST_CASE_WITH_CLEANUP +requires to define a head, a body and a cleanup for the test case and +.Fn ATF_TEST_CASE_WITHOUT_HEAD +requires only a body for the test case. +It is important to note that these +.Em do not +set the test case up for execution when the program is run. +In order to do so, a later registration is needed through the +.Fn ATF_ADD_TEST_CASE +macro detailed in +.Sx Program initialization . +.Pp +Later on, one must define the three parts of the body by means of three +functions. +Their headers are given by the +.Fn ATF_TEST_CASE_HEAD , +.Fn ATF_TEST_CASE_BODY +and +.Fn ATF_TEST_CASE_CLEANUP +macros, all of which take the test case's name. +Following each of these, a block of code is expected, surrounded by the +opening and closing brackets. +.Ss Program initialization +The library provides a way to easily define the test program's +.Fn main +function. +You should never define one on your own, but rely on the +library to do it for you. +This is done by using the +.Fn ATF_INIT_TEST_CASES +macro, which is passed the name of the list that will hold the test cases. +This name can be whatever you want as long as it is a valid variable value. +.Pp +After the macro, you are supposed to provide the body of a function, which +should only use the +.Fn ATF_ADD_TEST_CASE +macro to register the test cases the test program will execute. +The first parameter of this macro matches the name you provided in the +former call. +.Ss Header definitions +The test case's header can define the meta-data by using the +.Fn set +method, which takes two parameters: the first one specifies the +meta-data variable to be set and the second one specifies its value. +Both of them are strings. +.Ss Configuration variables +The test case has read-only access to the current configuration variables +by means of the +.Ft bool +.Fn has_config_var +and the +.Ft std::string +.Fn get_config_var +methods, which can be called in any of the three parts of a test case. +.Ss Access to the source directory +It is possible to get the path to the test case's source directory from any +of its three components by querying the +.Sq srcdir +configuration variable. +.Ss Requiring programs +Aside from the +.Va require.progs +meta-data variable available in the header only, one can also check for +additional programs in the test case's body by using the +.Fn require_prog +function, which takes the base name or full path of a single binary. +Relative paths are forbidden. +If it is not found, the test case will be automatically skipped. +.Ss Test case finalization +The test case finalizes either when the body reaches its end, at which +point the test is assumed to have +.Em passed , +or at any explicit call to +.Fn ATF_PASS , +.Fn ATF_FAIL +or +.Fn ATF_SKIP . +These three macros terminate the execution of the test case immediately. +The cleanup routine will be processed afterwards in a completely automated +way, regardless of the test case's termination reason. +.Pp +.Fn ATF_PASS +does not take any parameters. +.Fn ATF_FAIL +and +.Fn ATF_SKIP +take a single string that describes why the test case failed or +was skipped, respectively. +It is very important to provide a clear error message in both cases so that +the user can quickly know why the test did not pass. +.Ss Expectations +Everything explained in the previous section changes when the test case +expectations are redefined by the programmer. +.Pp +Each test case has an internal state called +.Sq expect +that describes what the test case expectations are at any point in time. +The value of this property can change during execution by any of: +.Bl -tag -width indent +.It Fn expect_death "reason" +Expects the test case to exit prematurely regardless of the nature of the +exit. +.It Fn expect_exit "exitcode" "reason" +Expects the test case to exit cleanly. +If +.Va exitcode +is not +.Sq -1 , +.Xr atf-run 1 +will validate that the exit code of the test case matches the one provided +in this call. +Otherwise, the exact value will be ignored. +.It Fn expect_fail "reason" +Any failure (be it fatal or non-fatal) raised in this mode is recorded. +However, such failures do not report the test case as failed; instead, the +test case finalizes cleanly and is reported as +.Sq expected failure ; +this report includes the provided +.Fa reason +as part of it. +If no error is raised while running in this mode, then the test case is +reported as +.Sq failed . *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-vendor@FreeBSD.ORG Fri Jun 8 21:57:37 2012 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB0051065670; Fri, 8 Jun 2012 21:57:37 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D30698FC12; Fri, 8 Jun 2012 21:57:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q58LvbsQ087156; Fri, 8 Jun 2012 21:57:37 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q58Lvbtn087153; Fri, 8 Jun 2012 21:57:37 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <201206082157.q58Lvbtn087153@svn.freebsd.org> From: "David E. O'Brien" Date: Fri, 8 Jun 2012 21:57:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236769 - in vendor/NetBSD/bmake: . dist dist/PSD.doc dist/lst.lib dist/unit-tests X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2012 21:57:38 -0000 Author: obrien Date: Fri Jun 8 21:57:36 2012 New Revision: 236769 URL: http://svn.freebsd.org/changeset/base/236769 Log: Import the 6-May-2012 release of the "Portable" BSD make tool (from NetBSD). Submitted by: sjg@juniper.net Added: vendor/NetBSD/bmake/ vendor/NetBSD/bmake/dist/ vendor/NetBSD/bmake/dist/ChangeLog vendor/NetBSD/bmake/dist/FILES vendor/NetBSD/bmake/dist/Makefile.in (contents, props changed) vendor/NetBSD/bmake/dist/PSD.doc/ vendor/NetBSD/bmake/dist/PSD.doc/Makefile (contents, props changed) vendor/NetBSD/bmake/dist/PSD.doc/tutorial.ms vendor/NetBSD/bmake/dist/README vendor/NetBSD/bmake/dist/aclocal.m4 vendor/NetBSD/bmake/dist/arch.c (contents, props changed) vendor/NetBSD/bmake/dist/bmake.1 (contents, props changed) vendor/NetBSD/bmake/dist/bmake.cat1 vendor/NetBSD/bmake/dist/boot-strap (contents, props changed) vendor/NetBSD/bmake/dist/bsd.after-import.mk (contents, props changed) vendor/NetBSD/bmake/dist/buf.c (contents, props changed) vendor/NetBSD/bmake/dist/buf.h (contents, props changed) vendor/NetBSD/bmake/dist/compat.c (contents, props changed) vendor/NetBSD/bmake/dist/cond.c (contents, props changed) vendor/NetBSD/bmake/dist/config.h.in (contents, props changed) vendor/NetBSD/bmake/dist/configure (contents, props changed) vendor/NetBSD/bmake/dist/configure.in (contents, props changed) vendor/NetBSD/bmake/dist/dir.c (contents, props changed) vendor/NetBSD/bmake/dist/dir.h (contents, props changed) vendor/NetBSD/bmake/dist/dirname.c (contents, props changed) vendor/NetBSD/bmake/dist/find_lib.sh (contents, props changed) vendor/NetBSD/bmake/dist/for.c (contents, props changed) vendor/NetBSD/bmake/dist/getopt.c (contents, props changed) vendor/NetBSD/bmake/dist/hash.c (contents, props changed) vendor/NetBSD/bmake/dist/hash.h (contents, props changed) vendor/NetBSD/bmake/dist/install-sh (contents, props changed) vendor/NetBSD/bmake/dist/job.c (contents, props changed) vendor/NetBSD/bmake/dist/job.h (contents, props changed) vendor/NetBSD/bmake/dist/lst.h (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/ vendor/NetBSD/bmake/dist/lst.lib/Makefile (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstAppend.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstAtEnd.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstAtFront.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstClose.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstConcat.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstDatum.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstDeQueue.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstDestroy.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstDupl.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstEnQueue.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstFind.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstFindFrom.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstFirst.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstForEach.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstForEachFrom.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstInit.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstInsert.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstInt.h (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstIsAtEnd.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstIsEmpty.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstLast.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstMember.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstNext.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstOpen.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstPrev.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstRemove.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstReplace.c (contents, props changed) vendor/NetBSD/bmake/dist/lst.lib/lstSucc.c (contents, props changed) vendor/NetBSD/bmake/dist/machine.sh (contents, props changed) vendor/NetBSD/bmake/dist/main.c (contents, props changed) vendor/NetBSD/bmake/dist/make-bootstrap.sh.in (contents, props changed) vendor/NetBSD/bmake/dist/make-conf.h (contents, props changed) vendor/NetBSD/bmake/dist/make.1 (contents, props changed) vendor/NetBSD/bmake/dist/make.c (contents, props changed) vendor/NetBSD/bmake/dist/make.h (contents, props changed) vendor/NetBSD/bmake/dist/make_malloc.c (contents, props changed) vendor/NetBSD/bmake/dist/make_malloc.h (contents, props changed) vendor/NetBSD/bmake/dist/meta.c (contents, props changed) vendor/NetBSD/bmake/dist/meta.h (contents, props changed) vendor/NetBSD/bmake/dist/mkdeps.sh (contents, props changed) vendor/NetBSD/bmake/dist/nonints.h (contents, props changed) vendor/NetBSD/bmake/dist/os.sh (contents, props changed) vendor/NetBSD/bmake/dist/parse.c (contents, props changed) vendor/NetBSD/bmake/dist/pathnames.h (contents, props changed) vendor/NetBSD/bmake/dist/ranlib.h (contents, props changed) vendor/NetBSD/bmake/dist/realpath.c (contents, props changed) vendor/NetBSD/bmake/dist/setenv.c (contents, props changed) vendor/NetBSD/bmake/dist/sigcompat.c (contents, props changed) vendor/NetBSD/bmake/dist/sprite.h (contents, props changed) vendor/NetBSD/bmake/dist/str.c (contents, props changed) vendor/NetBSD/bmake/dist/stresep.c (contents, props changed) vendor/NetBSD/bmake/dist/strlcpy.c (contents, props changed) vendor/NetBSD/bmake/dist/strlist.c (contents, props changed) vendor/NetBSD/bmake/dist/strlist.h (contents, props changed) vendor/NetBSD/bmake/dist/suff.c (contents, props changed) vendor/NetBSD/bmake/dist/targ.c (contents, props changed) vendor/NetBSD/bmake/dist/trace.c (contents, props changed) vendor/NetBSD/bmake/dist/trace.h (contents, props changed) vendor/NetBSD/bmake/dist/unit-tests/ vendor/NetBSD/bmake/dist/unit-tests/Makefile.in (contents, props changed) vendor/NetBSD/bmake/dist/unit-tests/comment vendor/NetBSD/bmake/dist/unit-tests/cond1 vendor/NetBSD/bmake/dist/unit-tests/doterror vendor/NetBSD/bmake/dist/unit-tests/dotwait vendor/NetBSD/bmake/dist/unit-tests/error vendor/NetBSD/bmake/dist/unit-tests/export vendor/NetBSD/bmake/dist/unit-tests/export-all vendor/NetBSD/bmake/dist/unit-tests/forsubst vendor/NetBSD/bmake/dist/unit-tests/hash vendor/NetBSD/bmake/dist/unit-tests/misc vendor/NetBSD/bmake/dist/unit-tests/moderrs vendor/NetBSD/bmake/dist/unit-tests/modmatch vendor/NetBSD/bmake/dist/unit-tests/modmisc vendor/NetBSD/bmake/dist/unit-tests/modorder vendor/NetBSD/bmake/dist/unit-tests/modts vendor/NetBSD/bmake/dist/unit-tests/modword vendor/NetBSD/bmake/dist/unit-tests/phony-end vendor/NetBSD/bmake/dist/unit-tests/posix vendor/NetBSD/bmake/dist/unit-tests/qequals vendor/NetBSD/bmake/dist/unit-tests/sysv vendor/NetBSD/bmake/dist/unit-tests/ternary vendor/NetBSD/bmake/dist/unit-tests/test.exp vendor/NetBSD/bmake/dist/unit-tests/unexport vendor/NetBSD/bmake/dist/unit-tests/unexport-env vendor/NetBSD/bmake/dist/unit-tests/varcmd vendor/NetBSD/bmake/dist/util.c (contents, props changed) vendor/NetBSD/bmake/dist/var.c (contents, props changed) vendor/NetBSD/bmake/dist/wait.h (contents, props changed) vendor/NetBSD/bmake/do-update.sh (contents, props changed) Added: vendor/NetBSD/bmake/dist/ChangeLog ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/bmake/dist/ChangeLog Fri Jun 8 21:57:36 2012 (r236769) @@ -0,0 +1,1346 @@ +2012-06-06 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120606 + Merge with NetBSD make, pick up + o compat.c: use kill(2) rather than raise(3). + * configure.in: look for sys/dev/filemon + * bsd.after-import.mk: add a .-include "Makefile.inc" to Makefile + and pass BOOTSTRAP_XTRAS to boot-strap. + +2012-06-04 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120604 + Merge with NetBSD make, pick up + o util.c and var.c share same var for tracking if environ + has been reallocated. + o util.c provide getenv with setenv. + * Add MAKE_LEVEL_SAFE as an alternate means of passing MAKE_LEVEL + when the shell actively strips .MAKE.* from the environment. + We still refer to the variable always as .MAKE.LEVEL + * util.c fix bug in findenv() was finding prefix of name. + * compat.c: re-raising SIGINT etc after running .INTERRUPT + results in more reliable termination of all activity on many + platforms. + +2012-06-02 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120602 + Merge with NetBSD make, pick up + o for.c: handle quoted items in .for list + +2012-05-30 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120530 + Merge with NetBSD make, pick up + o compat.c: ignore empty command. + +2012-05-24 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120524 + * FILES: add bsd.after-import.mk: + A simple means of integrating bmake into a BSD build system. + +2012-05-20 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120520 + Merge with NetBSD make, pick up + o increased limit for nested conditionals. + +2012-05-18 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120518 + Merge with NetBSD make, pick up + o use _exit(2) in signal hanlder + o Don't use the [dir] cache when building nodes that might have + changed since the last exec. + o Avoid nested extern declaration warnings. + +2012-04-27 Simon J. Gerraty + + * meta.c (fgetLine): avoid %z - not portable. + * parse.c: Since we moved include of sys/mman.h + and def's of MAP_COPY etc. we got dups from a merge. + +2012-04-24 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120420 + Merge with NetBSD make, pick up + o restore duplicate supression in .MAKE.MAKEFILES + runtime saving can be significant. + o Var_Subst() uses Buf_DestroyCompact() to reduce memory + consumption up to 20%. + +2012-04-20 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120420 + Merge with NetBSD make, pick up + o remove duplicate supression in .MAKE.MAKEFILES + o improved dir cache behavior + o gmake'ish export command + +2012-03-25 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20120325 + Merge with NetBSD make, pick up + o fix parsing of :[#] in conditionals. + +2012-02-10 Simon J. Gerraty + + * Makefile.in: replace use of .Nx in bmake.1 with NetBSD + since some systems cannot cope with .Nx + +2011-11-14 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20111111 + Merge with NetBSD make, pick up + o debug output for .PARSEDIR and .PARSEFILE + +2011-10-10 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20111010 + +2011-10-09 Simon J. Gerraty + + * boot-strap: check for an expected file in the dirs we look for. + * make-bootstrap.sh: pass on LDSTATIC + +2011-10-01 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20111001 + Merge with NetBSD make, pick up + o ensure .PREFIX is set for .PHONY + and .TARGET set for .PHONY run via .END + o __dead used consistently + +2011-09-10 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): 20110909 is a better number ;-) + +2011-09-05 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110905 + Merge with NetBSD make, pick up + o meta_oodate: ignore makeDependfile + +2011-08-28 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110828 + Merge with NetBSD make, pick up + o silent=yes in .MAKE.MODE causes meta mode to mark targets + as SILENT if a .meta file is created + +2011-08-18 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110818 + Merge with NetBSD make, pick up + o in meta mode, if target flagged .META a missing .meta file + means target is out-of-date + o fixes for gcc 4.5 warnings + o simplify job printing code + +2011-08-09 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110808 + Merge with NetBSD make, pick up + o do not touch OP_SPECIAL targets when doing make -t + +2011-06-22 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110622 + Merge with NetBSD make, pick up + o meta_oodate detect corrupted .meta file and declare oodate. + * configure.in: add check for setsid + +2011-06-07 Simon J. Gerraty + + * Merge with NetBSD make, pick up + o unit-tests/modts now works on MirBSD + +2011-06-04 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110606 + Merge with NetBSD make, pick up + o ApplyModifiers: when we parse a variable which is not + the entire modifier string, or not followed by ':', do not + consider it as containing modifiers. + o loadfile: ensure newline at end of mapped file. + +2011-05-05 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110505 + Merge with NetBSD make, pick up + o .MAKE.META.BAILIWICK - list of prefixes which define the scope + of make's control. In meta mode, any generated file within + said bailiwick, which is found to be missing, causes current + target to be out-of-date. + +2011-04-11 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110411 + Merge with NetBSD make, pick up + o when long modifiers fail to match, check sysV style. + - add a test case + +2011-04-10 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110410 + Merge with NetBSD make, pick up + o :hash - cheap 32bit hash of value + o :localtime, :gmtime - use value as format string for strftime. + +2011-03-30 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110330 + mostly because its a cooler version. + Merge with NetBSD make, pick up + o NetBSD tags for meta.[ch] + o job.c call meta_job_finish() after meta_job_error(). + o meta_job_error() should call meta_job_finish() to ensure + .meta file is closed, and safe to copy - if .ERROR target wants. + meta_job_finish() is safe to call repeatedly. + +2011-03-29 Simon J. Gerraty + + * unit-tests/modts: use printf if it is a builtin, + to save us from MirBSD + + * Makefile.in (MAKE_VERSION): bump version to 20110329 + Merge with NetBSD make, pick up + o fix for use after free() in CondDoExists(). + o meta_oodate() report extra commands and return earlier. + +2011-03-27 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110327 + Merge with NetBSD make, pick up + o meta.c, if .MAKE.MODE contains curdirOk=yes + allow creating .meta files in .CURDIR + * boot-strap (TOOL_DIFF): aparently at least on linux distro + formats the output of 'type' differently - so eat any "()" + +2011-03-06 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110306 + Merge with NetBSD make, pick up + o meta.c, only do getcwd() once + +2011-03-05 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110305 + Merge with NetBSD make, pick up + o correct sysV substitution handling of empty lhs and variable + o correct exists() check for dir with trailing / + o correct handling of modifiers for non-existant variables + during evaluation of conditionals. + o ensure MAP_FILE is defined. + o meta.c use curdir[] now exported by main.c + +2011-02-25 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110225 + Merge with NetBSD make, pick up + o fix for incorrect .PARSEDIR when .OBJDIR is re-computed after + makefiles have been read. + o fix example of :? modifier in man page. + +2011-02-13 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110214 + Merge with NetBSD make, pick up + o meta.c handle realpath() failing when generating meta file + name. + + * sigcompat.c: convert to ansi so we can use higher warning levels. + + +2011-02-07 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110207 + Merge with NetBSD make, pick up + o fix for bug in meta mode. + +2011-01-03 Simon J. Gerraty + + * parse.c: SunOS 5.8 at least does not have MAP_FILE + +2011-01-01 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20110101 + Merge with NetBSD make, pick up + o use mmap(2) if available, for reading makefiles + +2010-12-15 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20101215 + Merge with NetBSD make, pick up + o ensure meta_job_error() does not report a previous .meta file + as being culprit. + +2010-12-10 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20101210 + Merge with NetBSD make, pick up + o meta_oodate: track cwd per process, and only consider target + out-of-date if missing file is outside make's CWD. + Ignore files in /tmp/ etc. + o to ensure unit-tests results match, need to control LC_ALL + as well as LANG. + o fix for parsing bug in var.c + +2010-11-26 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20101126 + Merge with NetBSD make, pick up + o if stale dependency is an IMPSRC, search via .PATH + o meta_oodate: if a referenced file is missing, target is + out-of-date. + o meta_oodate: if a target uses .OODATE in its commands, + it (.OODATE) needs to be recomputed. + o keep a pointer to youngest child node, rather than just its + mtime. + +2010-11-02 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20101101 + +2010-10-16 Simon J. Gerraty + + * machine.sh: like os.sh, + allow for uname -p producing useless drivel + +2010-09-13 Simon J. Gerraty + + * boot-strap: document configure knobs for meta and filemon. + + * Makefile.in (MAKE_VERSION): bump version to 20100911 + Merge with NetBSD make, pick up + o meta.c - meta mode + + * make-bootstrap.sh.in: handle meta.c + * configure.in: add knobs for use_meta and filemon_h + also, look for dirname, str[e]sep and strlcpy + * util.c: add simple err[x] and warn[x] + +2010-08-08 Simon J. Gerraty + + * boot-strap (TOOL_DIFF): set this to ensure tests use + the same version of diff that configure tested + + * Makefile.in (MAKE_VERSION): bump version to 20100808 + Merge with NetBSD make, pick up + o in jobs mode, when we discover we cannot make something, + call PrintOnError before exit. + +2010-08-06 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100806 + Merge with NetBSD make, pick up + o formatting fixes for ignored errors + o ensure jobs are cleaned up regardless of where wait() was called. + +2010-06-28 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100618 + * os.sh (MACHINE_ARCH): watch out for drivel from uname -p + +2010-06-16 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100616 + Merge with NetBSD make, pick up + o man page update + o call PrintOnError from JobFinish when we detect an error we + are not ignoring. + +2010-06-06 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100606 + Merge with NetBSD make, pick up + o man page update + +2010-06-05 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100605 + Merge with NetBSD make, pick up + o use bmake_signal() which is a wrapper around sigaction() + in place of signal() + o add .export-env to allow exporting variables to environment + without tracking (so no re-export when the internal value is + changed). + +2010-05-24 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100524 + Merge with NetBSD make, pick up + o fix for .info et al being greedy. + +2010-05-23 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100520 + Merge with NetBSD make, pick up + o back to using realpath on argv[0] + but only if contains '/' and does not start with '/'. + +2010-05-10 Simon J. Gerraty + + * boot-strap: use absolute path for bmake when running tests. + + * Makefile.in (MAKE_VERSION): bump version to 20100510 + Merge with NetBSD make, pick up + o revert use of realpath on argv[0] + too many corner cases. + o print MAKE_PRINT_VAR_ON_ERROR before running .ERROR target. + +2010-05-05 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100505 + Merge with NetBSD make, pick up + o fix for missed SIGCHLD when compiled with SunPRO + actually for bmake, defining FORCE_POSIX_SIGNALS would have + done the job. + +2010-04-30 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100430 + Merge with NetBSD make, pick up + o fflush stdout before writing to stdout + +2010-04-23 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100423 + Merge with NetBSD make, pick up + o updated unit tests for Haiku (this time for sure). + * boot-strap: based on patch from joerg + honor --with-default-sys-path better. + * boot-strap: remove mention of --with-prefix-sys-path + +2010-04-22 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100422 + * Merge with NetBSD make, pick up + o fix for vfork() on Darwin. + o fix for bogus $TMPDIR. + o set .MAKE.MODE=compat for -B + o set .MAKE.JOBS=max_jobs for -j max_jobs + o allow unit-tests to run without any *.mk + o unit-tests/modmisc be more conservative in dirs presumed to exist. + * boot-strap: ignore /usr/share/mk except on NetBSD. + * unit-tests/Makefile.in: set LANG=C when running unit-tests to + ensure sort(1) behaves as expected. + +2010-04-21 Simon J. Gerraty + + * boot-strap: add FindHereOrAbove so we can use -m .../mk + +2010-04-20 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100420 + * Merge with NetBSD make, pick up + o fix for variable realpath() behavior. + we have to stat(2) the result to be sure. + o fix for .export (all) when nested vars use :sh + +2010-04-14 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100414 + * Merge with NetBSD make, pick up + o use realpath to resolve argv[0] (for .MAKE) if needed. + o add realpath from libc. + o add :tA to resolve variable via realpath(3) if possible. + +2010-04-08 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100408 + * Merge with NetBSD make, pick up + o unit tests for .ERROR, .error + o fix for .ERROR to ensure it cannot be default target. + +2010-04-06 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100406 + * Merge with NetBSD make, pick up + o fix for compat mode "Error code" going to debug_file. + o fix for .ALLSRC being populated twice. + o support for .info, .warning and .error directives + o .MAKE.MODE to control make's operational mode + o .MAKE.MAKEFILE_PREFERENCE to control the preferred makefile + name(s). + o .MAKE.DEPENDFILE to control the name of the depend file + o .ERROR target - run on failure. + +2010-03-18 Simon J. Gerraty + + * make-bootstrap.sh.in: extract MAKE_VERSION from Makefile + + * os.sh,arch.c: patch for Haiku from joerg at netbsd + +2010-03-17 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100222 + * Merge with NetBSD make, pick up + o better error msg for .for with mutiple inter vars + + * boot-strap: + o use make-bootstrap.sh from joerg at netbsd + to avoid the need for a native make when bootstrapping. + o add "" everywhere ;-) + o if /usr/share/tmac/andoc.tmac exists install nroff bmake.1 + otherwise the pre-formated version. + +2010-01-04 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20100102 + * Merge with NetBSD make, pick up: + o fix for -m .../ + +2009-11-18 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20091118 + * Merge with NetBSD make, pick up: + o .unexport + o report lines that start with '.' and should have ':' + (catch typo's of .el*if). + +2009-10-30 Simon J. Gerraty + + * configure.in: Ensure that srcdir and mksrc are absolute paths. + +2009-10-09 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): fix version to 20091007 + +2009-10-07 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 200910007 + * Merge with NetBSD make, pick up: + o fix for parsing of :S;...;...; applied to .for loop iterator + appearing in a dependency line. + +2009-09-09 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20090909 + * Merge with NetBSD make, pick up: + o fix for -C, .CURDIR and .OBJDIR + * boot-strap: + o allow share_dir to be set independent of prefix. + o select default share_dir better when prefix ends in $HOST_TARGET + o if FORCE_BSD_MK etc were set, include them in the suggested + install-mk command. + +2009-09-08 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20090908 + * Merge with NetBSD make, pick up: + o .MAKE.LEVEL for recursion tracking + o fix for :M scanning \: + +2009-09-03 Simon J. Gerraty + + * configure.in: Don't -D__EXTENSIONS__ if + AC_USE_SYSTEM_EXTENSIONS says "no". + +2009-08-26 Simon J. Gerraty + + * Makefile.in (MAKE_VERSION): bump version to 20090826 + Simplify MAKE_VERSION to just the bare date. + * Merge with NetBSD make, pick up: + o -C directory support. + o support for SIGINFO + o use $TMPDIR for temp files. + o child of vfork should be careful about modifying parent's state. + + +2009-03-26 Simon J. Gerraty + + * Appy some patches for MiNT from David Brownlee + +2009-02-26 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20090222 + * Merge with NetBSD make, pick up: + o Possible null pointer de-ref in Var_Set. + +2009-02-08 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20090204 + * Merge with NetBSD make, pick up: + o bmake_malloc et al moved to their own .c + o Count both () and {} when looking for the end of a :M pattern + o Change 'Buffer' so that it is the actual struct, not a pointer to it. + o strlist.c - functions for processing extendable arrays of pointers to strings. + o ClientData replaced with void *, so const void * can be used. + o New debug flag C for DEBUG_CWD + +2008-11-11 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20081111 + Apply patch from Joerg Sonnenberge to + configure.in: + o remove some redundant checks + o check for emlloc etc only in libutil and require the whole family. + util.c: + o remove [v]asprintf which is no longer used. + +2008-11-04 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20081101 + * Merge with NetBSD make, pick up: + o util.c: avoid use of putenv() - christos + +2008-10-30 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20081030 + pick up man page tweaks. + +2008-10-29 Simon J. Gerraty + + * Makefile.in: move processing of LIBOBJS to after is definition! + thus we'll have getenv.c in SRCS only if needed. + + * make.1: add examples of how to use :? + + * Makefile.in (BMAKE_VERSION): bump version to 20081029 + * Merge with NetBSD make, pick up: + o fix for .END processing with -j + o segfault from Parse_Error when no makefile is open + o handle numeric expressions in any variable expansion + o debug output now defaults to stderr, -dF to change it - apb + o make now uses bmake_malloc etc so that it can build natively + on A/UX - wasn't an issue for bmake, but we want to keep in sync. + +2008-09-27 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20080808 + * Merge with NetBSD make, pick up: + o fix for PR/38840: Pierre Pronchery: make crashes while parsing + long lines in Makefiles + o optimizations for VarQuote by joerg + o fix for PR/38756: dominik: make dumps core on invalid makefile + +2008-05-15 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20080515 + * Merge with NetBSD make, pick up: + o fix skip setting vars in VAR_GLOBAL context, to handle + cases where VAR_CMD is used for other than command line vars. + +2008-05-14 Simon J. Gerraty + + * boot-strap (make_version): we may need to look in + $prefix/share/mk for sys.mk + + * Makefile.in (BMAKE_VERSION): bump version to 20080514 + * Merge with NetBSD make, pick up: + o skip setting vars in VAR_GLOBAL context, when already set in + VAR_CMD which takes precedence. + +2008-03-30 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20080330 + * Merge with NetBSD make, pick up: + o fix for ?= when LHS contains variable reference. + +2008-02-15 Simon J. Gerraty + + * merge some patches from NetBSD pkgsrc. + + * makefile.boot.in (BOOTSTRAP_SYS_PATH): Allow better control of + the MAKSYSPATH used during bootstrap. + + * Makefile.in (BMAKE_VERSION): bump version to 20080215 + * Merge with NetBSD make, pick up: + o warn if non-space chars follow 'empty' in a conditional. + +2008-01-18 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20080118 + * Merge with NetBSD make, pick up: + o consider dependencies read from .depend as optional - dsl + o remember when buffer for reading makefile grows - dsl + o add -dl (aka LOUD) - David O'Brien + +2007-10-22 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20071022 + * Merge with NetBSD make, pick up: + o Allow .PATH to be used for .include "" + + * boot-strap: source default settings from .bmake-boot-strap.rc + +2007-10-16 Simon J. Gerraty + + * Makefile.in: fix maninstall on various systems + provided that our man.mk is used. + For non-BSD systems we install the preformatted page + into $MANDIR/cat1 + +2007-10-15 Simon J. Gerraty + + * boot-strap: make bmake.1 too, so maninstall works. + +2007-10-14 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20071014 + * Merge with NetBSD make, pick up: + o revamped handling of defshell - configure no longer needs to + know the content of the shells array - apb + o stop Var_Subst modifying its input - apb + o avoid calling ParseTrackInput too often - dsl + +2007-10-11 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20071011 + * Merge with NetBSD make, pick up: + o fix Shell_Init for case that _BASENAME_DEFSHELL is absolute path. + + * sigcompat.c: some tweaks for HP-UX 11.x based on + patch from Tobias Nygren + + * configure.in: update handling of --with-defshell to match + new make behavior. --with-defshell=/usr/xpg4/bin/sh + will now do what one might hope - provided the chosen shell + behaves enough like sh. + +2007-10-08 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20071008 + * Merge with NetBSD make, pick up: + o .MAKE.JOB.PREFIX - control the token output before jobs - sjg + o .export/.MAKE.EXPORTED - export of variables - sjg + o .MAKE.MAKEFILES - track all makefiles read - sjg + o performance improvements - dsl + o revamp parallel job scheduling - dsl + +2006-07-28 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20060728 + * Merge with NetBSD make, pick up: + o extra debug info during variable and cond processing - sjg + o shell definition now covers newline - rillig + o minor mem leak in PrintOnError - sjg + +2006-05-11 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20060511 + * Merge with NetBSD make, pick up: + o more memory leaks - coverity + o possible overflow in ArchFindMember - coverity + o extract variable modifier code out of Var_Parse() + so it can be called recursively - sjg + o unit-tests/moderrs - sjg + +2006-04-12 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20060412 + * Merge with NetBSD make, pick up: + o fixes for some memory leaks - coverity + o only read first sys.mk etc when searching sysIncPath - sjg + + * main.c (ReadMakefile): remove hack for __INTERIX that prevented + setting ${MAKEFILE} - OBATA Akio + +2006-03-18 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20060318 + * Merge with NetBSD make, pick up: + o cleanup of job.c to remove remote handling, distcc is more + useful and this code was likely bit-rotting - dsl + o fix for :P modifier - sjg + * boot-strap: set default prefix to something reasonable + (for me anyway). + +2006-03-01 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20060301 + * Merge with NetBSD make, pick up: + o make .WAIT apply recursively, document and test case - apb + o allow variable modifiers in a variable appear anywhere in + modifier list, document and test case - sjg + +2006-02-22 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20060222 + * Merge with NetBSD make, pick up: + o improved job token handling - dsl + o SIG_DFL the correct signal before exec - dsl + o more debug info during parsing - dsl + o allow variable modifiers to be specified via variable - sjg + * boot-strap: explain why we died if no mksrc + +2005-11-05 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20051105 + * configure.in: always set default_sys_path + default is ${prefix}/share/mk + - remove prefix_sys_path, anyone wanting more than above + needs to set it manually. + +2005-11-04 Simon J. Gerraty + + * boot-strap: make this a bit easier for pkgsrc folk. + bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to + 'mips' while pkgsrc wants 'mipseb' or 'mipsel' + +2005-11-02 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20051102 + * job.c (JobFinish): fix likely ancient merge lossage + fix from Todd Vierling. + * boot-strap (srcdir): allow setting mksrc=none + +2005-10-31 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20051031 + * ranlib.h: skip on OSF too. + (NetBSD PR 31864) + +2005-10-10 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20051002 + fix a silly typo + +2005-10-09 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20051001 + support for UnixWare and some other systems, + based on patches from pkgsrc/bootstrap + +2005-09-03 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20050901 + * Merge with NetBSD make, pick up: + o possible parse error causing us to wander off. + +2005-06-06 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20050606 + * Merge with NetBSD make, pick up: + o :0x modifier for randomizing a list + o fixes for a number of -Wuninitialized issues. + +2005-05-30 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20050530 + * Merge with NetBSD make, pick up: + o Handle dependencies for .BEGIN, .END and .INTERRUPT + + * README: was seriously out of date. + +2005-03-22 Simon J. Gerraty + + * Important to use .MAKE rather than MAKE. + +2005-03-15 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20050315 + * Merge with NetBSD make, pick up: + o don't mistake .elsefoo for .else + o use suffix-specific search path correctly + o bunch of style nits + +2004-05-11 Simon J. Gerraty + + * boot-strap: + o ensure that args to --src and --with-mksrc + are resolved before giving them to configure. + o add -o "objdir" so that builder can control it, + default is $OS as determined by os.sh + o add -q to suppress all the install instructions. + +2004-05-08 Simon J. Gerraty + + * Remove __IDSTRING() + + * Makefile.in (BMAKE_VERSION): bump to 20040508 + * Merge with NetBSD make, pick up: + o posix fixes + - remove '-e' from compat mode + - add support for '+' command-line prefix. + o fix for handling '--' on command-line. + o fix include in lst.lib/lstInt.h to simplify '-I's + o we also picked up replacement of MAKE_BOOTSTRAP + with !MAKE_NATIVE which is a noop, but possibly confusing. + +2004-04-14 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20040414 + * Merge with NetBSD make, pick up: + o allow quoted strings on lhs of conditionals + o issue warning when extra .else is seen + o print line numer when errors encountered during parsing from + string. + +2004-02-20 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20040220 + * Merge with NetBSD make, pick up: + o fix for old :M parsing bug. + o re-jigged unit-tests + +2004-02-15 Simon J. Gerraty + + * Makefile.in (accept test): use ${.MAKE:S,^./,${.CURDIR}/,} + so that './bmake -f Makefile test' works. + +2004-02-14 Simon J. Gerraty + + * Makefile.in: (BMAKE_VERSION): bump to 20040214 + * Merge with NetBSD make, pick up: + o search upwards for *.mk + o fix for double free of var substitution buffers + o use of getopt replaced with custom code, since the usage + (re-scanning) isn't posix compatible. + +2004-02-12 Simon J. Gerraty + + * arch.c: don't include ranlib.h on ELF systems + (thanks to Chuck Cranor ). + +2004-01-18 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump to 20040118 + + * boot-strap (while): export vars we assign to on cmdline + * unit-test/Makefile.in: ternary is .PHONY + +2004-01-08 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20040108 + * Merge with NetBSD make, pick up: + o fix for ternary modifier + +2004-01-06 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20040105 + * Merge with NetBSD make, pick up: + o fix for cond.c to handle compound expressions better + o variable expansion within sysV style replacements + +2003-12-22 Simon J. Gerraty + + * Make portable snprintf safer - output to /dev/null first to + check space needed. + + * Makefile.in (BMAKE_VERSION): bump version to 20031222 + * Merge with NetBSD make, pick up: + o -dg3 to show input graph when things go wrong. + o explicitly look for makefiles in objdir if not found in curdir so + that errors in .depend etc will be reported accurarely. + o avoid use of -e in shell scripts in jobs mode, use '|| exit $?' + instead as it more accurately reflects the expected behavior and + is more consistently implemented. + o avoid use of asprintf. + +2003-09-28 Simon J. Gerraty + + * util.c: Add asprintf and vasprintf. + + * Makefile.in (BMAKE_VERSION): bump version to 20030928 + * Merge with NetBSD make, pick up: + :[] modifier - allows picking words from a variable. + :tW modifier - allows treating value as one big word. + W flag for :C and :S - allows treating value as one big word. + +2003-09-12 Simon J. Gerraty + + * Merge with NetBSD make + pick up -de flag to enable printing failed command. + don't skip 1st two dir entries (normally . and ..) since + coda does not have them. + +2003-09-09 Simon J. Gerraty + + * Makefile.in (BMAKE_VERSION): bump version to 20030909 + * Merge with NetBSD make, pick up: + - changes for -V '${VAR}' to print fully expanded value + cf. -V VAR + - CompatRunCommand now prints the command that failed. + - several files got updated 3 clause Berkeley license. + +2003-08-02 Simon J. Gerraty + + * boot-strap: Allow setting configure args on command line. + +2003-07-31 Simon J. Gerraty + + * configure.in: add --with-defshell to allow sh or ksh + to be selected as default shell. + + * Makefile.in: bump version to 20030731 + + * Merge with NetBSD make + Pick up .SHELL spec for ksh and associate man page changes. + Also compat mode now uses the same shell specs. + +2003-07-29 Simon J. Gerraty + + * var.c (Var_Parse): ensure delim is initialized. + + * unit-tests/Makefile.in: use single quotes to avoid problems from + some shells. + + * makefile.boot.in: + Run the unit-tests as part of the bootstrap procedure. + +2003-07-28 Simon J. Gerraty + + * unit-tests/Makefile.in: always force complaints from + ${TEST_MAKE} to be from 'make'. + + * configure.in: add check for 'diff -u' + also fix some old autoconf'isms + + * Makefile.in (BMAKE_VERSION): bump version to 20030728. + if using GCC add -Wno-cast-qual to CFLAGS for var.o + + * Merge with NetBSD make + Pick up fix for :ts parsing error in some cases. + Pick unit-tests. *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** From owner-svn-src-vendor@FreeBSD.ORG Fri Jun 8 21:58:52 2012 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4520F1065670; Fri, 8 Jun 2012 21:58:52 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 171FC8FC15; Fri, 8 Jun 2012 21:58:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q58LwpNd087248; Fri, 8 Jun 2012 21:58:51 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q58LwpV9087247; Fri, 8 Jun 2012 21:58:51 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <201206082158.q58LwpV9087247@svn.freebsd.org> From: "David E. O'Brien" Date: Fri, 8 Jun 2012 21:58:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236770 - vendor/NetBSD/bmake/20120606 X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2012 21:58:52 -0000 Author: obrien Date: Fri Jun 8 21:58:51 2012 New Revision: 236770 URL: http://svn.freebsd.org/changeset/base/236770 Log: "Tag" the r236769 Portable BSD make 6-May-2012 import. Added: vendor/NetBSD/bmake/20120606/ - copied from r236769, vendor/NetBSD/bmake/dist/