Put unixODBC under basic build / test coverage

This commit is contained in:
Evan Miller
2020-08-11 11:56:08 -04:00
parent 71e10395fd
commit f7e863b8e4
2 changed files with 15 additions and 1 deletions

View File

@@ -17,15 +17,17 @@ addons:
apt:
packages:
- libiodbc2-dev
- unixodbc-dev
homebrew:
packages:
- libiodbc
- unixodbc
before_script:
- autoreconf -i -f -Wno-portability
script:
- ./configure --disable-man --disable-silent-rules --disable-glib --with-iodbc=/usr
- ./configure --disable-man --disable-silent-rules --disable-glib
- make
- ./src/util/mdb-array test/data/ASampleDatabase.accdb "Asset Items"
- ./src/util/mdb-array test/data/nwind.mdb "Customers"
@@ -39,4 +41,11 @@ script:
- ./src/util/mdb-tables test/data/nwind.mdb
- ./src/util/mdb-ver test/data/ASampleDatabase.accdb
- ./src/util/mdb-ver test/data/nwind.mdb
- make clean
- ./configure --disable-man --disable-silent-rules --disable-glib --with-iodbc=/usr
- make
- env MDBPATH=test/data ./src/odbc/unittest
- make clean
- ./configure --disable-man --disable-silent-rules --disable-glib --with-unixodbc=/usr
- make
- env MDBPATH=test/data ./src/odbc/unittest

View File

@@ -120,6 +120,11 @@ if test "$with_unixodbc"; then
ODBC_LIBS="-L$with_unixodbc/lib"
CFLAGS="$CFLAGS -DUNIXODBC"
dnl SIZEOF_LONG_INT and HAVE_LONG_LONG are required by some versions of unixODBC
dnl https://github.com/lurcher/unixODBC/issues/40
AC_CHECK_SIZEOF([long int])
AC_CHECK_TYPES([long long])
OLDLDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS $ODBC_LIBS"
AC_CHECK_LIB(odbcinst, SQLGetPrivateProfileString,