[libgda] Meson: added DDL creator tests
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Meson: added DDL creator tests
- Date: Mon, 25 Jun 2018 02:05:57 +0000 (UTC)
commit a4fca81d9dcb6a31c95a3e41af77177097f74199
Author: Daniel Espinosa <esodan gmail com>
Date: Sat Jun 23 08:59:10 2018 -0500
Meson: added DDL creator tests
meson.build | 1 +
tests/meson.build | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+)
---
diff --git a/meson.build b/meson.build
index 14fbb8cc3..ca71144fe 100644
--- a/meson.build
+++ b/meson.build
@@ -219,6 +219,7 @@ subdir('po')
subdir('libgda')
subdir('providers')
#subdir('libgda-ui')
+subdir('tests')
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 000000000..683181952
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,40 @@
+# -bin-converter test-sql-identifier test-identifiers-quotes test-sql-builder test-connection-string-split
test-input-parsers test-quark-list test-sql-renderer
+
+test_headers = files([
+ 'gda-ddl-creator.h'
+ ])
+
+tests_sources = files([
+ 'test-errors.h',
+ 'test-errors.c',
+ 'gda-ddl-creator.c',
+ 'test-cnc-utils.h',
+ 'test-cnc-utils.c',
+ 'data-model-errors.h',
+ 'data-model-errors.c'
+ ])
+
+tests_sources += test_headers
+
+tddlc = executable('test-ddl-creator test',
+ ['test-ddl-creator.c'] + tests_sources,
+ c_args: [
+ '-include',
+ meson.build_root() + '/config.h',
+ '-DCHECK_FILES="'+meson.source_root()+'"',
+ '-DTOP_BUILD_DIR="'+meson.build_root()+'"'
+ ],
+ link_with: libgda,
+ dependencies: [
+ libgda_dep,
+ inc_rooth_dep,
+ inc_sqliteh_dep
+ ],
+ install: false
+ )
+test('DDLCreator', tddlc,
+ env: [
+ 'GDA_TOP_SRC_DIR='+meson.source_root(),
+ 'GDA_TOP_BUILD_DIR='+meson.build_root()
+ ]
+ )
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]