[FREELDR] Merge boot-drive and partition functionalities together (#6760)
[reactos.git] / boot / bootdata / bootcdregtest / regtest.cmd
1 @echo off
2 set WINETEST_DEBUG=0
3 set WINETEST_PLATFORM=reactos
4
5 :: On the first boot, we're started through RunOnce.
6 :: Add us to the Run key, so we're also started on the next reboot in case ReactOS crashed *and* the registry has been saved.
7 :: Exit right after that, because Explorer processes the Run key right after RunOnce and therefore picks up regtest.cmd a second time during the first boot.
8 reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v regtest
9 if "%errorlevel%"=="1" (
10 reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v regtest /t REG_SZ /d "%SystemRoot%\system32\cmd.exe /c regtest.cmd"
11 exit 0
12 )
13
14 move "%WINDIR%\bin\redirtest1.dll" "%WINDIR%\bin\kernel32test_versioned.dll"
15 move "%WINDIR%\bin\testdata\redirtest2.dll" "%WINDIR%\bin\testdata\kernel32test_versioned.dll"
16 if exist "%WINDIR%\bin\AHKAppTests.cmd" (
17 dbgprint "Preparing AHK Application testing suite."
18 call "%WINDIR%\bin\AHKAppTests.cmd"
19 del "%WINDIR%\bin\AHKAppTests.cmd"
20 )
21
22 dbgprint --process "ipconfig"
23 cd "%WINDIR%\bin"
24 start rosautotest /r /s /n