|
@@ -46,6 +46,8 @@ static void teardown(void) {
|
|
|
UA_ServerConfig_delete(config);
|
|
|
}
|
|
|
|
|
|
+#ifdef UA_ENABLE_SUBSCRIPTIONS
|
|
|
+
|
|
|
UA_Boolean notificationReceived;
|
|
|
|
|
|
static void monitoredItemHandler(UA_UInt32 monId, UA_DataValue *value, void *context) {
|
|
@@ -137,15 +139,23 @@ START_TEST(Client_methodcall) {
|
|
|
}
|
|
|
END_TEST
|
|
|
|
|
|
+#endif /* UA_ENABLE_SUBSCRIPTIONS */
|
|
|
+
|
|
|
static Suite* testSuite_Client(void) {
|
|
|
- Suite *s = suite_create("Client Subscription");
|
|
|
TCase *tc_client = tcase_create("Client Subscription Basic");
|
|
|
tcase_add_checked_fixture(tc_client, setup, teardown);
|
|
|
+#ifdef UA_ENABLE_SUBSCRIPTIONS
|
|
|
tcase_add_test(tc_client, Client_subscription);
|
|
|
- suite_add_tcase(s,tc_client);
|
|
|
+#endif /* UA_ENABLE_SUBSCRIPTIONS */
|
|
|
+
|
|
|
TCase *tc_client2 = tcase_create("Client Subscription + Method Call of GetMonitoredItmes");
|
|
|
tcase_add_checked_fixture(tc_client2, setup, teardown);
|
|
|
+#ifdef UA_ENABLE_SUBSCRIPTIONS
|
|
|
tcase_add_test(tc_client2, Client_methodcall);
|
|
|
+#endif /* UA_ENABLE_SUBSCRIPTIONS */
|
|
|
+
|
|
|
+ Suite *s = suite_create("Client Subscription");
|
|
|
+ suite_add_tcase(s,tc_client);
|
|
|
suite_add_tcase(s,tc_client2);
|
|
|
return s;
|
|
|
}
|