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

summaryrefslogtreecommitdiffhomepage
path: root/premake5.lua
diff options
context:
space:
mode:
authorLeitwolf2026-10-24 19:03:40 +0300
committerGitHub2026-10-24 19:03:40 +0300
commit4f1c759cffcb14bd6511e1d7c5fbace682e24f2d (patch)
tree415fe5d48a5b48650bba3747beaf245d727c4f61 /premake5.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 'premake5.lua')
-rw-r--r--premake5.lua19
1 files changed, 13 insertions, 6 deletions
diff --git a/premake5.lua b/premake5.lua
index 7b5b1835..316b4009 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -28,15 +28,21 @@ workspace "Catch3"
runtime "Release"
filter {}
+-- Catch2's engine with the Catch3 runner; the library is C++20, its headers
+-- need only C++14 in the code that includes them.
project "Catch2"
kind "StaticLib"
language "C++"
- cppdialect "C++14"
+ cppdialect "C++20"
targetdir "build/premake/bin/%{cfg.buildcfg}"
objdir "build/premake/obj/Catch2/%{cfg.buildcfg}"
files {
"src/catch2/**.cpp",
"src/catch2/**.hpp",
+ "src/Progmasoft/Runner/*.cpp",
+ "src/Progmasoft/Runner/*.hpp",
+ "src/Progmasoft/Results.cpp",
+ "src/Progmasoft/XmlWriter.cpp",
path.join(generated_include, "catch2", "catch_user_config.hpp"),
}
removefiles { "src/catch2/internal/catch_main.cpp" }
@@ -65,12 +71,7 @@ project "ProgmasoftCatch3"
"src/Progmasoft/ChoiceShrinker.cpp",
"src/Progmasoft/Context.cpp",
"src/Progmasoft/PropertyEngine.cpp",
- "src/Progmasoft/Results.cpp",
- "src/Progmasoft/Results.hpp",
"src/Progmasoft/Snapshot.cpp",
- "src/Progmasoft/Snapshot.hpp",
- "src/Progmasoft/XmlWriter.cpp",
- "src/Progmasoft/XmlWriter.hpp",
"src/Progmasoft/Catch3/**.hpp",
"src/Progmasoft/Catch3.hpp",
}
@@ -88,6 +89,12 @@ project "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",