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
2b09b5d7
Commit
2b09b5d7
authored
Nov 16, 2021
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: move headertest into separate test folder
parent
25bc84fb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
17 deletions
+18
-17
tests/CMakeLists.txt
+1
-0
tests/README.md
+3
-0
tests/headertest/CMakeLists.txt
+14
-0
tests/headertest/headertest.c
+0
-0
tests/libgit2/CMakeLists.txt
+0
-17
No files found.
tests/CMakeLists.txt
View file @
2b09b5d7
# The main libgit2 tests tree: this CMakeLists.txt includes the
# subprojects that make up core libgit2 support.
add_subdirectory
(
headertest
)
add_subdirectory
(
libgit2
)
tests/README.md
View file @
2b09b5d7
...
...
@@ -4,6 +4,9 @@ These are the unit and integration tests for the libgit2 projects.
*
`clar`
This is
[
clar
](
https://github.com/clar-test/clar
)
the common test framework.
*
`headertest`
This is a simple project that ensures that our public headers are
compatible with extremely strict compilation options.
*
`libgit2`
These tests exercise the core git functionality in libgit2 itself.
*
`resources`
...
...
tests/headertest/CMakeLists.txt
0 → 100644
View file @
2b09b5d7
# Header file validation project: ensure that we do not publish any sloppy
# definitions in our headers and that a consumer can include <git2.dll>
# even when they have aggressive C90 warnings enabled.
add_executable
(
headertest headertest.c
)
set_target_properties
(
headertest PROPERTIES C_STANDARD 90
)
set_target_properties
(
headertest PROPERTIES C_EXTENSIONS OFF
)
target_include_directories
(
headertest PRIVATE
${
LIBGIT2_INCLUDES
}
)
if
(
MSVC
)
target_compile_options
(
headertest PUBLIC /W4 /WX
)
else
()
target_compile_options
(
headertest PUBLIC -Wall -Wextra -pedantic -Werror
)
endif
()
tests/
libgit2
/headertest.c
→
tests/
headertest
/headertest.c
View file @
2b09b5d7
File moved
tests/libgit2/CMakeLists.txt
View file @
2b09b5d7
...
...
@@ -80,20 +80,3 @@ add_clar_test(ssh -v -sonline::push -sonline::clone::ssh_cert -s
add_clar_test(proxy -v -sonline::clone::proxy)
add_clar_test(auth_clone -v -sonline::clone::cred)
add_clar_test(auth_clone_and_push -v -sonline::clone::push -sonline::push)
#
# Header file validation project: ensure that we do not publish any sloppy
# definitions in our headers and that a consumer can include <git2.dll>
# even when they have aggressive C90 warnings enabled.
#
add_executable(headertest headertest.c)
set_target_properties(headertest PROPERTIES C_STANDARD 90)
set_target_properties(headertest PROPERTIES C_EXTENSIONS OFF)
target_include_directories(headertest PRIVATE
${
LIBGIT2_INCLUDES
}
)
if (MSVC)
target_compile_options(headertest PUBLIC /W4 /WX)
else()
target_compile_options(headertest PUBLIC -Wall -Wextra -pedantic -Werror)
endif()
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