From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Noah Misch <noah@leadboat.com>
To: pgsql-hackers@postgresql.org
Subject: Re: Fix testing on msys when builddir is under /c mount point
Date: Mon, 10 Jun 2019 10:40:34 -0400
Message-ID: <61a58a05-7c8b-3e06-661b-e141c483de3e@2ndQuadrant.com> (raw)
In-Reply-To: <20190610045838.GA238501@rfd.leadboat.com>
References: <20190610045838.GA238501@rfd.leadboat.com>
On 6/10/19 12:58 AM, Noah Misch wrote:
> Several TAP test suites have a need to translate from an msys path to a
> Windows path. They currently use two ways to do that:
>
> 1. TestLib::real_dir, new in v11, is sound but works for directories only.
> 2. The $vfs_path approach is semi-private to PostgresNode.pm and 017_shm.pl,
> and it does not work if the file falls in a mount point other than "/".
> For example, it has been doing the wrong thing when builddir is
> /c/nm/postgresql (falling in mount point /c).
>
> I'd like to fix the mount point problem and consolidate these two methods. I
> plan to call it TestLib::perl2host, since it translates a path in Perl's
> notion of the filesystem to a path in the @host@ notion of the filesystem.
> Attached.
Looks sane enough. I think I had to work round this recently by using a
Windows symlink/junction.
I haven't tested it.
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: andrew.dunstan@2ndquadrant.com, noah@leadboat.com
Subject: Re: Fix testing on msys when builddir is under /c mount point
In-Reply-To: <61a58a05-7c8b-3e06-661b-e141c483de3e@2ndQuadrant.com>
References: <20190610045838.GA238501@rfd.leadboat.com> <61a58a05-7c8b-3e06-661b-e141c483de3e@2ndQuadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox