Running regression tests on Windows

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-odbc(at)postgresql(dot)org>
Subject: Running regression tests on Windows
Date: 2014-05-20 13:31:22
Message-ID: CAB7nPqSZ1E42fdAaP4NjDG6HeC14WuWRN0rhR_eFHTuMV0KBdg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi all,

Lately I have been playing with nmake to try to compile and to run the
regression tests on Windows. After some hacking, I have been able to get
the regression tests compiling, resulting in the patch attached. This is
not that beautiful, but it has the merit to generate clean .sql files for
each test as well as their associated .exe, making the set ready to work
with pg_regress.

Now, I am trying to figure out how to run those regressions with
pg_regress. On Linux, we use a given combination of odbcinst.ini and
odbc.ini with a launcher that actually sets ODBCSYSINI to set the path
where looking for the .ini files. I have been trying several combinations
of --launcher as well as setting up ODBCSYSINI in either the makefile or as
an environment viriable without success, pg_regress continues to complain
with the following error:
! SQLDriverConnect failed.
! IM002=[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified
So obviously pg_regress is not able to find the initialization files
properly...

odbcinst.ini has the following shape so I think that it is fine:
[psqlodbc test driver]
Description = PostgreSQL ODBC driver (Unicode version), for regression
tests
Driver = ../$CPU/psqlodbc35w.lib
Debug = 0
CommLog = 1
odbc.ini remains unchanged.

Any ideas of the thing I am missing?
--
Michael

Attachment Content-Type Size
20140520_pgodbc_regress_windows.patch text/plain 1.6 KB

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Heikki Linnakangas 2014-05-20 16:38:56 Re: Running regression tests on Windows
Previous Message Blake Pusztai 2014-05-19 21:10:09 Re: [ANNOUNCE] psqlODBC 09.03.0300 Released