[atliac-minitest] new port (#37156)

This commit is contained in:
Atliac 2024-03-29 08:05:44 +08:00 committed by GitHub
parent 740c7e31b0
commit 05d8ab6d5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,26 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Atliac/minitest
REF "v${VERSION}"
SHA512 bd39aa9d4f897f03f0f42b28ee7aabc0fbe5168d09009ebcb253ee3cb5f52ae1d81e9c6657aaa93fe8f67d20d9d92874432a06cadcb78f750681772bb3316d78
HEAD_REF master
)
vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DBUILD_TESTS=OFF
-DMINITEST_PACKAGE_NAME=${PORT}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage")
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

View File

@ -0,0 +1,5 @@
minitest provides CMake targets:
# Note: the `MINITEST_RUN_TESTS(argc, argv);` must be called in the main function
find_package(${PORT} CONFIG REQUIRED)
minitest_discover_tests(target)

View File

@ -0,0 +1,17 @@
{
"name": "atliac-minitest",
"version": "1.0.0",
"description": "A C++ unit testing framework that helps write tests alongside the code being tested.",
"homepage": "https://github.com/Atliac/minitest",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -62,6 +62,17 @@ avro-c:x64-android=fail
azure-identity-cpp:arm-neon-android=fail azure-identity-cpp:arm-neon-android=fail
azure-identity-cpp:arm64-android=fail azure-identity-cpp:arm64-android=fail
azure-identity-cpp:x64-android=fail azure-identity-cpp:x64-android=fail
# C++20 conformant compiler required
atliac-minitest:x64-linux=fail
atliac-minitest:arm64-android=fail
atliac-minitest:arm64-uwp=fail
atliac-minitest:arm64-osx=fail
atliac-minitest:arm-neon-android=fail
atliac-minitest:x64-android=fail
atliac-minitest:x64-osx=fail
atliac-minitest:x64-uwp=fail
backward-cpp:arm-neon-android=fail backward-cpp:arm-neon-android=fail
backward-cpp:arm64-android=fail backward-cpp:arm64-android=fail
backward-cpp:x64-android=fail backward-cpp:x64-android=fail

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "2013d9feb683a1cbd74aa2190af932dfdb4f7580",
"version": "1.0.0",
"port-version": 0
}
]
}

View File

@ -316,6 +316,10 @@
"baseline": "0", "baseline": "0",
"port-version": 0 "port-version": 0
}, },
"atliac-minitest": {
"baseline": "1.0.0",
"port-version": 0
},
"atlmfc": { "atlmfc": {
"baseline": "0", "baseline": "0",
"port-version": 3 "port-version": 3