]> git.proxmox.com Git - libgit2.git/commitdiff
tests: create a ctest target for cred_callback
authorCarlos Martín Nieto <cmn@dwim.me>
Thu, 3 Mar 2016 18:21:07 +0000 (19:21 +0100)
committerCarlos Martín Nieto <cmn@dwim.me>
Thu, 3 Mar 2016 18:31:02 +0000 (19:31 +0100)
CMakeLists.txt
appveyor.yml
script/cibuild.sh

index 931b064599a53f7eebba9a685fd8f82a9f82aaa3..f4e56e6cf3f01e7b8019344c7cc5e33e0b66a3e5 100644 (file)
@@ -682,6 +682,10 @@ IF (BUILD_CLAR)
        ELSE ()
                ADD_TEST(libgit2_clar libgit2_clar -v)
        ENDIF ()
+
+       # 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)
 ENDIF ()
 
 IF (TAGS)
index 7186aaf6328e89977ec347fc1a8ca37a41b07c3e..3ed3c49a1487a6d3a64d95fe010b8e07afbac652 100644 (file)
@@ -37,7 +37,7 @@ build_script:
     if "%GENERATOR%"=="MSYS Makefiles" (C:\MinGW\msys\1.0\bin\sh --login /c/projects/libgit2/script/appveyor-mingw.sh)
 test_script:
 - ps: |
-    ctest -V .
+    ctest -V -R libgit2_clar
     $env:GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
     $env:GITTEST_REMOTE_USER="libgit2test"
-    .\Debug\libgit2_clar -sonline::clone::cred_callback
+    ctest -V -R libgit2_clar-cred_callback
index 029dcd4134612637967dad67423da741118369f7..00cde0adae9895a4f73a010713faa19835d44fa9 100755 (executable)
@@ -25,7 +25,7 @@ git daemon --listen=localhost --export-all --enable=receive-pack --base-path="$H
 export GITTEST_REMOTE_URL="git://localhost/test.git"
 
 # Run the test suite
-ctest -V . || exit $?
+ctest -V -R libgit2_clar || exit $?
 
 # Now that we've tested the raw git protocol, let's set up ssh to we
 # can do the push tests over it
@@ -59,4 +59,4 @@ fi
 
 export GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
 export GITTEST_REMOTE_USER="libgit2test"
-./libgit2_clar -sonline::clone::cred_callback || exit $?
+ctest -V -R libgit2_clar-cred_callback