Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test aws-c-io nw_socket branch #298

Draft
wants to merge 10 commits into
base: mqtt_test_app
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ let cSettings: [CSetting] = [
.define("AWS_APPSTORE_SAFE"),
]

/// Store any defines that will be used by Swift Tests in swiftTestSettings
var swiftTestSettings: [SwiftSetting] = []

//////////////////////////////////////////////////////////////////////
/// Configure C targets.
/// Note: We can not use unsafe flags because SwiftPM makes the target ineligible for use by other packages.
Expand Down Expand Up @@ -124,14 +127,24 @@ awsCIoPlatformExcludes.append("source/posix")
awsCIoPlatformExcludes.append("source/linux")
awsCIoPlatformExcludes.append("source/s2n")
awsCIoPlatformExcludes.append("source/darwin")
cSettingsIO.append(.define("AWS_ENABLE_IO_COMPLETION_PORTS"))
swiftTestSettings.append(.define("AWS_ENABLE_IO_COMPLETION_PORTS"))
#elseif os(Linux)
awsCIoPlatformExcludes.append("source/windows")
awsCIoPlatformExcludes.append("source/bsd")
awsCIoPlatformExcludes.append("source/darwin")
cSettingsIO.append(.define("AWS_ENABLE_EPOLL"))
swiftTestSettings.append(.define("AWS_ENABLE_EPOLL"))
#else // macOS, iOS, watchOS, tvOS
awsCIoPlatformExcludes.append("source/windows")
awsCIoPlatformExcludes.append("source/linux")
awsCIoPlatformExcludes.append("source/s2n")
cSettingsIO.append(.define("__APPLE__"))
cSettingsIO.append(.define("AWS_ENABLE_DISPATCH_QUEUE", .when(platforms: [.iOS, .tvOS, .macOS])))
cSettingsIO.append(.define("AWS_ENABLE_KQUEUE", .when(platforms: [.macOS])))
swiftTestSettings.append(.define("__APPLE__"))
swiftTestSettings.append(.define("AWS_ENABLE_DISPATCH_QUEUE", .when(platforms: [.iOS, .tvOS, .macOS])))
swiftTestSettings.append(.define("AWS_ENABLE_KQUEUE", .when(platforms: [.macOS])))
#endif

