[REGTEST] Add regtest.cmd to the Run key inside regtest.cmd, so we're also started...
[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 C:\ReactOS\bin\redirtest1.dll C:\ReactOS\bin\kernel32test_versioned.dll
15 move C:\ReactOS\bin\testdata\redirtest2.dll C:\ReactOS\bin\testdata\kernel32test_versioned.dll
16 if exist "C:\ReactOS\bin\AHKAppTests.cmd" (
17 dbgprint "Preparing AHK Application testing suite."
18 call C:\ReactOS\bin\AHKAppTests.cmd
19 del C:\ReactOS\bin\AHKAppTests.cmd
20 )
21
22 dbgprint --process "ipconfig"
23 cd C:\ReactOS\bin
24 start rosautotest /r /s /n