Running regression tests on Windows

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Running regression tests on Windows
Дата
Msg-id CAB7nPqSZ1E42fdAaP4NjDG6HeC14WuWRN0rhR_eFHTuMV0KBdg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Running regression tests on Windows
Список 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
Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Warnings when compiling code with nmake on Windows (x64)
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Running regression tests on Windows