Re: plpgsql test layout

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: plpgsql test layout
Date: 2017-12-13 03:59:37
Message-ID: CAB7nPqQY6t6kc=yT8WrPN2SajB_3V=W2O86u3QDbD3BGrYXEBA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 13, 2017 at 6:36 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> writes:
>> On 12/11/17 19:29, Michael Paquier wrote:
>>> If I read vcregress.pl correctly, it seems to me that you need to do
>>> more with MSVC (see plcheck). The tests would kick if sql/ and
>>> expected/ are found, and the test list is fetched by looking at
>>> REGRESSION in the test files. However plpgsql code has an additional
>>> src/ folder which would cause the tests to not execute. If plpgsql
>>> code was moved on folder down then the tests would execute properly.
>
>> OK, I hacked something up for MSVC. How about this?
>
> Looks ok to me, though I'm not in a position to actually test the
> msvc changes.

I have been able to check that the tests are working correctly, but
after changing the references from relative paths to absolute paths,
or my environment is complaining about ".." not being a command...

my $status = $? >> 8;
exit $status if $status;
chdir "..";
+ chdir ".." if $lang eq 'plpgsql';
}
This can be replaced with a single "$topdir/src/pl".

Attached is what I have some up with, based on Peter's v2.
--
Michael

Attachment Content-Type Size
plpgsql-msvc-michael.patch application/octet-stream 4.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2017-12-13 04:01:09 Re: pg_ctl on windows can't open postmaster.pid: Permission denied
Previous Message Thomas Munro 2017-12-13 03:25:40 Re: Parallel Index Scan vs BTP_DELETED and BTP_HALF_DEAD