diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-03 19:21:07 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-03 19:31:02 +0100 |
commit | ba9bb664f3ed3f230c474ddd8937bd072cc9947f (patch) | |
tree | 45c8994baa4f7f9acc7dda68334a0c0b4a1c9274 | |
parent | a4cba9d45384eec145537438a8e2d765c3a0bf11 (diff) | |
download | libgit2-ba9bb664f3ed3f230c474ddd8937bd072cc9947f.tar.gz |
tests: create a ctest target for cred_callbackcmn/auth-retry
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | appveyor.yml | 4 | ||||
-rwxr-xr-x | script/cibuild.sh | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 931b06459..f4e56e6cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/appveyor.yml b/appveyor.yml index 7186aaf63..3ed3c49a1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/script/cibuild.sh b/script/cibuild.sh index 029dcd413..00cde0ada 100755 --- a/script/cibuild.sh +++ b/script/cibuild.sh @@ -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 |