From 05d8ab6d5f7a4d7a76b60168959ce850de03425d Mon Sep 17 00:00:00 2001 From: Atliac Date: Fri, 29 Mar 2024 08:05:44 +0800 Subject: [PATCH] [atliac-minitest] new port (#37156) --- ports/atliac-minitest/portfile.cmake | 26 ++++++++++++++++++++++++++ ports/atliac-minitest/usage | 5 +++++ ports/atliac-minitest/vcpkg.json | 17 +++++++++++++++++ scripts/ci.baseline.txt | 11 +++++++++++ versions/a-/atliac-minitest.json | 9 +++++++++ versions/baseline.json | 4 ++++ 6 files changed, 72 insertions(+) create mode 100644 ports/atliac-minitest/portfile.cmake create mode 100644 ports/atliac-minitest/usage create mode 100644 ports/atliac-minitest/vcpkg.json create mode 100644 versions/a-/atliac-minitest.json diff --git a/ports/atliac-minitest/portfile.cmake b/ports/atliac-minitest/portfile.cmake new file mode 100644 index 0000000000..ec9aba8ce5 --- /dev/null +++ b/ports/atliac-minitest/portfile.cmake @@ -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") diff --git a/ports/atliac-minitest/usage b/ports/atliac-minitest/usage new file mode 100644 index 0000000000..1fd833cf7e --- /dev/null +++ b/ports/atliac-minitest/usage @@ -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) diff --git a/ports/atliac-minitest/vcpkg.json b/ports/atliac-minitest/vcpkg.json new file mode 100644 index 0000000000..26bc9760b9 --- /dev/null +++ b/ports/atliac-minitest/vcpkg.json @@ -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 + } + ] +} diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index f7f33498e9..0ba4ddbd14 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -62,6 +62,17 @@ avro-c:x64-android=fail azure-identity-cpp:arm-neon-android=fail azure-identity-cpp:arm64-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:arm64-android=fail backward-cpp:x64-android=fail diff --git a/versions/a-/atliac-minitest.json b/versions/a-/atliac-minitest.json new file mode 100644 index 0000000000..c2705e2e73 --- /dev/null +++ b/versions/a-/atliac-minitest.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "2013d9feb683a1cbd74aa2190af932dfdb4f7580", + "version": "1.0.0", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 6fb571af57..9e30ea951b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -316,6 +316,10 @@ "baseline": "0", "port-version": 0 }, + "atliac-minitest": { + "baseline": "1.0.0", + "port-version": 0 + }, "atlmfc": { "baseline": "0", "port-version": 3