Hi,

> Static Tools Logo Test
> 
>   Test description:
> <https://docs.microsoft.com/en-us/windows-
> hardware/test/hlk/testref/6ab6df93-423c-4af6-ad48-8ea1049155ae>
> 
>   Subtest: Run Test -> DevfundTests.DvlTest.DvlCheck
> 
>   Error: DVL test failed:
>          Microsoft.StaticToolsLogo.ObjectModel.DvlException:
>          C:\dvl: the folder does not exist.
>          at Microsoft.StaticToolsLogo.ObjectModel.DvlChecker.CheckDvl()
>          at DevfundTests.DvlTest.DvlCheck()
>   Error Type:
>   Error Code:   0x0
>   Error Text:   Error 0x00000000

Here's the recipe for this...

Apply this:

diff --git a/src/tap-windows6.vcxproj.in b/src/tap-windows6.vcxproj.in
index f60f30a..9afb4c5 100644
--- a/src/tap-windows6.vcxproj.in
+++ b/src/tap-windows6.vcxproj.in
@@ -152,6 +152,8 @@
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
     <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
     <TargetName>@PRODUCT_TAP_WIN_COMPONENT_ID@</TargetName>
+    <RunCodeAnalysis>true</RunCodeAnalysis>
+
<CodeAnalysisRuleSet>$(WDKContentRoot)CodeAnalysis\DriverMinimumRules.rulese
t</CodeAnalysisRuleSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
     <DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
@@ -171,6 +173,7 @@
 
<DisableSpecificWarnings>%(DisableSpecificWarnings);4201;4214;4100;4101;4200
;4057;4127</DisableSpecificWarnings>
       <TreatWarningAsError>false</TreatWarningAsError>
 
<PreprocessorDefinitions>%(PreprocessorDefinitions);TAP_DRIVER_MAJOR_VERSION
=@PRODUCT_TAP_WIN_MAJOR@;TAP_DRIVER_MINOR_VERSION=@PRODUCT_TAP_WIN_MINOR@;ND
IS_WDM=1;NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS630_MINIPORT=1</Prepr
ocessorDefinitions>
+      <EnablePREfast
Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</EnablePREfas
t>
     </ClCompile>
     <Link>
 
<AdditionalDependencies>%(AdditionalDependencies);$(KernelBufferOverflowLib)
;$(DDK_LIB_PATH)ntoskrnl.lib;$(DDK_LIB_PATH)hal.lib;$(DDK_LIB_PATH)wmilib.li
b;ndis.lib;ntstrsafe.lib;wdmsec.lib</AdditionalDependencies>

This will enable code analysis on Release|x64 builds. DVL will need the
tap-windows6\src\x64\Release\vc.nativecodeanalysis.all.xml file too.

Run:

buildtap.py -b

...to make the tap-windows6.vcxproj.

Run:
msbuild.exe tap-windows6.vcxproj /p:Configuration=Release /p:Platform=x64
/t:SDV /p:Inputs=/check:*

Note: Current directory must be the same where the tap-windows6.vcxproj file
is located (tap-windows6\src), or else you will get a cryptic error MSB3073:
The command "staticdv /check:*" exited with code -1.

This will take about half an hour to make a Static Driver Verifier report.
It will report 3 issues with current tap-windows6 master.

Next, run:
msbuild.exe tap-windows6.vcxproj /p:Configuration=Release /p:Platform=x64
/t:DVL

It will make a Driver Verification Log in tap0901.DVL.XML.

(Above should be integrated in buildtap.py.)

Now, deploy the tap0901.DVL.XML to C:\dvl\tap0901.DVL.XML (mind the path) on
each test computer. Or at least one test computer but select that
device/computer specifically when scheduling the Static Tools Logo Test to
run.

https://docs.microsoft.com/en-us/windows-hardware/test/hlk/testref/6ab6df93-
423c-4af6-ad48-8ea1049155ae says WHLK is fine with failed SDV tests. It just
needs the DVL report. Microsoft wants to make sure you are running the code
analysis and are aware your driver has issues.

Best regards,
Simon

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to