diff options
| author | Leitwolf11 | 2026-11-15 23:08:05 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-15 23:08:05 +0300 |
| commit | 67c3ef401b34716f7214374ff0d6c24b3c50a149 (patch) | |
| tree | c4c97fb09f6e1364d8b44f74fca32f18065588b0 /tests/Progmasoft/BazelModule/WithMain.tests.cpp | |
| parent | 2fbb5585e35078cb2490c8ae988860aa6dc0399d (diff) | |
| download | catch3-67c3ef401b34716f7214374ff0d6c24b3c50a149.tar.gz | |
Prepare the Bazel Central Registry entry as progmasoft_catch3
- MODULE.bazel names the module progmasoft_catch3, the name it has in
the registry, with bazel_compatibility >=8.0.0; //tools:version finds
the version under the new name.
- .bcr/ holds the templates publish-to-bcr fills: metadata, source (the
GitHub archive of the catch3-* tag) and the presubmit, which runs the
test module on Debian, Ubuntu, macOS (x86-64 and arm64) and Windows
with Bazel 8.x and 9.x.
- tests/Progmasoft/BazelModule is a module that depends on Catch3 as a
user's does, through //:catch3_main and through //:catch3 with its
own main. The root ignores it; Bazel Builds tests it with Bazel 8.x
and 9.x on Ubuntu and Windows.
- Publish to BCR runs when a catch3-* release is published, or by hand
for a tag, and opens the registry pull request from the fork of the
maintainer, without attestations.
- The integration guide says how a module depends on progmasoft_catch3.
Claude-Session: https://claude.ai/code/session_01Ji7xZMYjc4zankoc7hGBE1
Diffstat (limited to 'tests/Progmasoft/BazelModule/WithMain.tests.cpp')
| -rw-r--r-- | tests/Progmasoft/BazelModule/WithMain.tests.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Progmasoft/BazelModule/WithMain.tests.cpp b/tests/Progmasoft/BazelModule/WithMain.tests.cpp new file mode 100644 index 00000000..b3843f9f --- /dev/null +++ b/tests/Progmasoft/BazelModule/WithMain.tests.cpp @@ -0,0 +1,13 @@ +// Copyright (c) 2026 Progmasoft. +// SPDX-License-Identifier: LGPL-3.0-or-later + +// Tests linked with @progmasoft_catch3//:catch3_main, which brings main. +#include <Progmasoft/Catch3/TestMacros.hpp> +#include <string> + +TEST_CASE("A test runs from the published module", "[module]") +{ + const std::string name = "progmasoft_catch3"; + REQUIRE(name.size() == 17); + CHECK(name.rfind("progmasoft_", 0) == 0); +} |