From owner-freebsd-ports@freebsd.org Mon Sep 14 20:10:09 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 D8BC03E117F for ; Mon, 14 Sep 2020 20:10:09 +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 4BqyC50stcz4HyK; Mon, 14 Sep 2020 20:10:08 +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 1kHune-00BEyl-0X; Mon, 14 Sep 2020 22:10:06 +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 08EK76OV033350; Mon, 14 Sep 2020 22:07:06 +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 08EK767V033349; Mon, 14 Sep 2020 22:07:06 +0200 (CEST) (envelope-from naddy) Date: Mon, 14 Sep 2020 22:07:06 +0200 From: Christian Weisgerber To: Mathieu Arnold Cc: freebsd-ports@freebsd.org Subject: Re: TEST_DEPENDS on itself? Message-ID: <20200914200706.GA33098@lorvorc.mips.inka.de> References: <20200914145923.hu7nzhmyb5l3onbr@aching.in.mat.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200914145923.hu7nzhmyb5l3onbr@aching.in.mat.cc> X-Rspamd-Queue-Id: 4BqyC50stcz4HyK 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 [0.37 / 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_HAM_LONG(-0.64)[-0.643]; 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.64)[-0.643]; NEURAL_HAM_SHORT(-0.24)[-0.245]; RCPT_COUNT_TWO(0.00)[2]; 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: Mon, 14 Sep 2020 20:10:09 -0000 Mathieu Arnold: > > Is a port allowed to depend on the installed version of itself for > > running "make test"? > > Nope. Tests are run after the port is installed, so, it should already That is not true. "test" depends on "stage". It does not install the port. > be ok. What problem are you trying to solve. 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. -- Christian "naddy" Weisgerber naddy@mips.inka.de