Skip to content

Commit c9f9115

Browse files
authored
Update vcpkg and remove tests that look for web servers that no longer exist (microsoft#1293)
1 parent fd6aa00 commit c9f9115

File tree

5 files changed

+42
-124
lines changed

5 files changed

+42
-124
lines changed

Build_android/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ if [ "${DO_OPENSSL}" == "1" ]; then (
155155
if [ "${DO_BOOST}" == "1" ]; then (
156156
if [ ! -d 'Boost-for-Android' ]; then git clone https://github.com/moritz-wundke/Boost-for-Android; fi
157157
cd Boost-for-Android
158-
git checkout aed656a97fb3af7322fd2c3da5995a2d09d87d4b
158+
git checkout 245ea53385a55742a9ab08a8bd32c6a2dc0bbea4
159159
PATH="$PATH:$NDK_DIR" \
160160
CXXFLAGS="-std=gnu++11" \
161161
./build-android.sh \

Build_iOS/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if [ ! -e $ABS_PATH/boost.framework ] && [ ! -d $ABS_PATH/boost ]; then
9696
git clone https://github.com/faithfracture/Apple-Boost-BuildScript ${ABS_PATH}/Apple-Boost-BuildScript
9797
fi
9898
pushd ${ABS_PATH}/Apple-Boost-BuildScript
99-
git checkout 1ebe6e7654d9c9e1792076ee3827a45d5d2f34c5
99+
git checkout 8c42427b4ebc7865eb99b0a0b9607888af2c6abc
100100
BOOST_LIBS="thread chrono filesystem regex system random" ./boost.sh -ios -tvos --boost-version $BOOST_VERSION
101101
popd
102102
mv ${ABS_PATH}/Apple-Boost-BuildScript/build/boost/${BOOST_VERSION}/ios/framework/boost.framework ${ABS_PATH}
@@ -112,7 +112,7 @@ if [ ! -e ${ABS_PATH}/openssl/lib/libcrypto.a ]; then
112112
git clone --depth=1 https://github.com/x2on/OpenSSL-for-iPhone.git ${ABS_PATH}/OpenSSL-for-iPhone
113113
fi
114114
pushd ${ABS_PATH}/OpenSSL-for-iPhone
115-
git checkout 10019638e80e8a8a5fc19642a840d8a69fac7349
115+
git checkout 6c665e2a15ba7e834875eecaf4eb93c11605dd9a
116116
./build-libssl.sh --version=${OPENSSL_VERSION}
117117
popd
118118
mkdir -p ${ABS_PATH}/openssl/lib

Release/tests/functional/websockets/client/authentication_tests.cpp

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -128,83 +128,6 @@ SUITE(authentication_tests)
128128
}
129129
}
130130

131-
// These tests are specific to our websocketpp based implementation.
132-
#if !defined(__cplusplus_winrt)
133-
134-
void sni_test_impl(websocket_client & client)
135-
{
136-
try
137-
{
138-
client.connect(U("wss://swordsoftruth.com")).wait();
139-
140-
// Should never be reached.
141-
VERIFY_IS_TRUE(false);
142-
}
143-
catch (const websocket_exception& e)
144-
{
145-
if (is_timeout(e.what()))
146-
{
147-
// Since this test depends on an outside server sometimes it sporadically can fail due to timeouts
148-
// especially on our build machines.
149-
return;
150-
}
151-
152-
// This test just covers establishing the TLS connection and verifying
153-
// the server certificate, expect it to return an unexpected HTTP status code.
154-
if (e.error_code().value() == 20)
155-
{
156-
return;
157-
}
158-
throw;
159-
}
160-
}
161-
162-
// Test specifically for server SignalR team hit interesting cases with.
163-
TEST(sni_with_older_server_test)
164-
{
165-
websocket_client client;
166-
sni_test_impl(client);
167-
}
168-
169-
// WinRT doesn't expose option for disabling.
170-
// No stable server is available to reliably test this.
171-
// The configuration below relies on a timeout in the success case.
172-
TEST(disable_sni, "Ignore", "Manual")
173-
{
174-
websocket_client_config config;
175-
config.set_server_name("expired.badssl.com");
176-
config.disable_sni();
177-
websocket_client client(config);
178-
179-
try
180-
{
181-
client.connect(U("wss://badssl.com")).wait();
182-
183-
// Should never be reached.
184-
VERIFY_IS_TRUE(false);
185-
}
186-
catch (const websocket_exception& e)
187-
{
188-
// Should fail for a reason different than invalid HTTP status.
189-
if (e.error_code().value() != 20)
190-
{
191-
return;
192-
}
193-
throw;
194-
}
195-
}
196-
197-
// Winrt doesn't allow explicitly setting server host for SNI.
198-
TEST(sni_explicit_hostname)
199-
{
200-
websocket_client_config config;
201-
const auto& name = utf8string("swordsoftruth.com");
202-
config.set_server_name(name);
203-
VERIFY_ARE_EQUAL(name, config.server_name());
204-
websocket_client client(config);
205-
sni_test_impl(client);
206-
}
207-
208131
void handshake_error_test_impl(const ::utility::string_t& host)
209132
{
210133
websocket_client client;
@@ -231,8 +154,6 @@ SUITE(authentication_tests)
231154

232155
TEST(cert_expired) { handshake_error_test_impl(U("wss://expired.badssl.com/")); }
233156

234-
#endif
235-
236157
} // SUITE(authentication_tests)
237158

238159
} // namespace client

