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 1jiH8q-0000xe-R4 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2020 12:44:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jiH8p-0001Hr-Hy for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Jun 2020 12:44:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiH8o-0001Hk-Io for pgsql-hackers@lists.postgresql.org; Mon, 08 Jun 2020 12:44:39 +0000 Received: from forward2-smtp.messagingengine.com ([66.111.4.226]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiH8l-0001GW-CD for pgsql-hackers@postgresql.org; Mon, 08 Jun 2020 12:44:37 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id E2CF81940AF7 for ; Mon, 8 Jun 2020 08:44:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 08 Jun 2020 08:44:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=Jhbdh4kzdPPKSSeFfcd/Xqa60SYQD FNNSLFzXCedC6I=; b=IM8Gq7bIb/4K3fCsWquevst8oTj3WuXf3IdsJ1C6zZqHX i7Xz9XmI4It26IgbGMd67KDvzwD2cbtYffN/VibbUONxOokXH5k3ig6+RFUBbzb7 wik9yXBYnl4Le/tITeBhBaQNChzUgf/GaG568x3SQ+I5lcUAn2rJKCA2QDRD7eSI odHDkAKrHIQuZIV9agyq2PRxnTonp8+WT642Dl0I9ztggLlbNn2Mk3/fGeBck+wR AqGeeQ/SKl/dIYGbrZZKEMZDejBHPVs3qHoW9jIvqnuQkVKKKKAqJbfxKsX4b3Nk n889uqPuVCkMvqDvk31QaSt033FbZUjer8JleLDiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehuddgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefvhffuohfkffgfgggtsehmtderre dtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgv ihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvg hrnhepkeeileelfedttdelteekvefghefhvdeigfduteejtdeuuefgffdvleethfefuedv necuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgtohhmnecukfhppeelfedrvdegfe drkedvrddvgeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtoh hm X-ME-Proxy: Received: from april.pezone.net (p5df352f6.dip0.t-ipconnect.de [93.243.82.246]) by mail.messagingengine.com (Postfix) with ESMTPA id F1ECB328005A for ; Mon, 8 Jun 2020 08:44:32 -0400 (EDT) To: pgsql-hackers From: Peter Eisentraut Subject: TAP tests and symlinks on Windows Organization: 2ndQuadrant Message-ID: Date: Mon, 8 Jun 2020 14:44:31 +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 Content-Type: multipart/mixed; boundary="------------C75023C1DF3A9960E6D043DC" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------C75023C1DF3A9960E6D043DC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit The tests src/bin/pg_basebackup/t/010_pg_basebackup.pl src/bin/pg_rewind/t/004_pg_xlog_symlink.pl both contain a TAP skip notice "symlinks not supported on Windows". This is untrue. Symlinks certainly work on Windows, and we have other TAP tests using them, for example for tablespaces. pg_rewind/t/004_pg_xlog_symlink.pl passes for me on Windows if I just remove the skip stuff. My attached patch does that. If I remove the skip stuff in pg_basebackup/t/010_pg_basebackup.pl, it fails in various interesting ways. Apparently, some more work is needed to get the various paths handled correct on Windows. (At least a TestLib::perl2host call appears to be required.) I don't have the enthusiasm to fix this right now, but my patch at least updates the comment from "this isn't supported" to "this doesn't work correctly yet". -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --------------C75023C1DF3A9960E6D043DC Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="0001-Enable-some-symlink-tests-on-Windows.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Enable-some-symlink-tests-on-Windows.patch" RnJvbSA4MjI1ODNhMDFkYzRmMTZkNzMzOTBlMjY2NzM1ZDc1OGUxNTA3NjM2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQZXRlciBFaXNlbnRyYXV0IDxwZXRlckBlaXNlbnRy YXV0Lm9yZz4KRGF0ZTogU2F0LCA2IEp1biAyMDIwIDA5OjM4OjU0ICswMjAwClN1YmplY3Q6 IFtQQVRDSCAxLzJdIEVuYWJsZSBzb21lIHN5bWxpbmsgdGVzdHMgb24gV2luZG93cwoKLS0t CiBzcmMvYmluL3BnX2Jhc2ViYWNrdXAvdC8wMTBfcGdfYmFzZWJhY2t1cC5wbCB8ICA2ICsr Ky0tLQogc3JjL2Jpbi9wZ19y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