mirror of
https://github.com/SOCI/soci.git
synced 2026-02-14 01:28:54 -06:00
Work around vector int8_t unit test failure with FreeTDS: due to a bug in the current versions of FreeTDS ODBC drivers, negative TINYINT values are stored as positive values in the database and so sorting by them doesn't work, even if reading them back does work. The issue (https://github.com/FreeTDS/freetds/issues/627) was fixed in the latest FreeTDS version, but for now work around it in SOCI tests to let them pass even with older ones. See #1194.
soci/tests
SOCI tests using CATCH testing framework live here.
Currently one test is built for each backend, i.e. there are
soci_oracle_test, soci_postgresql_test, soci_sqlite3_test and so on and
for ODBC backend there are multiple versions of the test depending on the ODBC
driver used. Each of these tests can be run with a single parameter describing
the database to use for testing in the backend-specific way as well as any of
the standard CATCH command line options.