From owner-freebsd-toolchain@FreeBSD.ORG Wed Apr 24 16:32:15 2013 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5F190FE; Wed, 24 Apr 2013 16:32:15 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx1.freebsd.org (Postfix) with ESMTP id 26DC61F30; Wed, 24 Apr 2013 16:32:15 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id x11so1231787pdj.24 for ; Wed, 24 Apr 2013 09:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:mime-version:content-type:from:in-reply-to:date :cc:message-id:references:to:x-mailer; bh=d06dSJ3rib12iSCgorSeccWKqtgcHaX8v5dYiDSO6DE=; b=m+9HflqR9IOawIOIBAqWv9APpf7M3UzL2f/sisuHodqrkX9t/Uw0LJ5FuHZOBUDu+6 B6F7GxSnKT1/vjHo2MGYobOAeFfYJKxp6cmSOj7OlRxFRSE8lxMtH6QJFm4uVPmrDk8G B6b86Z0Y/Gdi/Yx9C3JBOWAiRAPjUZ3TUWOaw+wWhvJ2SqGas618tasRokzBJEFWUNWo nLZL4R26ODiX0UNtFjmufs+cKjxcYYIUtWCRKtTaEV8+H4y2520ofJtqfkN8bjubusHC fnDgLaKNXb6WBLiGfEBzOIgGO5lwwPOtVty11QrdWB+HxaNoBkFHGilJT7AJvnOfSOYK Sh8g== X-Received: by 10.66.100.231 with SMTP id fb7mr19959620pab.162.1366821129633; Wed, 24 Apr 2013 09:32:09 -0700 (PDT) Received: from fuji-wireless.local (c-98-203-241-95.hsd1.wa.comcast.net. [98.203.241.95]) by mx.google.com with ESMTPSA id br2sm3598772pbc.46.2013.04.24.09.32.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Apr 2013 09:32:08 -0700 (PDT) Subject: Re: [RFC] [Optionally] build tests with buildworld Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/mixed; boundary="Apple-Mail=_608A1616-6ED2-41C3-8E4C-09215CEE962B" From: Garrett Cooper In-Reply-To: <20130424162307.GA16731@lor.one-eyed-alien.net> Date: Wed, 24 Apr 2013 09:32:07 -0700 Message-Id: References: <20130423165958.GA91607@lor.one-eyed-alien.net> <1D2E12CF-08F2-4151-AB33-84C4270CFBC6@gmail.com> <20130424162307.GA16731@lor.one-eyed-alien.net> To: Brooks Davis X-Mailer: Apple Mail (2.1283) Cc: arch@freebsd.org, "Simon J. Gerraty" , benno@freebsd.org, toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 16:32:15 -0000 --Apple-Mail=_608A1616-6ED2-41C3-8E4C-09215CEE962B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Apr 24, 2013, at 9:23 AM, Brooks Davis wrote: >> =85 >> Hi Brooks! >> Does this look ok? Most of the MK_TESTS logic has been shoved = into bsd.own.mk and NO_TESTS is sprinkled around Makefile.inc1 as = recommended. >> Thanks! >> -Garrett >=20 > The functional parts seem fine. Some comments below. Here's an updated version of the patch with your comments = applied. Thanks! -Garrett --Apple-Mail=_608A1616-6ED2-41C3-8E4C-09215CEE962B Content-Disposition: attachment; filename=build-tests-with-world.patch Content-Type: application/octet-stream; name="build-tests-with-world.patch" Content-Transfer-Encoding: 7bit Index: Makefile.inc1 =================================================================== --- Makefile.inc1 (revision 249833) +++ Makefile.inc1 (working copy) @@ -91,6 +91,9 @@ .if ${MK_OFED} != "no" SUBDIR+=contrib/ofed .endif +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif # # We must do etc/ last for install/distribute to work. # @@ -253,7 +256,7 @@ SSP_CFLAGS= \ -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN \ -DNO_PIC -DNO_PROFILE -DNO_SHARED \ - -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD + -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD -DNO_TESTS # build-tools stage TMAKE= MAKEOBJDIRPREFIX=${OBJTREE} \ @@ -263,12 +266,12 @@ BOOTSTRAPPING=${OSRELDATE} \ SSP_CFLAGS= \ -DNO_LINT \ - -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD + -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD -DNO_TESTS # cross-tools stage XMAKE= TOOLS_PREFIX=${WORLDTMP} ${BMAKE} \ TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ - -DWITHOUT_GDB + -DWITHOUT_GDB -DNO_TESTS # world stage WMAKEENV= ${CROSSENV} \ @@ -343,7 +346,8 @@ -DLIBRARIES_ONLY \ -DNO_CPU_CFLAGS \ -DNO_CTF \ - -DNO_LINT + -DNO_LINT \ + -DNO_TESTS LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} ${LIB32WMAKEFLAGS} \ -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO -DWITHOUT_HTML @@ -489,7 +493,7 @@ @echo "--------------------------------------------------------------" ${_+_}cd ${.CURDIR}; \ ${WMAKE} -DNO_FSCHG -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT \ - -DWITHOUT_MAN -DNO_PROFILE libraries + -DWITHOUT_MAN -DNO_PROFILE -DNO_TESTS libraries _depend: @echo @echo "--------------------------------------------------------------" @@ -1733,7 +1737,7 @@ NOFUN=-DNO_FSCHG -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT \ -DWITHOUT_MAN -DWITHOUT_NLS -DNO_PROFILE \ - -DWITHOUT_KERBEROS -DWITHOUT_RESCUE -DNO_WARNS \ + -DWITHOUT_KERBEROS -DWITHOUT_RESCUE -DNO_TESTS -DNO_WARNS \ TARGET=${XDEV} TARGET_ARCH=${XDEV_ARCH} \ CPUTYPE=${XDEV_CPUTYPE} Index: share/mk/bsd.own.mk =================================================================== --- share/mk/bsd.own.mk (revision 249833) +++ share/mk/bsd.own.mk (working copy) @@ -378,6 +378,14 @@ OPENSSH_NONE_CIPHER \ SHARED_TOOLCHAIN +# bsd.test.mk doesn't work with !bmake. Also don't build tests if NO_TESTS is +# defined; this is for buildworld and elsewhere (ports potentially). +.if defined(.PARSEDIR) && !defined(NO_TESTS) +__DEFAULT_NO_OPTIONS+=TESTS +.else +MK_TESTS:= no +.endif + # # Default behaviour of some options depends on the architecture. Unfortunately # this means that we have to test TARGET_ARCH (the buildworld case) as well --Apple-Mail=_608A1616-6ED2-41C3-8E4C-09215CEE962B--