Moved all describes tests into their own functions.

Factored out the db specific tests and kept the macros as placeholders.
Import everything in the cabal file for now.
Only using the flags to test that everything still works.
This commit is contained in:
Fintan Halpenny 2017-08-09 00:19:09 +01:00
parent 352fca204c
commit fe4a78d4b6
2 changed files with 1587 additions and 1253 deletions

View File

@ -107,18 +107,16 @@ test-suite test
-- This library
, esqueleto
if flag(postgresql)
build-depends:
postgresql-simple >= 0.2
, postgresql-libpq >= 0.6
, persistent-postgresql >= 2.0
, postgresql-simple >= 0.2
, postgresql-libpq >= 0.6
, persistent-postgresql >= 2.0
, mysql-simple >= 0.2.2.3
, mysql >= 0.1.1.3
, persistent-mysql >= 2.0
if flag(postgresql)
cpp-options: -DWITH_POSTGRESQL
if flag(mysql)
build-depends:
mysql-simple >= 0.2.2.3
, mysql >= 0.1.1.3
, persistent-mysql >= 2.0
cpp-options: -DWITH_MYSQL

File diff suppressed because it is too large Load Diff