From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
Cc: | PostgreSQL mailing lists <pgsql-odbc(at)postgresql(dot)org> |
Subject: | Re: Adding flag LDFLAGS for compilation of regression tests |
Date: | 2014-03-17 05:49:16 |
Message-ID: | CAB7nPqR+ourYGFbXtmKtmuhxHtyo28S5P-w3w-RXvj25Fp6j6Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
On Fri, Mar 14, 2014 at 8:02 PM, Heikki Linnakangas
<hlinnakangas(at)vmware(dot)com> wrote:
> Hmm. The regression test Makefile really ought to pick up the same settings
> we use for the main makefile, so that if you do "./configure
> --with-unixodbc=...", the regression tests are automatically built against
> the same library.
>
> I'm not sure what's the best way to achieve that. The regression Makefile is
> currently completely separate from the automake system. We could add
> "SUBDIRS=test" into Makefile.am, and then you could do "make installcheck"
> from the top directory to run the regressions, and you could use the LDFLAGS
> and other variables set by automake.
>
> A problem with that is that the regression suite Makefile depends on
> PostgreSQL's pg_config to find the pg_regress program. I guess the proper
> solution would be to add an optional configure flag to provide a path to
> pg_config. If pg_config is not found, then you couldn't run the regression
> tests, but you could still build the driver without the PostgreSQL header
> files etc.
Even with that, don't we need first to move the automake process
currently done on ./Makefile.am to another file? Like let's say
Makefile.global.am, which contains all the variables set by automake.
Then we create a new file ./Makefile at the root folder that includes
Makefile.global. Something similar should be done with test/Makefile
(inclusion of ./Makefile.global) and it would be able to use the
values of CFLAGS, CDFLAGS and even PG_CONFIG that configure has set.
Thoughts?
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-03-17 08:32:05 | Re: Adding flag LDFLAGS for compilation of regression tests |
Previous Message | Heikki Linnakangas | 2014-03-14 11:02:30 | Re: Adding flag LDFLAGS for compilation of regression tests |