Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jon2S-0000uB-SS for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2020 12:01:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jon2P-0007O2-RR for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2020 12:00:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jon2O-0007Nu-OV for pgsql-hackers@lists.postgresql.org; Fri, 26 Jun 2020 12:00:57 +0000 Received: from [66.111.4.226] (helo=forward2-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jon2K-0006pj-3D for pgsql-hackers@postgresql.org; Fri, 26 Jun 2020 12:00:56 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 7BADD194076F; Fri, 26 Jun 2020 08:00:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 26 Jun 2020 08:00:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=mMvgROEu6vD5bEhiUeFrlmVB4rpuMzGRMYTqdWNPB A0=; b=ofPai9HmMC1wu3Uwkp+anVXz/fStW7JE6magNnoa9dzsPOexDeoNgVMMi e6C8vV3muRUTLrq8L9xPCawkuV+Ofs241iFDxHLtkp3zzBmqnlc2wxOJBzLzVLC6 5puFU5swuZphKL2kW4QNnjeqoXGx8uebPlwEXwB82uAIEyirkSolfUVu9mtUuPpZ QAzbiQ3LdiGhPy/MnMy4OZ0OdxlCXaaMEiD7EOwdGI2m3WgDuE9Lc2qrYVe1fOu9 kCapKDTUibrMgXJTD0rbDzqYTVi6s0HaR8jYN1Y3mJK3NJroKIMswgwWCttGSxpD NRQPxMcK1k8eJE65G2RNPd0HZw9Rw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeluddggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeehnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnhepveeuteelvdeuudfggfev udegudfhvdekgeeufefhtdeguedugefhheeugeefhfeinecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfedrudeluddrvdefkeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvih hsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df3bfee.dip0.t-ipconnect.de [93.243.191.238]) by mail.messagingengine.com (Postfix) with ESMTPA id E30CF3280060; Fri, 26 Jun 2020 08:00:38 -0400 (EDT) Subject: Re: TAP tests and symlinks on Windows To: Michael Paquier , Andrew Dunstan References: <20200609071931.GE38342@paquier.xyz> <89a38304-8900-2e6b-de26-19a0312f3a87@2ndquadrant.com> <87sgf4pmb8.fsf@wibble.ilmari.org> <20200612065957.GA3362@paquier.xyz> <20200613060054.GM3362@paquier.xyz> <20200615062319.GF52676@paquier.xyz> <11c4ee09-3706-5912-ffd7-dc3657de7a5e@2ndQuadrant.com> <20200617074434.GB118592@paquier.xyz> <20200623105527.GA1974@paquier.xyz> Cc: =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , =?UTF-8?Q?Dagfinn_Ilmari_Manns=c3=a5ker?= , pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <3ebcde2b-3b78-2e5f-9249-03c709dc23dd@2ndquadrant.com> Date: Fri, 26 Jun 2020 14:00:37 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200623105527.GA1974@paquier.xyz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.226 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-06-23 12:55, Michael Paquier wrote: > I have implemented a patch based on the feedback received that does > the following, tested with all three patterns (MSVC only on Windows): > - Assume that all non-Windows platform have a proper symlink > implementation for perl. > - If on Windows, check for the presence of Win32::Symlink: > -- If the module is not detected, skip the tests not supported. > -- If the module is detected, run them. We should be more accurate about things like this: +# The following tests test symlinks. Windows may not have symlinks, so +# skip there. The issue isn't whether Windows has symlinks, since all versions of Windows supported by PostgreSQL do (AFAIK). The issue is only whether the Perl installation that runs the tests has symlink support. And that is only necessary if the test itself wants to create or inspect symlinks. For example, there are existing tests involving tablespaces that work just fine on Windows. Relatedly, your patch ends up skipping the tests on MSYS2, even though Perl supports symlinks there out of the box. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services