From 621479eec199277aa834eeeb20e249a3570fe669 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sat, 24 Jun 2023 09:09:40 +0200 Subject: Remove integration tests; Update docs --- README | 24 +++++++++++++++ README.md | 22 -------------- TODO | 13 +++++++++ TODO.md | 12 -------- source/test/integration/fetch_content/.gitignore | 1 - .../test/integration/fetch_content/CMakeLists.txt | 19 ------------ source/test/integration/fetch_content/main.c | 7 ----- source/test/integration/find_package/.gitignore | 2 -- .../test/integration/find_package/CMakeLists.txt | 34 ---------------------- .../integration/find_package/source/CMakeLists.txt | 10 ------- source/test/integration/find_package/source/main.c | 7 ----- 11 files changed, 37 insertions(+), 114 deletions(-) create mode 100644 README delete mode 100644 README.md create mode 100644 TODO delete mode 100644 TODO.md delete mode 100644 source/test/integration/fetch_content/.gitignore delete mode 100644 source/test/integration/fetch_content/CMakeLists.txt delete mode 100644 source/test/integration/fetch_content/main.c delete mode 100644 source/test/integration/find_package/.gitignore delete mode 100644 source/test/integration/find_package/CMakeLists.txt delete mode 100644 source/test/integration/find_package/source/CMakeLists.txt delete mode 100644 source/test/integration/find_package/source/main.c diff --git a/README b/README new file mode 100644 index 0000000..f8f40c1 --- /dev/null +++ b/README @@ -0,0 +1,24 @@ +kit + +A collection of C libraries. + +Features +- Unit-testing +- Microbenchmarks +- Lower bound +- Move back +- Dynamic array +- Input buffer +- Random number generation +- Big integer math +- SHA-256 +- Async function +- Atomic +- Condition variable +- Mutual exclusion +- Thread + +Condition variables, mutual exclusions and threads implementation was forked from Mesa source code. +* https://gitlab.freedesktop.org/mesa/mesa + +Folder "/include" contains header-only version of this library. diff --git a/README.md b/README.md deleted file mode 100644 index f6e9a4f..0000000 --- a/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# kit - -- Unit-testing -- Microbenchmarks -- Lower bound -- Move back -- Dynamic array -- Input buffer -- Random number generation -- Big integer math -- SHA-256 -- Async function -- Atomic -- Condition variable -- Mutual exclusion -- Thread - -Condition variables, mutual exclusions and threads implementation was forked from [Mesa][mesa_link] source code. - -Folder `include` contains header-only version of this library. - -[mesa_link]: https://gitlab.freedesktop.org/mesa/mesa diff --git a/TODO b/TODO new file mode 100644 index 0000000..f8545f4 --- /dev/null +++ b/TODO @@ -0,0 +1,13 @@ +# kit To-Do +- Build system + - Remove CMake scripts +- Allocators + - Memory pool + - Memory stack + - Bump +- System + - Terminal + - File and memory mapping + - Inter-process transfer + - Sockets wrapper + - SDL boilerplate diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 8e5a4d7..0000000 --- a/TODO.md +++ /dev/null @@ -1,12 +0,0 @@ -# kit To-Do -- Build system -- Allocators - - Memory pool - - Memory stack - - Bump -- System - - Terminal - - File and memory mapping - - Inter-process transfer - - Sockets wrapper - - SDL boilerplate diff --git a/source/test/integration/fetch_content/.gitignore b/source/test/integration/fetch_content/.gitignore deleted file mode 100644 index 84c048a..0000000 --- a/source/test/integration/fetch_content/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build/ diff --git a/source/test/integration/fetch_content/CMakeLists.txt b/source/test/integration/fetch_content/CMakeLists.txt deleted file mode 100644 index efa83d0..0000000 --- a/source/test/integration/fetch_content/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -cmake_minimum_required(VERSION 3.16) -set(NAME kit-integration-fetch-content) -project(${NAME} C) - -include(FetchContent) -FetchContent_Declare( - kit - GIT_REPOSITORY https://github.com/automainint/kit.git - GIT_TAG dev) -set(KIT_ENABLE_TESTING OFF) -FetchContent_MakeAvailable(kit) - -add_executable(${NAME}) -target_sources(${NAME} PRIVATE main.c) -target_link_libraries(${NAME} PRIVATE kit::kit) - -enable_testing() -add_test(NAME ${NAME}-run COMMAND ${NAME}) -set_tests_properties(${NAME}-run PROPERTIES TIMEOUT "15") diff --git a/source/test/integration/fetch_content/main.c b/source/test/integration/fetch_content/main.c deleted file mode 100644 index 60d4f1d..0000000 --- a/source/test/integration/fetch_content/main.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#include -#include - -int main() { - return 0; -} diff --git a/source/test/integration/find_package/.gitignore b/source/test/integration/find_package/.gitignore deleted file mode 100644 index 0ba45dd..0000000 --- a/source/test/integration/find_package/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/build/ -/install/ diff --git a/source/test/integration/find_package/CMakeLists.txt b/source/test/integration/find_package/CMakeLists.txt deleted file mode 100644 index f21cdae..0000000 --- a/source/test/integration/find_package/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -cmake_minimum_required(VERSION 3.16) -set(NAME kit-integration-find-package) -project(${NAME}-root) - -include(ExternalProject) - -ExternalProject_Add( - kit - GIT_REPOSITORY https://github.com/automainint/kit.git - GIT_TAG dev - CMAKE_ARGS - -D CMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/install - -D KIT_ENABLE_TESTING=OFF) - -ExternalProject_Add( - ${NAME} - SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/source - CMAKE_ARGS - -D CMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/install) - -ExternalProject_Add_StepDependencies(${NAME} build kit) - -include(GNUInstallDirs) - -enable_testing() - -add_test( - NAME ${NAME}-run - COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/install/${CMAKE_INSTALL_BINDIR}/${NAME}${CMAKE_EXECUTABLE_SUFFIX}) - -set_tests_properties( - ${NAME}-run - PROPERTIES - TIMEOUT "15") diff --git a/source/test/integration/find_package/source/CMakeLists.txt b/source/test/integration/find_package/source/CMakeLists.txt deleted file mode 100644 index 2dc34a1..0000000 --- a/source/test/integration/find_package/source/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ -cmake_minimum_required(VERSION 3.16) -set(NAME kit-integration-find-package) -project(${NAME} C) - -find_package(kit REQUIRED) - -add_executable(${NAME}) -target_sources(${NAME} PRIVATE main.c) -target_link_libraries(${NAME} PRIVATE kit::kit) -install(TARGETS ${NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) diff --git a/source/test/integration/find_package/source/main.c b/source/test/integration/find_package/source/main.c deleted file mode 100644 index 60d4f1d..0000000 --- a/source/test/integration/find_package/source/main.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#include -#include - -int main() { - return 0; -} -- cgit v1.2.3