From 3c37313b362e73e68d95e2e5a04d4084188e632b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:20:28 +0000 Subject: [PATCH 1/3] Initial plan From 5d3d8544e154eff6bf4a0d087130f286fb7d92da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:29:19 +0000 Subject: [PATCH 2/3] Update sample solution and project to VS2022, drop 32-bit platform Co-authored-by: SergiusTheBest <4660722+SergiusTheBest@users.noreply.github.com> --- README.md | 6 +-- samples/CalcTest/CalcTest.vcxproj | 72 ++----------------------------- samples/Samples.sln | 12 +----- 3 files changed, 9 insertions(+), 81 deletions(-) diff --git a/README.md b/README.md index 3c697fe..41b3b7c 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ There is a lack of unit testing frameworks that work in OS kernel. This library - code sharing between steps in scenario ## Requirements -- Windows XP and higher -- Visual Studio 2010 and higher +- Windows 10 and higher +- Visual Studio 2022 and higher # Usage @@ -293,7 +293,7 @@ void ReleaseMyDriverEnvironment() - Use it for teardown steps that are expensive or should only happen once per test session. # Samples -There is a [samples](samples) folder that demonstrates usage of KmTest unit testing framework. To compile it you need Visual Studio 2015 and WDK10. +There is a [samples](samples) folder that demonstrates usage of KmTest unit testing framework. To compile it you need Visual Studio 2022 and WDK10. # License KmTest is licensed under the [MPL version 2.0](http://mozilla.org/MPL/2.0/). You can freely use it in your commercial or opensource software. diff --git a/samples/CalcTest/CalcTest.vcxproj b/samples/CalcTest/CalcTest.vcxproj index b290303..3da9bdc 100644 --- a/samples/CalcTest/CalcTest.vcxproj +++ b/samples/CalcTest/CalcTest.vcxproj @@ -1,14 +1,6 @@  - + - - Debug - Win32 - - - Release - Win32 - Debug x64 @@ -24,29 +16,13 @@ v4.5 12.0 Debug - Win32 + x64 CalcTest $(LatestTargetPlatformVersion) - - Windows7 - true - WindowsKernelModeDriver10.0 - Driver - WDM - false - - - Windows7 - false - WindowsKernelModeDriver10.0 - Driver - WDM - false - - Windows7 + Windows10 true WindowsKernelModeDriver10.0 Driver @@ -54,7 +30,7 @@ false - Windows7 + Windows10 false WindowsKernelModeDriver10.0 Driver @@ -69,18 +45,6 @@ - - DbgengKernelDebugger - ../../bin/$(PlatformShortName)-$(Configuration)/ - ../../obj/$(PlatformShortName)-$(Configuration)/ - false - - - DbgengKernelDebugger - ../../bin/$(PlatformShortName)-$(Configuration)/ - ../../obj/$(PlatformShortName)-$(Configuration)/ - false - DbgengKernelDebugger ../../bin/$(PlatformShortName)-$(Configuration)/ @@ -93,32 +57,6 @@ ../../obj/$(PlatformShortName)-$(Configuration)/ false - - - Use - ../../include;%(AdditionalIncludeDirectories) - - - - copy /Y "*.cmd" "$(TargetDir)" - - - SHA256 - - - - - Use - ../../include;%(AdditionalIncludeDirectories) - - - - copy /Y "*.cmd" "$(TargetDir)" - - - SHA256 - - Use @@ -154,8 +92,6 @@ - Create - Create Create Create diff --git a/samples/Samples.sln b/samples/Samples.sln index 792e511..4a57636 100644 --- a/samples/Samples.sln +++ b/samples/Samples.sln @@ -1,30 +1,22 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.24720.0 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CalcTest", "CalcTest\CalcTest.vcxproj", "{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x64.ActiveCfg = Debug|x64 {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x64.Build.0 = Debug|x64 {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x64.Deploy.0 = Debug|x64 - {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x86.ActiveCfg = Debug|Win32 - {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x86.Build.0 = Debug|Win32 - {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x86.Deploy.0 = Debug|Win32 {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x64.ActiveCfg = Release|x64 {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x64.Build.0 = Release|x64 {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x64.Deploy.0 = Release|x64 - {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x86.ActiveCfg = Release|Win32 - {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x86.Build.0 = Release|Win32 - {61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x86.Deploy.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From 8c0fd9a5d7fb00a6253607c5c58154dc06bfea4c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 25 Jul 2025 15:41:34 +0000 Subject: [PATCH 3/3] Keep old general requirements, update only samples section to VS2022 Co-authored-by: SergiusTheBest <4660722+SergiusTheBest@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41b3b7c..c55b081 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ There is a lack of unit testing frameworks that work in OS kernel. This library - code sharing between steps in scenario ## Requirements -- Windows 10 and higher -- Visual Studio 2022 and higher +- Windows XP and higher +- Visual Studio 2010 and higher # Usage