From owner-freebsd-ports@freebsd.org Wed Sep 16 18:25:14 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A3D213ED917 for ; Wed, 16 Sep 2020 18:25:14 +0000 (UTC) (envelope-from naddy@mips.inka.de) Received: from mail.inka.de (mail.inka.de [IPv6:2a04:c9c7:0:1073:217:a4ff:fe3b:e77c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bs7n55vM9z45RJ; Wed, 16 Sep 2020 18:25:13 +0000 (UTC) (envelope-from naddy@mips.inka.de) Received: from mips.inka.de (naddy@[127.0.0.1]) by mail.inka.de with uucp (rmailwrap 0.5) id 1kIc77-00CG4E-EV; Wed, 16 Sep 2020 20:25:05 +0200 Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.16.1/8.16.1) with ESMTP id 08GIM5aw002344; Wed, 16 Sep 2020 20:22:05 +0200 (CEST) (envelope-from naddy@lorvorc.mips.inka.de) Received: (from naddy@localhost) by lorvorc.mips.inka.de (8.16.1/8.16.1/Submit) id 08GIM5do002343; Wed, 16 Sep 2020 20:22:05 +0200 (CEST) (envelope-from naddy) Date: Wed, 16 Sep 2020 20:22:05 +0200 From: Christian Weisgerber To: Mathieu Arnold Cc: freebsd-ports@freebsd.org Subject: Re: TEST_DEPENDS on itself? Message-ID: <20200916182205.GA2044@lorvorc.mips.inka.de> References: <20200914145923.hu7nzhmyb5l3onbr@aching.in.mat.cc> <20200914200706.GA33098@lorvorc.mips.inka.de> <20200915115120.dojdypsrvhgrt54g@aching.in.mat.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915115120.dojdypsrvhgrt54g@aching.in.mat.cc> X-Rspamd-Queue-Id: 4Bs7n55vM9z45RJ X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of naddy@mips.inka.de has no SPF policy when checking 2a04:c9c7:0:1073:217:a4ff:fe3b:e77c) smtp.mailfrom=naddy@mips.inka.de X-Spamd-Result: default: False [1.70 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[naddy]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.22)[0.217]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[inka.de]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-0.43)[-0.432]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.01)[0.013]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:202113, ipnet:2a04:c9c7::/32, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2020 18:25:14 -0000 Mathieu Arnold: > > I'm working on a port that can't run its regression tests out of > > the build or stage areas. The command to be tested will call > > submodules with compiled in absolute paths (/usr/local/libexec/...). > > So this port bla/foo would require to be already installed for > > testing: > > > > TEST_DEPENDS= foo:bla/foo > > > > The foo command will call /usr/local/libexec/foo/foo-helper. If > > the latter isn't there, foo won't run. > > Well, you cannot have recursive dependencies, so a port cannot depend on > itself. What about if you chroot in STAGEDIR to run the tests? The stage area is far too incomplete. So, no TEST_DEPENDS. A simple Makefile rule "test: install"? I see there is precedence in the tree: cad/opencascade/Makefile:regression-test: install math/rkward-kde/Makefile:regression-test: install math/arpack++/Makefile:test: install math/py-fpylll/Makefile:do-test: install math/mumps4/Makefile:regression-test: install math/jags/Makefile:check test: install math/mumps/Makefile:regression-test: install devel/aap/Makefile:test: install french/aster/Makefile:regression-test: install science/gnudatalanguage/Makefile:regression-test: install textproc/sowing/Makefile:regression-test: install net/py-libdnet/Makefile:regression-test: install net/mpich2/Makefile:regression-test: install -- Christian "naddy" Weisgerber naddy@mips.inka.de