Menu

[r66]: / BuildScript_1.8 / run-tests.cmd  Maximize  Restore  History

Download this file

89 lines (78 with data), 3.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@IF DEFINED NOECHO echo off
echo ====== Run tests ======
echo ====== Run tests ====== > %LOG_DIR%\run-tests.log
set PATHORG=%PATH%
PATH=%ROOT%\svn-win32-%VER%\svn-win32-%VER%\bin;%PATH%
pushd %ROOT%\%DIR%
::goto httpd
:fsfs
echo ----- Test fsfs ------
echo ----- Test fsfs ------ >> %LOG_DIR%\run-tests.log
echo ----- Logging tests to run-tests-fsfs.log ------ >> %LOG_DIR%\run-tests.log
echo ----- Test fsfs ------ > %LOG_DIR%\run-tests-fsfs.log
python win-tests.py -c -r -v >> %LOG_DIR%\run-tests-fsfs.log 2>>&1
IF ERRORLEVEL 1 GOTO fsfstest_fail
goto fsfssuccess
:fsfstest_fail
set FSFSERROR=1
:fsfssuccess
:bdb
echo ----- Test bdb ------
echo ----- Test bdb ------ >> %LOG_DIR%\run-tests.log
echo ----- Logging tests to run-tests-bdb.log ------ >> %LOG_DIR%\run-tests.log
echo ----- Test bdb ------ > %LOG_DIR%\run-tests-bdb.log
python win-tests.py -c -r -v -f bdb >> %LOG_DIR%\run-tests-bdb.log 2>>&1
IF ERRORLEVEL 1 GOTO bdbtest_fail
goto bdbsuccess
:bdbtest_fail
set BDBERROR=1
:bdbsuccess
:svn
echo ----- Test svn ------
echo ----- Test svn ------ >> %LOG_DIR%\run-tests.log
echo ----- Logging tests to run-tests-svn.log ------ >> %LOG_DIR%\run-tests.log
echo ----- Test svn ------ > %LOG_DIR%\run-tests-svn.log
netsh firewall add allowedprogram "%ROOT%\%DIR%\Release\subversion\svnserve\svnserve.exe" svnserve-%VER%-%HTTPDVER% >> %LOG_DIR%\run-tests.log 2>>&1
IF ERRORLEVEL 1 GOTO TEST_FAIL
python win-tests.py -c -r -v -u svn://localhost >> %LOG_DIR%\run-tests-svn.log 2>>&1
IF ERRORLEVEL 1 GOTO svntest_fail
goto svnsuccess
:svntest_fail
set SVNERROR=1
:svnsuccess
%SYSINTERNALS%\pskill.exe -t svnserve.exe
:httpd
echo ----- Test http-serf ------
echo ----- Test http-serf ------ >> %LOG_DIR%\run-tests.log
echo ----- Logging tests to run-tests-http-serf.log ------ >> %LOG_DIR%\run-tests.log
echo ----- Test http-serf ------ > %LOG_DIR%\run-tests-http-serf.log
start "HTTPD" "%HTTPDINSTDIR%\bin\httpd.exe" >> %LOG_DIR%\run-tests.log
IF ERRORLEVEL 1 GOTO TEST_FAIL
python win-tests.py -c -r -v -u http://localhost:80%HTTPDVER% --httpd-version=%HTTPDFULLVER% >> %LOG_DIR%\run-tests-http-serf.log 2>>&1
::python win-tests.py -c -r -v -t authz_tests.py -u http://localhost:80%HTTPDVER% --httpd-version=%HTTPDFULLVER% >> %LOG_DIR%\run-tests-http-serf.log 2>>&1
IF ERRORLEVEL 1 GOTO httptest_fail
goto httpsuccess
:httptest_fail
set HTTPERROR=1
:httpsuccess
%SYSINTERNALS%\pskill.exe -t httpd.exe
if defined FSFSERROR goto TEST_FAIL
if defined BDBERROR goto TEST_FAIL
if defined SVNERROR goto TEST_FAIL
if defined HTTPERROR goto TEST_FAIL
:SUCCESS
PATH=%PATHORG%
popd
echo ----- Tests OK ------
echo ----- Tests OK ------ >> %LOG_DIR%\run-tests.log
exit /B 0
:TEST_FAIL
echo ****** Tests failed ****** >> %LOG_DIR%\run-tests.log
if defined FSFSERROR type %LOG_DIR%\run-tests-fsfs.log
if defined BDBERROR type %LOG_DIR%\run-tests-bdb.log
if defined SVNERROR type %LOG_DIR%\run-tests-svn.log
if defined HTTPERROR type %LOG_DIR%\run-tests-http-serf.log
type %LOG_DIR%\run-tests.log
PATH=%PATHORG%
popd
exit /B 1
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.