Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
ba9bb664
Commit
ba9bb664
authored
Mar 03, 2016
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: create a ctest target for cred_callback
parent
a4cba9d4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
CMakeLists.txt
+4
-0
appveyor.yml
+2
-2
script/cibuild.sh
+2
-2
No files found.
CMakeLists.txt
View file @
ba9bb664
...
@@ -682,6 +682,10 @@ IF (BUILD_CLAR)
...
@@ -682,6 +682,10 @@ IF (BUILD_CLAR)
ELSE ()
ELSE ()
ADD_TEST(libgit2_clar libgit2_clar -v)
ADD_TEST(libgit2_clar libgit2_clar -v)
ENDIF ()
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 ()
ENDIF ()
IF (TAGS)
IF (TAGS)
...
...
appveyor.yml
View file @
ba9bb664
...
@@ -37,7 +37,7 @@ build_script:
...
@@ -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)
if "%GENERATOR%"=="MSYS Makefiles" (C:\MinGW\msys\1.0\bin\sh --login /c/projects/libgit2/script/appveyor-mingw.sh)
test_script
:
test_script
:
-
ps
:
|
-
ps
:
|
ctest -V
.
ctest -V
-R libgit2_clar
$env:GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
$env:GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
$env:GITTEST_REMOTE_USER="libgit2test"
$env:GITTEST_REMOTE_USER="libgit2test"
.\Debug\libgit2_clar -sonline::clone::
cred_callback
ctest -V -R libgit2_clar-
cred_callback
script/cibuild.sh
View file @
ba9bb664
...
@@ -25,7 +25,7 @@ git daemon --listen=localhost --export-all --enable=receive-pack --base-path="$H
...
@@ -25,7 +25,7 @@ git daemon --listen=localhost --export-all --enable=receive-pack --base-path="$H
export
GITTEST_REMOTE_URL
=
"git://localhost/test.git"
export
GITTEST_REMOTE_URL
=
"git://localhost/test.git"
# Run the test suite
# 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
# Now that we've tested the raw git protocol, let's set up ssh to we
# can do the push tests over it
# can do the push tests over it
...
@@ -59,4 +59,4 @@ fi
...
@@ -59,4 +59,4 @@ fi
export
GITTEST_REMOTE_URL
=
"https://github.com/libgit2/non-existent"
export
GITTEST_REMOTE_URL
=
"https://github.com/libgit2/non-existent"
export
GITTEST_REMOTE_USER
=
"libgit2test"
export
GITTEST_REMOTE_USER
=
"libgit2test"
./libgit2_clar
-sonline
::clone::cred_callback
||
exit
$?
ctest
-V
-R
libgit2_clar-cred_callback
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment