forked from SiliconLabsSoftware/z-wave-protocol-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
888 lines (823 loc) · 21 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# "--allow-multiple-definition" can cause some weird symptons as we leave it
# up to the linker which symbol gets merged into the test binary.
add_link_options("-Wl,--unresolved-symbols=ignore-in-object-files"
"-Wl,--allow-multiple-definition")
endif()
add_subdirectory(helpers)
set(MOCK_LIBS
uic_attribute_store_mock
zpc_attribute_store_mock
zwave_command_handler_mock
zwave_controller_mock
uic_attribute_resolver_mock
uic_attribute_resolver_rule_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock
zwave_network_management_mock
zwave_api_mock
zwave_unid_mock)
add_library(zwave_command_classes_test $<TARGET_OBJECTS:zwave_command_classes>)
target_link_libraries(zwave_command_classes_test PUBLIC zwave_command_classes)
target_link_libraries(
zwave_command_class_test_helpers
zwave_command_classes
unity2
zwave_tx_scheme_selector_mock
zwave_tx_mock
uic_attribute_store_mock
zpc_attribute_store_mock)
target_add_unittest(zwave_command_classes NAME zwave_command_classes_fixt_test
SOURCES zwave_command_classes_fixt_test.c)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_time_test
SOURCES
zwave_command_class_time_test.c
DEPENDS
zwave_command_class_test_helpers
${MOCK_LIBS})
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_time_parameters_test
SOURCES
zwave_command_class_time_parameters_test.c
DEPENDS
zwave_command_class_test_helpers
${MOCK_LIBS}
)
if(${ZPC_BUILD_TESTING_PROPERTY_DISABLED})
message(WARNING "Please fix this test")
set_tests_properties(zwave_command_class_time_parameters_test
PROPERTIES DISABLED True)
endif()
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_powerlevel_test
SOURCES
zwave_command_class_powerlevel_test.c
DEPENDS
zwave_command_class_test_helpers
uic_contiki_stub
${MOCK_LIBS})
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_manufacturer_specific_test
SOURCES
zwave_command_class_manufacturer_specific_test.c
zwave_command_class_manufacturer_specific_test_zpc_config_mock.c
DEPENDS
zwave_command_class_test_helpers
zwave_security_validation_mock
${MOCK_LIBS})
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_s0_test
SOURCES
zwave_command_class_security_0_test.c
DEPENDS
zpc_attribute_store_test_helper
zpc_utils
zwave_controller
zwave_command_handler_mock
zwave_tx_scheme_selector_mock)
target_add_unittest(
zwave_command_classes_test
NAME
zwave_command_class_indicator_test
SOURCES
zwave_command_class_indicator_test.c
DEPENDS
zwave_command_class_test_helpers
uic_attribute_store_mock
zwave_command_handler_mock
zwave_controller_mock
zwave_tx_mock
EXCLUDE
platform_exec.c)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_notification_test
SOURCES
zwave_command_class_notification_test.c
DEPENDS
${MOCK_LIBS}
uic_contiki_stub
zwave_command_class_test_helpers)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_supervision_test
SOURCES
zwave_command_class_supervision_test.c
DEPENDS
uic_contiki_stub
zwave_tx_groups
${MOCK_LIBS})
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_supervision_test_no_mock
SOURCES
zwave_command_class_supervision_test_no_mock.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock
)
# Wake Up Command Class
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_wake_up_test
SOURCES
zwave_command_class_wake_up_test.c
DEPENDS
zpc_attribute_store_test_helper
zpc_utils
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
uic_attribute_utils_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_network_management_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock
EXCLUDE
zpc_config.c)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_security_2_test
SOURCES
zwave_command_class_security_2_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
zwave_tx_scheme_selector_mock)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_version_test
SOURCES
zwave_command_class_version_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_node_info_resolver_test
SOURCES
zwave_command_class_node_info_resolver_test.c
DEPENDS
zpc_attribute_store_test_helper
zpc_utils
zwave_controller_mock
uic_attribute_resolver_mock
zwave_network_management_mock)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_granted_keys_resolver_test
SOURCES
zwave_command_class_granted_keys_resolver_test.c
DEPENDS
zpc_attribute_store_test_helper
uic_attribute_resolver_mock
zpc_attribute_resolver_mock)
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_zwaveplus_info_test
SOURCES
zwave_command_class_zwaveplus_info_test.c
DEPENDS
zwave_command_class_test_helpers
uic_contiki_stub
${MOCK_LIBS})
# Multi Channel test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_multi_channel_test
SOURCES
zwave_command_class_multi_channel_test.c
DEPENDS
${MOCK_LIBS}
EXCLUDE
zwave_command_class_multi_channel.c)
# Multilevel Sensor test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_multilevel_sensor_test
SOURCES
zwave_command_class_multilevel_sensor_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock)
# Basic test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_basic_test
SOURCES
zwave_command_class_basic_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock
uic_dotdot_mqtt_mock)
# Device Reset Locally test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_device_reset_locally_test
SOURCES
zwave_command_class_device_reset_locally_test.c
DEPENDS
uic_contiki_stub
zwave_controller_mock
zwave_command_handler_mock
zwave_command_classes_mock
zwave_network_management_mock
EXCLUDE
zwave_command_class_association_send.cpp)
# Z-Wave Command Class utils test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_classes_utils_test
SOURCES
zwave_command_classes_utils_test.c
DEPENDS
uic_attribute_store_mock
zwave_controller_mock
zwave_tx_scheme_selector_mock
zpc_attribute_store_mock
zwave_tx_mock
zwave_unid_mock)
# Z-Wave Command Class generic tests with real attribute store.
target_add_unittest(
zwave_command_classes
NAME
zwave_command_classes_generic_tests
SOURCES
zwave_command_classes_generic_tests.c
DEPENDS
zpc_attribute_store_test_helper
zwave_command_handler_mock
zwave_controller_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock)
# Central Scene Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_central_scene_test
SOURCES
zwave_command_class_central_scene_test.c
DEPENDS
zpc_attribute_store_test_helper
uic_attribute_utils_mock
zwave_command_handler_mock
zwave_controller_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock
uic_dotdot_mqtt_mock)
# Configuration Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_configuration_control_test
SOURCES
zwave_command_class_configuration_control_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zwave_network_management_mock)
# Door Lock Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_door_lock_test
SOURCES
zwave_command_class_door_lock_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
)
# Alarm Sensor Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_alarm_sensor_test
SOURCES
zwave_command_class_alarm_sensor_test.c
DEPENDS
zpc_attribute_store_test_helper
zpc_utils
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zwave_network_management_mock)
# Barrier Operator Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_barrier_operator_test
SOURCES
zwave_command_class_barrier_operator_test.c
DEPENDS
zpc_attribute_store_test_helper
zpc_utils
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zwave_network_management_mock
uic_dotdot_mqtt_mock)
# Meter Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_meter_control_test
SOURCES
zwave_command_class_meter_control_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zwave_network_management_mock)
# Z-Wave Multilevel Switch Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_switch_multilevel_test
SOURCES
zwave_command_class_switch_multilevel_test.c
DEPENDS
zpc_attribute_store_test_helper
uic_attribute_utils_mock
zwave_command_handler_mock
zwave_controller_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock
uic_dotdot_mqtt_mock
)
if(${BUILD_TESTING_PROPERTY_DISABLED})
set_tests_properties(zwave_command_class_switch_multilevel_test
PROPERTIES DISABLED True
)
endif()
# Z-Wave Color Switch Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_switch_color_test
SOURCES
zwave_command_class_switch_color_test.c
DEPENDS
zpc_attribute_store_test_helper
uic_attribute_utils_mock
zwave_command_handler_mock
zwave_controller_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock)
# Z-Wave Binary Switch Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_binary_switch_test
SOURCES
zwave_command_class_binary_switch_test.cpp
DEPENDS
zwave_command_class_test_helpers
zpc_attribute_store_test_helper
zwave_command_handler_mock
zwave_controller_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock
uic_dotdot_mqtt_mock)
# Z-Wave Firmware Update functionality test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_firmware_update_test
SOURCES
zwave_command_class_firmware_update_test.c
DEPENDS
zpc_attribute_store_test_helper
uic_ota
zwave_tx_scheme_selector
zwave_controller
zwave_command_handler_mock
zwave_network_management_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_api_mock)
# Association
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_association_test
SOURCES
zwave_command_class_association_test.c
DEPENDS
zpc_attribute_store_test_helper
uic_contiki_stub
zwave_controller_mock
zwave_command_handler_mock
uic_attribute_resolver_mock
zwave_tx_scheme_selector_mock
zwave_network_management_mock
zwave_tx_mock)
# Multi Channel Association
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_multi_channel_association_test
SOURCES
zwave_command_class_multi_channel_association_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zwave_tx_scheme_selector_mock
zwave_network_management_mock
zwave_tx_mock)
# Association send module
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_association_send_test
SOURCES
zwave_command_class_association_send_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler
uic_attribute_resolver
zwave_tx_scheme_selector_mock
zwave_network_management_mock
zwave_tx_mock)
# Multi Command
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_multi_command_test
SOURCES
zwave_command_class_multi_command_test.c
DEPENDS
zpc_utils
zwave_controller
zwave_command_handler_mock
zwave_network_management_mock)
# Command Class AGI test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_agi_test
SOURCES
zwave_command_class_agi_test.cpp
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
uic_attribute_resolver_mock
zwave_command_handler_mock
zwave_network_management_mock
zwave_tx_mock)
# Command Class ICCC test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_inclusion_controller_test
SOURCES
zwave_command_class_inclusion_controller_test.cpp
DEPENDS
uic_contiki_stub
zpc_attribute_store_test_helper
zwave_command_classes
uic_attribute_resolver_mock
zwave_command_handler_mock
zwave_controller_mock
zwave_network_management_mock)
# Scene Activation Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_scene_activation_test
SOURCES
zwave_command_class_scene_activation_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Scene Controller Configuration Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_scene_controller_configuration_test
SOURCES
zwave_command_class_scene_controller_configuration_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zwave_network_management_mock)
# Scene Actuator Configuration Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_scene_actuator_configuration_test
SOURCES
zwave_command_class_scene_actuator_configuration_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_command_handler_mock
uic_dotdot_mqtt_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock)
# Thermostat mode test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_thermostat_mode_test
SOURCES
zwave_command_class_thermostat_mode_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Thermostat setpoint test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_thermostat_setpoint_test
SOURCES
zwave_command_class_thermostat_setpoint_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock)
# Sound switch unit test
target_add_unittest(zwave_command_classes
NAME zwave_command_class_sound_switch_test
SOURCES zwave_command_class_sound_switch_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock
)
# Thermostat fan mode test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_thermostat_fan_mode_test
SOURCES
zwave_command_class_thermostat_fan_mode_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Thermostat fan state test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_thermostat_fan_state_test
SOURCES
zwave_command_class_thermostat_fan_state_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Thermostat operating state test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_thermostat_operating_state_test
SOURCES
zwave_command_class_thermostat_operating_state_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Tests for generated command classes
set(GEN_TEST_INCLUDES
"${CMAKE_SOURCE_DIR}/applications/zpc/components/zwave_controller/include"
"${CMAKE_SOURCE_DIR}/include")
# Generated Command Class Door Lock test
target_add_unittest(
zwave_command_classes
NAME
generated_door_lock_test
SOURCES
generated_door_lock_test.cpp
DEPENDS
uic_log
zwave_handlers
${MOCK_LIBS})
target_include_directories(generated_door_lock_test
PRIVATE ${GEN_TEST_INCLUDES})
target_compile_options(generated_door_lock_test PRIVATE -Wno-unused-variable
-Wno-unused-function)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(generated_door_lock_test
PRIVATE -Wno-unused-but-set-variable)
endif()
# Generated Command Class Basic Tariff Info test
target_add_unittest(
zwave_command_classes
NAME
generated_basic_tariff_info_test
SOURCES
generated_basic_tariff_info_test.cpp
DEPENDS
uic_log
zwave_handlers
${MOCK_LIBS})
target_include_directories(generated_basic_tariff_info_test
PRIVATE ${GEN_TEST_INCLUDES})
target_compile_options(generated_basic_tariff_info_test
PRIVATE -Wno-unused-variable -Wno-unused-function)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(generated_basic_tariff_info_test
PRIVATE -Wno-unused-but-set-variable)
endif()
# Class Indicator control test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_indicator_control_test
SOURCES
zwave_command_class_indicator_control_test.cpp
DEPENDS
uic_log
zwave_handlers
uic_attribute_store
zwave_network_management_mock
uic_attribute_resolver_mock)
# Battery Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_battery_test
SOURCES
zwave_command_class_battery_test.cpp
DEPENDS
zwave_command_class_test_helpers
zpc_attribute_store_test_helper
zwave_command_handler_mock
zwave_controller_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
zpc_config_mock
zwave_tx_scheme_selector_mock
zwave_tx_mock
uic_dotdot_mqtt_mock
)
# User Code Command Class test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_user_code_test
SOURCES
zwave_command_class_user_code_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
)
if(${BUILD_TESTING_PROPERTY_DISABLED})
set_tests_properties(zwave_command_class_user_code_test
PROPERTIES DISABLED True
)
endif()
# Humidity Control Mode test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_humidity_control_mode_test
SOURCES
zwave_command_class_humidity_control_mode_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Humidity Control Operating State test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_humidity_control_operating_state_test
SOURCES
zwave_command_class_humidity_control_operating_state_test.c
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Humidity Control SetPoint test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_humidity_control_setpoint_test
SOURCES
zwave_command_class_humidity_control_setpoint_test.cpp
DEPENDS
zpc_attribute_store_test_helper
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)
# Humidity Control SetPoint test
target_add_unittest(
zwave_command_classes
NAME
zwave_command_class_crc16_test
SOURCES
zwave_command_class_crc16_test.cpp
DEPENDS
zpc_attribute_store_test_helper
zwave_command_class_test_helpers
zwave_controller
zwave_command_handler_mock
uic_attribute_resolver_mock
zpc_attribute_resolver_mock
uic_dotdot_mqtt_mock)