Commit b8353236bc9aff0ea0501e46e7912383cb6e574c

Carlos Martín Nieto 2016-04-19T10:50:30

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.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 17b5fba..ba3a518 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 b3bd399..fece95e 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