Re: Need help with moving test cases in extension folder

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: mahendrakar s <mahendrakarforpg(at)gmail(dot)com>, pgsql-novice <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: Need help with moving test cases in extension folder
Date: 2022-06-10 01:59:16
Message-ID: 5ac8eff47751aa32dd1e4398960019a3fea0a762.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thu, 2022-06-09 at 22:09 +0530, mahendrakar s wrote:
> When we run `make check` inside the contrib/<extension> folder, it ALWAYS looks for folder `sql` for testscripts. 
> i.e: contrib/<extension>/sql -->[1].
>
> I have a requirement to move test related folders to a different folder(sub directory of extension),
> i.e contrib/<extension>/<testsubdir>/sql -->[2].
>
> Is there a way to tell `make check` to look at [2] instead of [1]? Are there any flags to configure Makefile? Can you please let me know.
> Appreciate your help.

No, the location of the regression tests is hard-coded.

You can add NO_INSTALLCHECK to the Makefile to skip the automatic execution
of the regression tests and run your own later in a different way.

Yours,
Laurenz Albe

PS: I have the feeling that surprisingly, the questions on the -novice list are
almost never novice questions. I wonder why.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message mahendrakar s 2022-06-13 17:27:32 Info on error `Connection to client lost`
Previous Message mahendrakar s 2022-06-09 16:39:11 Need help with moving test cases in extension folder