Skip to content

Commit

Permalink
Live (\\.\pipe\com_1) test scripts were added
Browse files Browse the repository at this point in the history
  • Loading branch information
swwwolf committed Dec 25, 2017
1 parent 5624736 commit b04964f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_live.ps1
@@ -0,0 +1,10 @@
param (
[string]$Bit = "x64",
[string]$Log = $(throw "-log path is required."),
[string]$Exe = $(throw "-exe name is required."),
[string]$Script = $(throw "-script name is required.")
)
$WdkDir=${env:ProgramFiles(x86)}+"\Windows Kits\10\"
$Command='$$>a<'+$PSScriptRoot+"\"+$Script
$Dbg=$WdkDir+"Debuggers\"+$Bit+"\"+$Exe
& $Dbg -b -k com:pipe,port=\\.\pipe\com_1,resets=0,reconnect -logo "$Log" -c "$Command"
6 changes: 6 additions & 0 deletions test/test_live_x64_ntkd.cmd
@@ -0,0 +1,6 @@
:: %1 - path to store the log
@echo off
setlocal enableextensions
set log=%1
powershell .\test_live.ps1 -Log %log% -Exe ntkd.exe -Script wa_test_script_ntkd.txt
goto :eof
2 changes: 2 additions & 0 deletions wdbgark.vcxproj
Expand Up @@ -286,6 +286,8 @@
<None Include="test\test_all_ssdt.cmd" />
<None Include="test\test_all_x64_ntkd.cmd" />
<None Include="test\test_all_x64_windbg.cmd" />
<None Include="test\test_live.ps1" />
<None Include="test\test_live_x64_ntkd.cmd" />
<None Include="test\test_one_dump.ps1" />
<None Include="test\test_one_x64_ntkd.cmd" />
<None Include="test\test_one_x64_windbg.cmd" />
Expand Down
6 changes: 6 additions & 0 deletions wdbgark.vcxproj.filters
Expand Up @@ -252,6 +252,12 @@
<None Include="test\test_one_x64_windbg.cmd">
<Filter>Test</Filter>
</None>
<None Include="test\test_live.ps1">
<Filter>Test</Filter>
</None>
<None Include="test\test_live_x64_ntkd.cmd">
<Filter>Test</Filter>
</None>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="wdbgark.rc">
Expand Down

0 comments on commit b04964f

Please sign in to comment.