Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/xmake.lua
diff options
context:
space:
mode:
authorLeitwolf2026-10-24 19:03:40 +0300
committerGitHub2026-10-24 19:03:40 +0300
commit4f1c759cffcb14bd6511e1d7c5fbace682e24f2d (patch)
tree415fe5d48a5b48650bba3747beaf245d727c4f61 /xmake.lua
parent83c6fc3ac13abe83fa39f7b5f8559ccaf4412233 (diff)
parent622188f9c08e4af35941c146979883ed4882410e (diff)
downloadcatch3-4f1c759cffcb14bd6511e1d7c5fbace682e24f2d.tar.gz
Merge pull request #15 from Progmasoft/feature/catch3-runner
Replace Catch2's runner with the Catch3 runner
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua21
1 files changed, 16 insertions, 5 deletions
diff --git a/xmake.lua b/xmake.lua
index 9d956df7..aec3b1d4 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -10,10 +10,12 @@ local repository_root = os.projectdir()
local generated_include = path.join(repository_root, ".xmake", "generated")
add_moduledirs(path.join(repository_root, "buildsupport"))
--- Keep upstream Catch2's compilation baseline and project identity intact.
+-- Catch2's engine with the Catch3 runner, which replaced Catch2's session,
+-- command line and reporters. The library is C++20; Catch2's headers still
+-- need only C++14 in the code that includes them.
target("catch2")
set_kind("static")
- set_languages("cxx14")
+ set_languages("cxx20")
on_load(function(target)
-- File I/O is restricted to Xmake's script domain, so generate here
-- rather than while the declarative project file is being evaluated.
@@ -23,6 +25,11 @@ target("catch2")
end)
add_files("src/catch2/**.cpp")
remove_files("src/catch2/internal/catch_main.cpp")
+ add_files(
+ "src/Progmasoft/Runner/*.cpp",
+ "src/Progmasoft/Results.cpp",
+ "src/Progmasoft/XmlWriter.cpp"
+ )
add_includedirs("src", {public = true})
add_headerfiles("src/catch2/**.hpp", {prefixdir = ""})
@@ -42,9 +49,7 @@ target("ProgmasoftCatch3")
"src/Progmasoft/ChoiceShrinker.cpp",
"src/Progmasoft/Context.cpp",
"src/Progmasoft/PropertyEngine.cpp",
- "src/Progmasoft/Results.cpp",
- "src/Progmasoft/Snapshot.cpp",
- "src/Progmasoft/XmlWriter.cpp"
+ "src/Progmasoft/Snapshot.cpp"
)
add_includedirs("src", {public = true})
add_deps("catch2", {public = true})
@@ -57,6 +62,12 @@ target("ProgmasoftPropertyTests")
"tests/Progmasoft/Property.tests.cpp",
"tests/Progmasoft/ForAll.tests.cpp",
"tests/Progmasoft/Results.tests.cpp",
+ "tests/Progmasoft/Runner.tests.cpp",
+ "tests/Progmasoft/RunnerUnits.tests.cpp",
+ "tests/Progmasoft/RunnerPlanner.tests.cpp",
+ "tests/Progmasoft/RunnerOptions.tests.cpp",
+ "tests/Progmasoft/RunnerAnalysis.tests.cpp",
+ "tests/Progmasoft/RunnerOutput.tests.cpp",
"tests/Progmasoft/Snapshot.tests.cpp",
"tests/Progmasoft/Stateful.tests.cpp",
"tests/Progmasoft/Strategy.tests.cpp",