Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge of Testing on Mac OSX(against iODBC) in Travis
- Loading branch information
Showing
4 changed files
with
98 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
# set variables for Connector/ODBC | ||
export TEST_DRIVER="$PWD/libmaodbc.dylib" | ||
export TEST_DSN=madb_connstring_test | ||
export TEST_SERVER=localhost | ||
export TEST_SOCKET= | ||
export TEST_SCHEMA=odbc_test | ||
export TEST_UID=root | ||
export TEST_PASSWORD= | ||
|
||
# for some reason brew upgrades postgresql, so let's remove it | ||
brew remove postgis | ||
brew uninstall --ignore-dependencies postgresql | ||
# upgrade openssl | ||
brew upgrade openssl | ||
# install unixodbc | ||
brew install libiodbc | ||
# install and start MariaDB Server | ||
brew install mariadb | ||
mysql.server start | ||
|
||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_OPENSSL=ON -DWITH_IODBC=ON -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2q -DOPENSSL_LIBRARIES=/usr/local/Cellar/openssl/1.0.2q/lib | ||
cmake --build . --config RelWithDebInfo | ||
################################################################################################################### | ||
# run test suite | ||
################################################################################################################### | ||
|
||
# set variables for odbc.ini and odbcinst.ini | ||
export ODBCINI="$PWD/test/odbc.ini" | ||
cat ${ODBCINI} | ||
export ODBCINSTINI="$PWD/test/odbcinst.ini" | ||
cat ${ODBCINSTINI} | ||
|
||
# check users of MariaDB and create test database | ||
mysql --version | ||
mysql -u root -e "SELECT user, host FROM mysql.user" | ||
mysql -u root -e "CREATE DATABASE odbc_test" | ||
mysql -u root -e "SHOW DATABASES" | ||
|
||
echo "Running tests" | ||
cd test | ||
ctest -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters