| 1 |
@echo off |
| 2 |
REM CI wrapper: run low-integrity test subset via PsExec and print the log. |
| 3 |
REM PsExec -l = Low Mandatory Integrity (stricter than a normal user). See |
| 4 |
REM psexec-low-integrity-tests.bat for the curated unittest list. |
| 5 |
setlocal |
| 6 |
cd /d "%~dp0.." |
| 7 |
set "REPO=%CD%" |
| 8 |
set "LOG=%USERPROFILE%\AppData\LocalLow\psexec_tests.log" |
| 9 |
if exist "%LOG%" del /q "%LOG%" |
| 10 |
|
| 11 |
psexec.exe -accepteula -l -i -w "%REPO%" cmd /c "%REPO%\windows\psexec-low-integrity-tests.bat" |
| 12 |
set EXITCODE=%ERRORLEVEL% |
| 13 |
|
| 14 |
echo. |
| 15 |
echo === psexec exit code: %EXITCODE% === |
| 16 |
if exist "%LOG%" ( |
| 17 |
echo === psexec test log === |
| 18 |
type "%LOG%" |
| 19 |
) else ( |
| 20 |
echo Log not found: %LOG% |
| 21 |
) |
| 22 |
|
| 23 |
exit /b %EXITCODE% |