From 2b09b5d7a0e856f6a5b23bfbd38537f8ee472523 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 16 Nov 2021 23:47:14 -0500 Subject: refactor: move headertest into separate test folder --- tests/libgit2/CMakeLists.txt | 17 ----------------- tests/libgit2/headertest.c | 13 ------------- 2 files changed, 30 deletions(-) delete mode 100644 tests/libgit2/headertest.c (limited to 'tests/libgit2') diff --git a/tests/libgit2/CMakeLists.txt b/tests/libgit2/CMakeLists.txt index 9ab01077a..90ae6253e 100644 --- a/tests/libgit2/CMakeLists.txt +++ b/tests/libgit2/CMakeLists.txt @@ -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 -# 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() diff --git a/tests/libgit2/headertest.c b/tests/libgit2/headertest.c deleted file mode 100644 index 2af8a14ec..000000000 --- a/tests/libgit2/headertest.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Dummy project to validate header files - * - * This project is not intended to be executed, it should only include all - * header files to make sure that they can be used with stricter compiler - * settings than the libgit2 source files generally supports. - */ -#include "git2.h" - -int main(void) -{ - return 0; -} -- cgit v1.2.1