//////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -304,7 +317,8 @@ packageTargets.append(contentsOf: [
path: "Test/AwsCommonRuntimeKitTests",
resources: [
.process("Resources")
]
],
swiftSettings: swiftTestSettings
),
.executableTarget(
name: "Elasticurl",
Expand Down
20 changes: 20 additions & 0 deletions Test/IntegrationTests/MqttClient/MqttClient/cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDWTCCAkGgAwIBAgIUFf4YCskvl5pleZ6M39ChpPx1TaIwDQYJKoZIhvcNAQEL
BQAwTTFLMEkGA1UECwxCQW1hem9uIFdlYiBTZXJ2aWNlcyBPPUFtYXpvbi5jb20g
SW5jLiBMPVNlYXR0bGUgU1Q9V2FzaGluZ3RvbiBDPVVTMB4XDTIyMDIyMjAxNTEy
MloXDTQ5MTIzMTIzNTk1OVowHjEcMBoGA1UEAwwTQVdTIElvVCBDZXJ0aWZpY2F0
ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMWHuiO6kImH565AlTvM
aWA5dG//PySQwN2sLV9u1CTwfgbEL9jeuu+kAlmTePpJqYnxDKZ9kFoZ0SL+uylY
8vGqpXkXaM3FLH0PYDT1snbskvgBS5aXR2k4MFqsQafOtyq7Z+DLYigCsQyFEXzH
hYrOa6UTxkc161zCsunes18QoQQXaK6PdhB8Lr/DKynDntZZOs38CFAE81L6tKgM
/crYMeTCSxao4NVSrklGMssHxlzOLQ3T8dU+Eak8j6shPg/lRHS67lt4YIzVtIMl
OawSdGJNZZsTagJuW02xAbuYtJpy2dyVPplEfEwNvSifPoCJJRcSt6B0C77mRuH6
CnUCAwEAAaNgMF4wHwYDVR0jBBgwFoAU5rE5FQgF/jbb+i91/x3wiLbg5G8wHQYD
VR0OBBYEFGbkGzjvodZnuZgz9fWa8FsOry+cMAwGA1UdEwEB/wQCMAAwDgYDVR0P
AQH/BAQDAgeAMA0GCSqGSIb3DQEBCwUAA4IBAQCE6F53T0461vAKsGr7WmaTjE6v
A4nA6TdfOaOMhzPfQK9LvPoTOFyVabEWokQBlDqsedPQUPXR58ioGNxsfKsyvAnM
TNFPmU3Z2h6G3T3SX+Won/ZR7qLOYx4HmFzdNJYOVfb5Xxx3mX/fyZ8l2EerwTXd
1J1q1I7Ars+Wrna7OH1ZJAxW+r/UWISV7aWGyr5eLMPb6O1fQ5PQ8wUKSXzY/RGz
kfbrBBe7W6OpzWnrnT28Ni7gIjF80SMcUemrVi2mBn2SDVBOdKzvox818xugLHey
kxtydOCMhlgq7Pme6F4BwD7l31RNmHm03PWq/BhTrGkLH1MxMwEFauZ44GJ4
-----END CERTIFICATE-----
27 changes: 27 additions & 0 deletions Test/IntegrationTests/MqttClient/MqttClient/privatekey.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAxYe6I7qQiYfnrkCVO8xpYDl0b/8/JJDA3awtX27UJPB+BsQv
2N6676QCWZN4+kmpifEMpn2QWhnRIv67KVjy8aqleRdozcUsfQ9gNPWyduyS+AFL
lpdHaTgwWqxBp863Krtn4MtiKAKxDIURfMeFis5rpRPGRzXrXMKy6d6zXxChBBdo
ro92EHwuv8MrKcOe1lk6zfwIUATzUvq0qAz9ytgx5MJLFqjg1VKuSUYyywfGXM4t
DdPx1T4RqTyPqyE+D+VEdLruW3hgjNW0gyU5rBJ0Yk1lmxNqAm5bTbEBu5i0mnLZ
3JU+mUR8TA29KJ8+gIklFxK3oHQLvuZG4foKdQIDAQABAoIBAQCdXYMSgcgyeR4+
+V6qtC/jJAK6UvwH8nZkY44GMHI8N4f/df60ZMVCs0PX/x/rLhIuPeaZIQGG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6FhSPF0eg/0ye4Ed88FD9wKLkpDxrmImXhXP
wdJPc+UuZepOltdH2dOZBMShUTItbO4XBIiqP4aYDjSijIVux+ER
-----END RSA PRIVATE KEY-----
2 changes: 1 addition & 1 deletion aws-common-runtime/aws-c-io
Submodule aws-c-io updated 44 files
+8 −0 .github/ISSUE_TEMPLATE/bug-report.yml
+10 −2 .github/workflows/ci.yml
+32 −0 .github/workflows/issue-regression-labeler.yml
+1 −1 .github/workflows/proof-alarm.yml
+28 −15 CMakeLists.txt
+54 −14 README.md
+113 −318 include/aws/io/event_loop.h
+8 −0 include/aws/io/io.h
+313 −0 include/aws/io/private/event_loop_impl.h
+86 −4 include/aws/io/socket.h
+5 −5 include/aws/io/tls_channel_handler.h
+31 −29 include/aws/testing/io_testing_channel.h
+5 −3 source/bsd/kqueue_event_loop.c
+7 −1 source/channel.c
+8 −12 source/channel_bootstrap.c
+66 −0 source/darwin/dispatch_queue.h
+501 −0 source/darwin/dispatch_queue_event_loop.c
+1,593 −0 source/darwin/nw_socket.c
+14 −15 source/darwin/secure_transport_tls_channel_handler.c
+264 −94 source/event_loop.c
+3 −2 source/exponential_backoff_retry_strategy.c
+13 −54 source/future.c
+4 −5 source/linux/epoll_event_loop.c
+1 −0 source/posix/pipe.c
+75 −44 source/posix/socket.c
+11 −7 source/s2n/s2n_tls_channel_handler.c
+268 −0 source/socket.c
+2 −1 source/windows/iocp/iocp_event_loop.c
+1 −0 source/windows/iocp/pipe.c
+106 −79 source/windows/iocp/socket.c
+17 −4 tests/CMakeLists.txt
+1 −0 tests/alpn_handler_test.c
+5 −1 tests/byo_crypto_test.c
+8 −1 tests/channel_test.c
+48 −12 tests/default_host_resolver_test.c
+40 −15 tests/event_loop_test.c
+20 −5 tests/exponential_backoff_retry_test.c
+1 −0 tests/future_test.c
+1 −0 tests/pipe_test.c
+4 −2 tests/pkcs11_test.c
+23 −4 tests/socket_handler_test.c
+319 −18 tests/socket_test.c
+7 −1 tests/standard_retry_test.c
+22 −5 tests/tls_handler_test.c
Loading