Skip to content

Commit 9d57f22

Browse files
Merge pull request #74 from supervoidcoder/copilot/add-more-ci-tests
Enhance process.bat to start and test applications with proper cleanup
2 parents 572f6a6 + b2e7190 commit 9d57f22

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

tests/process/process.bat

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
REM Test system processes that should always be running
12
win-witr winlogon.exe
23
win-witr lsass.exe
34
win-witr win-witr.exe
@@ -9,11 +10,42 @@ win-witr fontdrvhost.exe
910
win-witr svchost.exe
1011
win-witr smss.exe
1112
win-witr services.exe
12-
win-witr MsMpEng.exe
1313
win-witr powershell.exe
1414
win-witr Runner.Listener.exe
1515
win-witr cmd.exe
1616
win-witr pwsh.exe
1717
win-witr Runner.Worker.exe
1818
win-witr hosted-compute-agent
19+
win-witr conhost.exe
20+
win-witr dwm.exe
21+
win-witr RuntimeBroker.exe
22+
win-witr SearchIndexer.exe
23+
win-witr spoolsv.exe
24+
win-witr taskhostw.exe
25+
win-witr dllhost.exe
26+
27+
REM Start notepad and test it, then close
28+
start /B notepad.exe
29+
timeout /t 1 /nobreak >nul
30+
win-witr notepad.exe
31+
taskkill /F /IM notepad.exe >nul 2>&1
32+
33+
REM Start calc and test it, then close
34+
start /B calc.exe
35+
timeout /t 1 /nobreak >nul
36+
win-witr calc.exe
37+
taskkill /F /IM calc.exe >nul 2>&1
38+
39+
REM Start mspaint and test it, then close
40+
start /B mspaint.exe
41+
timeout /t 1 /nobreak >nul
42+
win-witr mspaint.exe
43+
taskkill /F /IM mspaint.exe >nul 2>&1
44+
45+
REM Start PowerShell and test it, then close
46+
start /B powershell.exe -NoProfile -Command "Start-Sleep -Seconds 5"
47+
timeout /t 1 /nobreak >nul
48+
win-witr powershell.exe
49+
taskkill /F /IM powershell.exe >nul 2>&1
50+
1951

0 commit comments

Comments
 (0)