Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Update to C SDK release 2017-08-11.
Browse files Browse the repository at this point in the history
Update tests with new STRING_replace.  Set "etw_log" to OFF.
  • Loading branch information
darobs committed Aug 15, 2017
1 parent 250675b commit 3a9bcd7
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ option(use_http "set use_http to ON if http is to be used, set to OFF to not use
option(use_mqtt "set use_mqtt to ON if mqtt is to be used, set to OFF to not use mqtt" ON)
option(use_xplat_uuid "use the SDK's platform-independent UUID implementation (default is OFF)" OFF)

if(WIN32)
# C-SDK requires this to be set for some functions we use.
set(use_etw OFF)
endif()

option(enable_event_system "Build event system (default is ON)" ON)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
Expand Down
2 changes: 2 additions & 0 deletions bindings/java/tests/real_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#define GBALLOC_H

Expand Down
2 changes: 2 additions & 0 deletions core/tests/dotnet_core_loader_ut/real_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#undef STRINGS_H
Expand All @@ -47,6 +48,7 @@
#undef STRING_empty
#undef STRING_length
#undef STRING_compare
#undef STRING_replace

#endif

Expand Down
2 changes: 2 additions & 0 deletions core/tests/dotnet_loader_ut/real_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#undef STRINGS_H
Expand All @@ -47,6 +48,7 @@
#undef STRING_empty
#undef STRING_length
#undef STRING_compare
#undef STRING_replace

#endif

Expand Down
2 changes: 2 additions & 0 deletions core/tests/dynamic_loader_ut/real_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#undef STRINGS_H
Expand All @@ -47,6 +48,7 @@
#undef STRING_empty
#undef STRING_length
#undef STRING_compare
#undef STRING_replace

#endif

Expand Down
2 changes: 2 additions & 0 deletions core/tests/java_loader_ut/real_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#undef STRINGS_H
Expand All @@ -47,6 +48,7 @@
#undef STRING_empty
#undef STRING_length
#undef STRING_compare
#undef STRING_replace

#endif

Expand Down
1 change: 1 addition & 0 deletions core/tests/module_loader_ut/real_strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace

#define GBALLOC_H

Expand Down
2 changes: 2 additions & 0 deletions core/tests/node_loader_ut/real_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#undef STRINGS_H
Expand All @@ -47,6 +48,7 @@
#undef STRING_empty
#undef STRING_length
#undef STRING_compare
#undef STRING_replace

#endif

Expand Down
2 changes: 2 additions & 0 deletions core/tests/outprocess_loader_ut/real_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#undef STRINGS_H
Expand All @@ -47,6 +48,7 @@
#undef STRING_empty
#undef STRING_length
#undef STRING_compare
#undef STRING_replace

#endif

Expand Down
2 changes: 2 additions & 0 deletions core/tests/outprocess_module_ut/real_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define STRING_empty real_STRING_empty
#define STRING_length real_STRING_length
#define STRING_compare real_STRING_compare
#define STRING_replace real_STRING_replace


#undef STRINGS_H
Expand All @@ -47,6 +48,7 @@
#undef STRING_empty
#undef STRING_length
#undef STRING_compare
#undef STRING_replace

#endif

Expand Down
2 changes: 1 addition & 1 deletion deps/c-utility
Submodule c-utility updated 70 files
+2 −0 .gitignore
+88 −31 CMakeLists.txt
+1 −0 adapters/dns_async.c
+24 −2 adapters/platform_linux.c
+16 −10 adapters/platform_win32.c
+1 −1 adapters/sntp_lwip.c
+0 −5 adapters/sslClient_arduino.cpp
+205 −93 adapters/tlsio_mbedtls.c
+8 −0 build_all/esp32/proj/Makefile
+17 −0 build_all/esp32/proj/main/Kconfig.projbuild
+97 −0 build_all/esp32/proj/main/azure_main.c
+5 −0 build_all/esp32/proj/main/component.mk
+101 −0 build_all/esp32/sdk/component.mk
+1 −1 build_all/packaging/linux/debian/changelog-trusty
+1 −1 build_all/packaging/linux/debian/changelog-vivid
+1 −1 build_all/packaging/linux/debian/changelog-xenial
+1 −1 build_all/packaging/windows/Microsoft.Azure.C.SharedUtility.nuspec
+8 −8 build_all/packaging/windows/Microsoft.Azure.C.SharedUtility.targets
+20 −6 configs/azure_c_shared_utilityFunctions.cmake
+13 −0 devdoc/buffer_requirements.md
+36 −2 devdoc/singlylinkedlist_requirements.md
+25 −3 devdoc/strings_requirements.md
+1 −0 devdoc/uws_client_requirements.md
+2 −0 devdoc/x509_schannel.md
+1 −0 inc/azure_c_shared_utility/buffer_.h
+37 −35 inc/azure_c_shared_utility/crt_abstractions.h
+591 −0 inc/azure_c_shared_utility/etwlogger.h
+23 −0 inc/azure_c_shared_utility/etwlogger_driver.h
+16 −0 inc/azure_c_shared_utility/lwip/sntp_os.h
+5 −0 inc/azure_c_shared_utility/lwip/socket_async_os.h
+16 −0 inc/azure_c_shared_utility/lwip_esp32/sntp_os.h
+17 −0 inc/azure_c_shared_utility/lwip_esp32/socket_async_os.h
+2 −0 inc/azure_c_shared_utility/shared_util_options.h
+24 −0 inc/azure_c_shared_utility/singlylinkedlist.h
+1 −0 inc/azure_c_shared_utility/strings.h
+2 −0 inc/azure_c_shared_utility/tls_config.h
+5 −0 inc/azure_c_shared_utility/tlsio_mbedtls.h
+3 −0 src/aziotsharedutil.def
+23 −0 src/buffer.c
+1 −1 src/connection_string_parser.c
+11 −0 src/etw_provider_generate.cmd
+77 −0 src/etwlogger.man
+264 −0 src/etwlogger_driver.c
+108 −0 src/etwxlogging.c
+108 −1 src/singlylinkedlist.c
+37 −4 src/strings.c
+274 −188 src/tlsio_openssl.c
+51 −33 src/tlsio_schannel.c
+4 −4 src/tlsio_wolfssl.c
+15 −3 src/uws_client.c
+67 −71 src/x509_openssl.c
+338 −164 src/x509_schannel.c
+1 −1 tests/base64_ut/CMakeLists.txt
+62 −6 tests/base64_ut/base64_ut.c
+135 −70 tests/buffer_ut/buffer_ut.c
+49 −47 tests/connectionstringparser_ut/connectionstringparser_ut.c
+1 −0 tests/real_test_files/real_buffer.c
+12 −0 tests/real_test_files/real_constbuffer.c
+17 −0 tests/real_test_files/real_singlylinkedlist.c
+20 −2 tests/real_test_files/real_strings.h
+374 −0 tests/singlylinkedlist_ut/singlylinkedlist_ut.c
+198 −71 tests/strings_ut/strings_ut.c
+74 −2 tests/uws_client_ut/uws_client_ut.c
+43 −97 tests/x509_openssl_ut/x509_openssl_ut.c
+372 −329 tests/x509_schannel_ut/x509_schannel_ut.c
+1 −1 testtools/ctest
+1 −1 testtools/testrunner
+1 −1 testtools/umock-c
+10 −0 thirdpartynotice.txt
+1 −1 tools/mbed_build_scripts/release_mbed_project.cmd
2 changes: 1 addition & 1 deletion deps/ctest
Submodule ctest updated from a9ed5a to f75c43
2 changes: 1 addition & 1 deletion deps/iot-sdk-c
Submodule iot-sdk-c updated 149 files
2 changes: 1 addition & 1 deletion deps/testrunner
2 changes: 1 addition & 1 deletion deps/uamqp
Submodule uamqp updated 50 files
+5 −3 CMakeLists.txt
+1 −1 build_all/packaging/linux/debian/changelog-trusty
+1 −1 build_all/packaging/linux/debian/changelog-vivid
+1 −1 build_all/packaging/linux/debian/changelog-xenial
+2 −2 build_all/packaging/windows/Microsoft.Azure.uamqp.nuspec
+1 −1 deps/azure-c-shared-utility
+1 −1 deps/azure-c-testrunnerswitcher
+1 −1 deps/azure-ctest
+1 −1 deps/umock-c
+97 −97 devdoc/cbs_requirements.md
+2 −2 devdoc/sasl_mechanism_requirements.md
+111 −0 devdoc/sasl_server_mechanism_requirements.md
+212 −103 devdoc/saslclientio_requirements.md
+0 −1 inc/azure_uamqp_c/amqp_definitions.h
+1 −1 inc/azure_uamqp_c/amqp_frame_codec.h
+0 −1 inc/azure_uamqp_c/amqpvalue.h
+0 −1 inc/azure_uamqp_c/cbs.h
+1 −1 inc/azure_uamqp_c/connection.h
+0 −1 inc/azure_uamqp_c/frame_codec.h
+0 −1 inc/azure_uamqp_c/message_receiver.h
+1 −1 inc/azure_uamqp_c/sasl_frame_codec.h
+1 −1 inc/azure_uamqp_c/sasl_server_mechanism.h
+0 −8 inc/azure_uamqp_c/saslclientio.h
+31 −9 readme.md
+1 −1 src/amqp_frame_codec.c
+15 −22 src/amqpvalue_to_string.c
+1 −1 src/connection.c
+1 −1 src/header_detect_io.c
+6 −2 src/link.c
+21 −6 src/message_sender.c
+1 −1 src/sasl_frame_codec.c
+1 −1 src/sasl_mechanism.c
+166 −0 src/sasl_server_mechanism.c
+174 −101 src/saslclientio.c
+1 −1 src/session.c
+1 −0 tests/CMakeLists.txt
+61 −82 tests/amqp_frame_codec_ut/amqp_frame_codec_ut.c
+0 −1 tests/amqp_management_ut/amqp_management_ut.c
+0 −1 tests/cbs_ut/cbs_ut.c
+98 −119 tests/connection_ut/connection_ut.c
+115 −116 tests/frame_codec_ut/frame_codec_ut.c
+1 −1 tests/header_detect_io_ut/header_detect_io_ut.c
+80 −73 tests/local_client_server_tcp_perf/local_client_server_tcp_perf.c
+43 −60 tests/sasl_frame_codec_ut/sasl_frame_codec_ut.c
+4 −4 tests/sasl_mechanism_ut/sasl_mechanism_ut.c
+18 −0 tests/sasl_server_mechanism_ut/CMakeLists.txt
+11 −0 tests/sasl_server_mechanism_ut/main.c
+573 −0 tests/sasl_server_mechanism_ut/sasl_server_mechanism_ut.c
+2,071 −1,227 tests/saslclientio_ut/saslclientio_ut.c
+25 −25 tests/session_ut/session_ut.c
2 changes: 1 addition & 1 deletion deps/umock-c

0 comments on commit 3a9bcd7

Please sign in to comment.