• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13import("//build/test.gni")
14
15module_output_path = "kv_store/distributeddb"
16
17mul_sources = [
18  "common/distributeddb/src/auto_launch_callback.cpp",
19  "common/distributeddb/src/delegate_callback.cpp",
20  "common/distributeddb/src/delegate_kv_mgr_callback.cpp",
21  "common/distributeddb/src/distributed_test_tools.cpp",
22  "common/distributeddb/src/kv_store_observer_impl.cpp",
23  "common/distributeddb/src/kv_store_snapshot_callback.cpp",
24]
25
26###############################################################################
27config("module_private_config") {
28  visibility = [ ":*" ]
29
30  include_dirs = [
31    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include",
32    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include",
33    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src",
34    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver",
35    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite",
36    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include",
37    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include",
38    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src",
39
40    # "../adapter/include/communicator",
41    "//developtools/liblog",
42    "common/distributeddb/include",
43    "include",
44    "//commonlibrary/c_utils/base/include",
45    "//third_party/sqlite/include",
46    "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include",
47    "//third_party/openssl/include/",
48  ]
49
50  defines = [
51    "_LARGEFILE64_SOURCE",
52    "_FILE_OFFSET_BITS=64",
53    "SQLITE_HAS_CODEC",
54    "USE_SQLITE_SYMBOLS",
55    "USING_HILOG_LOGGER",
56    "TESTCASES_USING_GTEST_EXT",
57    "OMIT_JSON",
58    "LOW_LEVEL_MEM_DEV",
59    "RELEASE_MODE_V2",
60    "RELEASE_MODE_V3",
61    "OMIT_MULTI_VER",
62    "OPENSSL_SUPPRESS_DEPRECATED",
63  ]
64  ldflags = [ "-Wl,--exclude-libs,ALL" ]
65}
66
67##############################moduletest##########################################
68ohos_moduletest("DistributeddbKvTransactionTest") {
69  module_out_path = module_output_path
70
71  sources = [
72    "common/distributeddb/src/distributed_test_sysinfo.cpp",
73    "common/distributeddb/src/distributeddb_data_generator.cpp",
74    "src/distributed_crud_transaction_tools.cpp",
75    "src/distributeddb_kv_transaction_test.cpp",
76  ]
77  sources += mul_sources
78  configs = [ ":module_private_config" ]
79
80  deps = [
81    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
82    "//third_party/googletest:gtest_main",
83    "//third_party/openssl:libcrypto_shared",
84    "//third_party/sqlite:sqlite",
85  ]
86  external_deps = [
87    "c_utils:utils",
88    "hilog:libhilog",
89  ]
90  part_name = "datamgr_service"
91}
92
93ohos_moduletest("DistributeddbKvTransactionPerfTest") {
94  module_out_path = module_output_path
95
96  sources = [
97    "common/distributeddb/src/distributed_test_sysinfo.cpp",
98    "common/distributeddb/src/distributeddb_data_generator.cpp",
99    "src/distributed_crud_transaction_tools.cpp",
100    "src/distributeddb_kv_transaction_perf_test.cpp",
101  ]
102  sources += mul_sources
103  configs = [ ":module_private_config" ]
104
105  deps = [
106    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
107    "//third_party/googletest:gtest_main",
108    "//third_party/openssl:libcrypto_shared",
109    "//third_party/sqlite:sqlite",
110  ]
111  external_deps = [
112    "c_utils:utils",
113    "hilog:libhilog",
114  ]
115  part_name = "datamgr_service"
116}
117ohos_moduletest("DistributeddbKvConcurrencyCrudTest") {
118  module_out_path = module_output_path
119
120  sources = [
121    "common/distributeddb/src/distributed_test_sysinfo.cpp",
122    "common/distributeddb/src/distributeddb_data_generator.cpp",
123    "src/distributeddb_kv_concurrency_crud_test.cpp",
124  ]
125  sources += mul_sources
126  configs = [ ":module_private_config" ]
127
128  deps = [
129    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
130    "//third_party/googletest:gtest_main",
131    "//third_party/openssl:libcrypto_shared",
132    "//third_party/sqlite:sqlite",
133  ]
134  external_deps = [
135    "c_utils:utils",
136    "hilog:libhilog",
137  ]
138  part_name = "datamgr_service"
139}
140ohos_moduletest("DistributeddbKvBatchCrudTest") {
141  module_out_path = module_output_path
142
143  sources = [
144    "common/distributeddb/src/distributed_test_sysinfo.cpp",
145    "common/distributeddb/src/distributeddb_data_generator.cpp",
146    "src/distributeddb_kv_batch_crud_test.cpp",
147  ]
148  sources += mul_sources
149  configs = [ ":module_private_config" ]
150
151  deps = [
152    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
153    "//third_party/googletest:gtest_main",
154    "//third_party/openssl:libcrypto_shared",
155    "//third_party/sqlite:sqlite",
156  ]
157  external_deps = [
158    "c_utils:utils",
159    "hilog:libhilog",
160  ]
161  part_name = "datamgr_service"
162}
163ohos_moduletest("DistributeddbKvCreateTest") {
164  module_out_path = module_output_path
165
166  sources = [
167    "common/distributeddb/src/distributed_test_sysinfo.cpp",
168    "common/distributeddb/src/distributeddb_data_generator.cpp",
169    "src/distributeddb_kv_create_test.cpp",
170  ]
171  sources += mul_sources
172  configs = [ ":module_private_config" ]
173
174  deps = [
175    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
176    "//third_party/googletest:gtest_main",
177    "//third_party/openssl:libcrypto_shared",
178    "//third_party/sqlite:sqlite",
179  ]
180  external_deps = [
181    "c_utils:utils",
182    "hilog:libhilog",
183  ]
184  part_name = "datamgr_service"
185}
186ohos_moduletest("DistributeddbKvCrudTest") {
187  module_out_path = module_output_path
188
189  sources = [
190    "common/distributeddb/src/distributed_test_sysinfo.cpp",
191    "common/distributeddb/src/distributeddb_data_generator.cpp",
192    "src/distributeddb_kv_crud_test.cpp",
193  ]
194  sources += mul_sources
195  configs = [ ":module_private_config" ]
196
197  deps = [
198    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
199    "//third_party/googletest:gtest_main",
200    "//third_party/openssl:libcrypto_shared",
201    "//third_party/sqlite:sqlite",
202  ]
203  external_deps = [
204    "c_utils:utils",
205    "hilog:libhilog",
206  ]
207  part_name = "datamgr_service"
208}
209ohos_moduletest("DistributeddbKvObserverTest") {
210  module_out_path = module_output_path
211
212  sources = [
213    "common/distributeddb/src/distributed_test_sysinfo.cpp",
214    "common/distributeddb/src/distributeddb_data_generator.cpp",
215    "src/distributeddb_kv_observer_test.cpp",
216  ]
217  sources += mul_sources
218  configs = [ ":module_private_config" ]
219
220  deps = [
221    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
222    "//third_party/googletest:gtest_main",
223    "//third_party/openssl:libcrypto_shared",
224    "//third_party/sqlite:sqlite",
225  ]
226  external_deps = [
227    "c_utils:utils",
228    "hilog:libhilog",
229  ]
230  part_name = "datamgr_service"
231}
232ohos_moduletest("DistributeddbKvObserverSnapTest") {
233  module_out_path = module_output_path
234
235  sources = [
236    "common/distributeddb/src/distributed_test_sysinfo.cpp",
237    "common/distributeddb/src/distributeddb_data_generator.cpp",
238    "src/distributeddb_kv_observer_snap_test.cpp",
239  ]
240  sources += mul_sources
241  configs = [ ":module_private_config" ]
242
243  deps = [
244    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
245    "//third_party/googletest:gtest_main",
246    "//third_party/openssl:libcrypto_shared",
247    "//third_party/sqlite:sqlite",
248  ]
249  external_deps = [
250    "c_utils:utils",
251    "hilog:libhilog",
252  ]
253  part_name = "datamgr_service"
254}
255
256ohos_moduletest("DistributeddbKvBackupTest") {
257  module_out_path = module_output_path
258  sources = [
259    "common/distributeddb/src/distributeddb_constant.cpp",
260    "common/distributeddb/src/distributeddb_data_generator.cpp",
261    "src/distributeddb_kv_backup_test.cpp",
262  ]
263  sources += mul_sources
264  configs = [ ":module_private_config" ]
265  deps = [
266    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
267    "//third_party/googletest:gtest_main",
268    "//third_party/openssl:libcrypto_shared",
269    "//third_party/sqlite:sqlite",
270  ]
271  external_deps = [
272    "c_utils:utils",
273    "hilog:libhilog",
274  ]
275  part_name = "datamgr_service"
276}
277
278ohos_moduletest("DistributeddbKvRealdelTest") {
279  module_out_path = module_output_path
280  sources = [
281    "common/distributeddb/src/distributeddb_constant.cpp",
282    "common/distributeddb/src/distributeddb_data_generator.cpp",
283    "src/distributeddb_kv_realdel_test.cpp",
284  ]
285  sources += mul_sources
286  configs = [ ":module_private_config" ]
287
288  deps = [
289    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
290    "//third_party/googletest:gtest_main",
291    "//third_party/openssl:libcrypto_shared",
292    "//third_party/sqlite:sqlite",
293  ]
294  external_deps = [
295    "c_utils:utils",
296    "hilog:libhilog",
297  ]
298  part_name = "datamgr_service"
299}
300
301ohos_moduletest("DistributeddbNbCreateTest") {
302  module_out_path = module_output_path
303
304  sources = [
305    "common/distributeddb/src/distributeddb_constant.cpp",
306    "common/distributeddb/src/distributeddb_data_generator.cpp",
307    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
308    "src/distributeddb_nb_create_test.cpp",
309  ]
310  sources += mul_sources
311  configs = [ ":module_private_config" ]
312
313  deps = [
314    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
315    "//third_party/googletest:gtest_main",
316    "//third_party/openssl:libcrypto_shared",
317    "//third_party/sqlite:sqlite",
318  ]
319  external_deps = [
320    "c_utils:utils",
321    "hilog:libhilog",
322  ]
323  part_name = "datamgr_service"
324}
325ohos_moduletest("DistributeddbNbCrudTest") {
326  module_out_path = module_output_path
327
328  sources = [
329    "common/distributeddb/src/distributeddb_constant.cpp",
330    "common/distributeddb/src/distributeddb_data_generator.cpp",
331    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
332    "src/distributeddb_nb_crud_test.cpp",
333  ]
334  sources += mul_sources
335  configs = [ ":module_private_config" ]
336
337  deps = [
338    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
339    "//third_party/googletest:gtest_main",
340    "//third_party/openssl:libcrypto_shared",
341    "//third_party/sqlite:sqlite",
342  ]
343  external_deps = [
344    "c_utils:utils",
345    "hilog:libhilog",
346  ]
347  part_name = "datamgr_service"
348}
349ohos_moduletest("DistributeddbNbObserverTest") {
350  module_out_path = module_output_path
351
352  sources = [
353    "common/distributeddb/src/distributeddb_constant.cpp",
354    "common/distributeddb/src/distributeddb_data_generator.cpp",
355    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
356    "src/distributeddb_nb_observer_test.cpp",
357  ]
358  sources += mul_sources
359  configs = [ ":module_private_config" ]
360
361  deps = [
362    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
363    "//third_party/googletest:gtest_main",
364    "//third_party/openssl:libcrypto_shared",
365    "//third_party/sqlite:sqlite",
366  ]
367  external_deps = [
368    "c_utils:utils",
369    "hilog:libhilog",
370  ]
371  part_name = "datamgr_service"
372}
373
374ohos_moduletest("DistributeddbNbCursorTest") {
375  module_out_path = module_output_path
376
377  sources = [
378    "common/distributeddb/src/distributeddb_constant.cpp",
379    "common/distributeddb/src/distributeddb_data_generator.cpp",
380    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
381    "src/distributeddb_nb_cursor_test.cpp",
382    "src/distributeddb_nb_cursor_testcase.cpp",
383  ]
384  sources += mul_sources
385  configs = [ ":module_private_config" ]
386
387  deps = [
388    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
389    "//third_party/googletest:gtest_main",
390    "//third_party/openssl:libcrypto_shared",
391    "//third_party/sqlite:sqlite",
392  ]
393  external_deps = [
394    "c_utils:utils",
395    "hilog:libhilog",
396  ]
397  part_name = "datamgr_service"
398}
399
400ohos_moduletest("DistributeddbNbBackupTest") {
401  module_out_path = module_output_path
402
403  sources = [
404    "common/distributeddb/src/distributeddb_constant.cpp",
405    "common/distributeddb/src/distributeddb_data_generator.cpp",
406    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
407    "src/distributeddb_nb_backup_test.cpp",
408  ]
409  sources += mul_sources
410  configs = [ ":module_private_config" ]
411
412  deps = [
413    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
414    "//third_party/googletest:gtest_main",
415    "//third_party/openssl:libcrypto_shared",
416    "//third_party/sqlite:sqlite",
417  ]
418
419  external_deps = [
420    "c_utils:utils",
421    "hilog:libhilog",
422  ]
423  part_name = "datamgr_service"
424}
425
426ohos_moduletest("DistributeddbNbBatchCrudTest") {
427  module_out_path = module_output_path
428
429  sources = [
430    "common/distributeddb/src/distributeddb_constant.cpp",
431    "common/distributeddb/src/distributeddb_data_generator.cpp",
432    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
433    "src/distributeddb_nb_batch_crud_test.cpp",
434  ]
435  sources += mul_sources
436  configs = [ ":module_private_config" ]
437
438  deps = [
439    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
440    "//third_party/googletest:gtest_main",
441    "//third_party/openssl:libcrypto_shared",
442    "//third_party/sqlite:sqlite",
443  ]
444  external_deps = [
445    "c_utils:utils",
446    "hilog:libhilog",
447  ]
448  part_name = "datamgr_service"
449}
450
451ohos_moduletest("DistributeddbNbLocalBatchCrudTest") {
452  module_out_path = module_output_path
453
454  sources = [
455    "common/distributeddb/src/distributeddb_constant.cpp",
456    "common/distributeddb/src/distributeddb_data_generator.cpp",
457    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
458    "src/distributeddb_nb_local_batch_crud_test.cpp",
459  ]
460  sources += mul_sources
461  configs = [ ":module_private_config" ]
462
463  deps = [
464    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
465    "//third_party/googletest:gtest_main",
466    "//third_party/openssl:libcrypto_shared",
467    "//third_party/sqlite:sqlite",
468  ]
469  external_deps = [
470    "c_utils:utils",
471    "hilog:libhilog",
472  ]
473  part_name = "datamgr_service"
474}
475
476ohos_moduletest("DistributeddbNbSchemaDbTest") {
477  module_out_path = module_output_path
478
479  sources = [
480    "common/distributeddb/src/distributeddb_constant.cpp",
481    "common/distributeddb/src/distributeddb_data_generator.cpp",
482    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
483    "src/distributeddb_nb_schema_test.cpp",
484  ]
485  sources += mul_sources
486  configs = [ ":module_private_config" ]
487  deps = [
488    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
489    "//third_party/googletest:gtest_main",
490    "//third_party/openssl:libcrypto_shared",
491    "//third_party/sqlite:sqlite",
492  ]
493  external_deps = [
494    "c_utils:utils",
495    "hilog:libhilog",
496  ]
497  part_name = "datamgr_service"
498}
499
500ohos_moduletest("DistributeddbNbPredicateQueryTest") {
501  module_out_path = module_output_path
502
503  sources = [
504    "common/distributeddb/src/distributeddb_constant.cpp",
505    "common/distributeddb/src/distributeddb_data_generator.cpp",
506    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
507    "src/distributeddb_nb_predicate_query_test.cpp",
508  ]
509  sources += mul_sources
510  configs = [ ":module_private_config" ]
511
512  deps = [
513    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
514    "//third_party/googletest:gtest_main",
515    "//third_party/openssl:libcrypto_shared",
516    "//third_party/sqlite:sqlite",
517  ]
518  external_deps = [
519    "c_utils:utils",
520    "hilog:libhilog",
521  ]
522  part_name = "datamgr_service"
523}
524
525ohos_moduletest("DistributeddbNbPredicateQueryExpandTest") {
526  module_out_path = module_output_path
527  sources = [
528    "common/distributeddb/src/distributeddb_constant.cpp",
529    "common/distributeddb/src/distributeddb_data_generator.cpp",
530    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
531    "common/distributeddb/src/distributeddb_schema_test_tools.cpp",
532    "src/distributeddb_nb_predicate_query_expand_test.cpp",
533  ]
534  sources += mul_sources
535  configs = [ ":module_private_config" ]
536
537  deps = [
538    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
539    "//third_party/googletest:gtest_main",
540    "//third_party/openssl:libcrypto_shared",
541    "//third_party/sqlite:sqlite",
542  ]
543  external_deps = [
544    "c_utils:utils",
545    "hilog:libhilog",
546  ]
547  part_name = "datamgr_service"
548}
549
550ohos_moduletest("DistributeddbNbAutolaunchTest") {
551  module_out_path = module_output_path
552  sources = [
553    "common/distributeddb/src/distributeddb_constant.cpp",
554    "common/distributeddb/src/distributeddb_data_generator.cpp",
555    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
556    "common/distributeddb/src/distributeddb_schema_test_tools.cpp",
557    "src/distributeddb_nb_autolaunch_test.cpp",
558  ]
559  sources += mul_sources
560  configs = [ ":module_private_config" ]
561
562  deps = [
563    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
564    "//third_party/googletest:gtest_main",
565    "//third_party/openssl:libcrypto_shared",
566    "//third_party/sqlite:sqlite",
567  ]
568  external_deps = [
569    "c_utils:utils",
570    "hilog:libhilog",
571  ]
572  part_name = "datamgr_service"
573}
574
575ohos_moduletest("DistributedbNbDbDamageTest") {
576  module_out_path = module_output_path
577  sources = [
578    "common/distributeddb/src/distributeddb_constant.cpp",
579    "common/distributeddb/src/distributeddb_data_generator.cpp",
580    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
581    "common/distributeddb/src/distributeddb_schema_test_tools.cpp",
582    "src/distributeddb_nb_db_damage_test.cpp",
583  ]
584  sources += mul_sources
585  configs = [ ":module_private_config" ]
586
587  deps = [
588    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
589    "//third_party/googletest:gtest_main",
590    "//third_party/openssl:libcrypto_shared",
591    "//third_party/sqlite:sqlite",
592  ]
593  external_deps = [
594    "c_utils:utils",
595    "hilog:libhilog",
596  ]
597  part_name = "datamgr_service"
598}
599
600ohos_moduletest("DistributeddbNbCrudPowerTest") {
601  module_out_path = module_output_path
602  sources = [
603    "common/distributeddb/src/distributeddb_constant.cpp",
604    "common/distributeddb/src/distributeddb_data_generator.cpp",
605    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
606    "common/distributeddb/src/distributeddb_schema_test_tools.cpp",
607    "src/distributeddb_nb_crud_power_test.cpp",
608  ]
609  sources += mul_sources
610  configs = [ ":module_private_config" ]
611
612  deps = [
613    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
614    "//third_party/googletest:gtest_main",
615    "//third_party/openssl:libcrypto_shared",
616    "//third_party/sqlite:sqlite",
617  ]
618  external_deps = [
619    "c_utils:utils",
620    "hilog:libhilog",
621  ]
622  part_name = "datamgr_service"
623}
624
625ohos_moduletest("DistributeddbNbSchemaTest") {
626  module_out_path = module_output_path
627  sources = [
628    "common/distributeddb/src/distributeddb_constant.cpp",
629    "common/distributeddb/src/distributeddb_data_generator.cpp",
630    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
631    "common/distributeddb/src/distributeddb_schema_test_tools.cpp",
632    "src/distributeddb_nb_schema_test.cpp",
633  ]
634  sources += mul_sources
635  configs = [ ":module_private_config" ]
636
637  deps = [
638    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
639    "//third_party/googletest:gtest_main",
640    "//third_party/openssl:libcrypto_shared",
641    "//third_party/sqlite:sqlite",
642  ]
643  external_deps = [
644    "c_utils:utils",
645    "hilog:libhilog",
646  ]
647  part_name = "datamgr_service"
648}
649
650ohos_moduletest("DistributeddbNbSchemaUpgradeTest") {
651  module_out_path = module_output_path
652  sources = [
653    "common/distributeddb/src/distributeddb_constant.cpp",
654    "common/distributeddb/src/distributeddb_data_generator.cpp",
655    "common/distributeddb/src/distributeddb_nb_test_tools.cpp",
656    "common/distributeddb/src/distributeddb_schema_test_tools.cpp",
657    "src/distributeddb_nb_schema_upgrade_test.cpp",
658  ]
659  sources += mul_sources
660  configs = [ ":module_private_config" ]
661
662  deps = [
663    "//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb:distributeddb",
664    "//third_party/googletest:gtest_main",
665    "//third_party/openssl:libcrypto_shared",
666    "//third_party/sqlite:sqlite",
667  ]
668  external_deps = [
669    "c_utils:utils",
670    "hilog:libhilog",
671  ]
672  part_name = "datamgr_service"
673}
674
675###############################################################################
676group("moduletest") {
677  testonly = true
678  deps = [
679    "//third_party/googletest:gmock",
680    "//third_party/googletest:gtest_main",
681    "//third_party/sqlite:sqlite",
682  ]
683
684  deps += [
685    ":DistributedbNbDbDamageTest",
686    ":DistributeddbKvBackupTest",
687    ":DistributeddbKvBatchCrudTest",
688    ":DistributeddbKvConcurrencyCrudTest",
689    ":DistributeddbKvCreateTest",
690    ":DistributeddbKvCrudTest",
691    ":DistributeddbKvObserverSnapTest",
692    ":DistributeddbKvObserverTest",
693    ":DistributeddbKvRealdelTest",
694    ":DistributeddbKvTransactionPerfTest",
695    ":DistributeddbKvTransactionTest",
696    ":DistributeddbNbAutolaunchTest",
697    ":DistributeddbNbBackupTest",
698    ":DistributeddbNbBatchCrudTest",
699    ":DistributeddbNbCreateTest",
700    ":DistributeddbNbCrudPowerTest",
701    ":DistributeddbNbCrudTest",
702    ":DistributeddbNbCursorTest",
703    ":DistributeddbNbLocalBatchCrudTest",
704    ":DistributeddbNbObserverTest",
705    ":DistributeddbNbPredicateQueryExpandTest",
706    ":DistributeddbNbPredicateQueryTest",
707    ":DistributeddbNbSchemaTest",
708    ":DistributeddbNbSchemaUpgradeTest",
709  ]
710}
711