From b8353236bc9aff0ea0501e46e7912383cb6e574c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 19 Apr 2016 10:50:30 +0200 Subject: [PATCH] CI: run proxy tests with ctest Running clar directly on appveyor makes it think the command returned failure, so it stops the tests. Running it via ctest lets it go through. --- CMakeLists.txt | 2 ++ appveyor.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17b5fba7b..ba3a5184a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -690,6 +690,8 @@ IF (BUILD_CLAR) # Add a test target which runs the cred callback tests, to be # called after setting the url and user ADD_TEST(libgit2_clar-cred_callback libgit2_clar -v -sonline::clone::cred_callback) + ADD_TEST(libgit2_clar-proxy_credentials_in_url libgit2_clar -v -sonline::clone::proxy_credentials_in_url) + ADD_TEST(libgit2_clar-proxy_credentials_request libgit2_clar -v -sonline::clone::proxy_credentials_request) ENDIF () IF (TAGS) diff --git a/appveyor.yml b/appveyor.yml index b3bd3994d..fece95ea7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -41,8 +41,8 @@ test_script: $env:GITTEST_REMOTE_USER="libgit2test" ctest -V -R libgit2_clar-cred_callback $env:GITTEST_REMOTE_PROXY_URL = "http://foo:bar@localhost:8080" - .\Debug\libgit2_clar.exe -sonline::clone::proxy_credentials_in_url + ctest -V -R libgit2_clar-proxy_credentials_in_url $env:GITTEST_REMOTE_PROXY_URL = "http://localhost:8080" $env:GITTEST_REMOTE_PROXY_USER = "foo" $env:GITTEST_REMOTE_PROXY_PASS = "bar" - .\Debug\libgit2_clar.exe -sonline::clone::proxy_credentials_request + ctest -V -R libgit2_clar-proxy_credentials_request