azure-pipelines.yml

Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ jobs:
124124
export NCPU=2
125125
../configure.sh --ndk /usr/local/lib/android/sdk/ndk-bundle
126126
displayName: 'Build for Android'
127-
# Homebrew is disabled for now because it apparently is deploying a Boost version that the version of xcode deployed in Pipelines cannot build.
128127
# - job: MacOS_Homebrew
129128
# pool:
130-
# vmImage: 'macOS-10.14'
129+
# vmImage: 'macOS-latest'
131130
# steps:
132131
# - script: brew install boost openssl ninja
133132
# displayName: Brew install dependencies
@@ -168,47 +167,45 @@ jobs:
168167
# cd build.release.static
169168
# ninja
170169
# displayName: 'Run ninja, release static'
171-
- job: MacOS_Vcpkg
172-
pool:
173-
vmImage: 'macOS-10.14'
174-
steps:
175-
- script: |
176-
brew install gcc ninja
177-
./vcpkg/bootstrap-vcpkg.sh
178-
./vcpkg/vcpkg install zlib openssl boost-system boost-date-time boost-regex websocketpp boost-thread boost-filesystem boost-random boost-chrono boost-interprocess brotli --vcpkg-root ./vcpkg
179-
displayName: Vcpkg install dependencies
180-
- script: |
181-
mkdir build.debug
182-
mkdir build.release
183-
displayName: Make Build Directories
184-
- task: CMake@1
185-
inputs:
186-
workingDirectory: 'build.debug'
187-
cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
188-
- task: CMake@1
189-
inputs:
190-
workingDirectory: 'build.release'
191-
cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
192-
- script: |
193-
cd build.debug
194-
ninja
195-
displayName: 'Run ninja debug'
196-
- script: |
197-
cd build.debug/Release/Binaries
198-
./test_runner *test.dylib
199-
displayName: 'Run Tests debug'
200-
- script: |
201-
cd build.release
202-
ninja
203-
displayName: 'Run ninja, release'
204-
- script: |
205-
cd build.release/Release/Binaries
206-
./test_runner *test.dylib
207-
displayName: 'Run tests, release'
208-
# iOS is disabled for now because the dependency Apple-Boost-BuildScript appears to be broken with the version of XCode in use in Pipelines.
170+
# - job: MacOS_Vcpkg
171+
# pool:
172+
# vmImage: 'macOS-latest'
173+
# steps:
174+
# - script: |
175+
# ./vcpkg/bootstrap-vcpkg.sh
176+
# ./vcpkg/vcpkg install zlib openssl boost-system boost-date-time boost-regex websocketpp boost-thread boost-filesystem boost-random boost-chrono boost-interprocess brotli --vcpkg-root ./vcpkg
177+
# displayName: Vcpkg install dependencies
178+
# - script: |
179+
# mkdir build.debug
180+
# mkdir build.release
181+
# displayName: Make Build Directories
182+
# - task: CMake@1
183+
# inputs:
184+
# workingDirectory: 'build.debug'
185+
# cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
186+
# - task: CMake@1
187+
# inputs:
188+
# workingDirectory: 'build.release'
189+
# cmakeArgs: '-G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
190+
# - script: |
191+
# cd build.debug
192+
# ninja
193+
# displayName: 'Run ninja debug'
194+
# - script: |
195+
# cd build.debug/Release/Binaries
196+
# ./test_runner *test.dylib
197+
# displayName: 'Run Tests debug'
198+
# - script: |
199+
# cd build.release
200+
# ninja
201+
# displayName: 'Run ninja, release'
202+
# - script: |
203+
# cd build.release/Release/Binaries
204+
# ./test_runner *test.dylib
205+
# displayName: 'Run tests, release'
209206
# - job: MacOS_iOS
210207
# pool:
211-
# vmImage: 'macOS-10.14'
208+
# vmImage: 'macOS-latest'
212209
# steps:
213210
# - script: |
214211
# cd Build_iOS

vcpkg

Submodule vcpkg updated 1388 files

0 commit comments

Comments
 (0)