diff options
Diffstat (limited to 'src/datastore/meson.build')
-rw-r--r-- | src/datastore/meson.build | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/src/datastore/meson.build b/src/datastore/meson.build index 77a21b8be..c49bfe449 100644 --- a/src/datastore/meson.build +++ b/src/datastore/meson.build | |||
@@ -18,6 +18,7 @@ if get_option('monolith') | |||
18 | endforeach | 18 | endforeach |
19 | subdir_done() | 19 | subdir_done() |
20 | endif | 20 | endif |
21 | |||
21 | libgnunetdatastore = library('gnunetdatastore', | 22 | libgnunetdatastore = library('gnunetdatastore', |
22 | libgnunetdatastore_src, | 23 | libgnunetdatastore_src, |
23 | soversion: '1', | 24 | soversion: '1', |
@@ -41,6 +42,7 @@ shared_module('gnunet_plugin_datastore_sqlite', | |||
41 | include_directories: [incdir, configuration_inc], | 42 | include_directories: [incdir, configuration_inc], |
42 | install: true, | 43 | install: true, |
43 | install_dir: get_option('libdir')/'gnunet') | 44 | install_dir: get_option('libdir')/'gnunet') |
45 | |||
44 | shared_module('gnunet_plugin_datastore_heap', | 46 | shared_module('gnunet_plugin_datastore_heap', |
45 | ['plugin_datastore_heap.c'], | 47 | ['plugin_datastore_heap.c'], |
46 | dependencies: [libgnunetutil_dep, | 48 | dependencies: [libgnunetutil_dep, |
@@ -80,3 +82,125 @@ executable ('gnunet-service-datastore', | |||
80 | install: true, | 82 | install: true, |
81 | install_dir: get_option('libdir')/'gnunet'/'libexec') | 83 | install_dir: get_option('libdir')/'gnunet'/'libexec') |
82 | 84 | ||
85 | testds_sqlite = executable ('test_store_api_sqlite', | ||
86 | ['test_datastore_api.c'], | ||
87 | dependencies: [ | ||
88 | libgnunetdatastore_dep, | ||
89 | libgnunetutil_dep, | ||
90 | libgnunettesting_dep | ||
91 | ], | ||
92 | include_directories: [incdir, configuration_inc], | ||
93 | install: false) | ||
94 | |||
95 | testds_mgmt_sqlite = executable ('test_datastore_api_management_sqlite', | ||
96 | ['test_datastore_api_management.c'], | ||
97 | dependencies: [ | ||
98 | libgnunetdatastore_dep, | ||
99 | libgnunetutil_dep, | ||
100 | libgnunettesting_dep | ||
101 | ], | ||
102 | include_directories: [incdir, configuration_inc], | ||
103 | install: false) | ||
104 | |||
105 | testds_plugin_sqlite = executable ('test_plugin_datastore_sqlite', | ||
106 | ['test_plugin_datastore.c'], | ||
107 | dependencies: [ | ||
108 | libgnunetdatastore_dep, | ||
109 | libgnunetutil_dep, | ||
110 | libgnunettesting_dep | ||
111 | ], | ||
112 | include_directories: [incdir, configuration_inc], | ||
113 | install: false) | ||
114 | |||
115 | testds_heap = executable ('test_datastore_api_heap', | ||
116 | ['test_datastore_api.c'], | ||
117 | dependencies: [ | ||
118 | libgnunetdatastore_dep, | ||
119 | libgnunetutil_dep, | ||
120 | libgnunettesting_dep | ||
121 | ], | ||
122 | include_directories: [incdir, configuration_inc], | ||
123 | install: false) | ||
124 | |||
125 | testds_mgmt_heap = executable ('test_datastore_api_management_heap', | ||
126 | ['test_datastore_api_management.c'], | ||
127 | dependencies: [ | ||
128 | libgnunetdatastore_dep, | ||
129 | libgnunetutil_dep, | ||
130 | libgnunettesting_dep | ||
131 | ], | ||
132 | include_directories: [incdir, configuration_inc], | ||
133 | install: false) | ||
134 | |||
135 | testds_plugin_heap = executable ('test_plugin_datastore_heap', | ||
136 | ['test_plugin_datastore.c'], | ||
137 | dependencies: [ | ||
138 | libgnunetdatastore_dep, | ||
139 | libgnunetutil_dep, | ||
140 | libgnunettesting_dep | ||
141 | ], | ||
142 | include_directories: [incdir, configuration_inc], | ||
143 | install: false) | ||
144 | |||
145 | testds_pq = executable ('test_datastore_api_postgres', | ||
146 | ['test_datastore_api.c'], | ||
147 | dependencies: [ | ||
148 | libgnunetdatastore_dep, | ||
149 | libgnunetutil_dep, | ||
150 | libgnunettesting_dep | ||
151 | ], | ||
152 | include_directories: [incdir, configuration_inc], | ||
153 | install: false) | ||
154 | |||
155 | testds_plugin_pq = executable ('test_plugin_datastore_postgres', | ||
156 | ['test_plugin_datastore.c'], | ||
157 | dependencies: [ | ||
158 | libgnunetdatastore_dep, | ||
159 | libgnunetutil_dep, | ||
160 | libgnunettesting_dep | ||
161 | ], | ||
162 | include_directories: [incdir, configuration_inc], | ||
163 | install: false) | ||
164 | |||
165 | testds_mgmt_pq = executable ('test_datastore_api_management_postgres', | ||
166 | ['test_datastore_api_management.c'], | ||
167 | dependencies: [ | ||
168 | libgnunetdatastore_dep, | ||
169 | libgnunetutil_dep, | ||
170 | libgnunettesting_dep | ||
171 | ], | ||
172 | include_directories: [incdir, configuration_inc], | ||
173 | install: false) | ||
174 | |||
175 | configure_file(input : 'test_defaults.conf', | ||
176 | output : 'test_defaults.conf', | ||
177 | copy: true) | ||
178 | configure_file(input : 'test_datastore_api_data_sqlite.conf', | ||
179 | output : 'test_datastore_api_data_sqlite.conf', | ||
180 | copy: true) | ||
181 | configure_file(input : 'test_datastore_api_data_heap.conf', | ||
182 | output : 'test_datastore_api_data_heap.conf', | ||
183 | copy: true) | ||
184 | configure_file(input : 'test_datastore_api_data_postgres.conf', | ||
185 | output : 'test_datastore_api_data_postgres.conf', | ||
186 | copy: true) | ||
187 | |||
188 | test('test_datastore_api_sqlite', testds_sqlite, | ||
189 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
190 | test('test_datastore_api_management_sqlite', testds_mgmt_sqlite, | ||
191 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
192 | test('test_plugin_datastore_sqlite', testds_plugin_sqlite, | ||
193 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
194 | test('test_datastore_api_heap', testds_heap, | ||
195 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
196 | test('test_datastore_api_management_heap', testds_mgmt_heap, | ||
197 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
198 | test('test_plugin_datastore_heap', testds_plugin_heap, | ||
199 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
200 | test('test_datastore_api_postgres', testds_pq, | ||
201 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
202 | test('test_datastore_api_management_postgres', testds_mgmt_pq, | ||
203 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
204 | test('test_plugin_datastore_postgres', testds_plugin_pq, | ||
205 | suite: 'datastore', workdir: meson.current_build_dir()) | ||
206 | |||