diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
commit | cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 (patch) | |
tree | da27775a2161723ef342e91af41a8b51fedef405 /tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd | |
parent | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (diff) | |
download | subversion-tarball-cf46733632c7279a9fd0fe6ce26f9185a4ae82a9.tar.gz |
subversion-1.9.7HEADsubversion-1.9.7master
Diffstat (limited to 'tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd')
-rw-r--r-- | tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd | 124 |
1 files changed, 80 insertions, 44 deletions
diff --git a/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd b/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd index f3c551e..90fd5d2 100644 --- a/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd +++ b/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd @@ -23,63 +23,99 @@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION CALL ..\svn-config.cmd IF ERRORLEVEL 1 EXIT /B 1 -svnversion . /1.6.x | find "S" > nul: -IF ERRORLEVEL 1 ( - ECHO --- Building 1.6.x: Skipping bindings --- - EXIT /B 0 +IF "%SVN_BRANCH%" LEQ "1.6.x" ( + ECHO --- Building 1.6.x or older: Skipping bindings --- + EXIT /B 0 ) -PATH %PATH%;%TESTDIR%\bin -SET result=0 +IF "%SVN_BRANCH%" LSS "1.9." ( + IF NOT EXIST "%TESTDIR%\bin" MKDIR "%TESTDIR%\bin" + xcopy /y /i ..\deps\release\bin\*.dll "%TESTDIR%\bin" -python win-tests.py -d -f fsfs --javahl "%TESTDIR%\tests" -IF ERRORLEVEL 1 ( - echo [python reported error %ERRORLEVEL%] - SET result=1 + PATH %TESTDIR%\bin;!PATH! ) -IF EXIST "%TESTDIR%\swig" rmdir /s /q "%TESTDIR%\swig" -mkdir "%TESTDIR%\swig\py-release\libsvn" -mkdir "%TESTDIR%\swig\py-release\svn" +SET result=0 + +if "%SVN_BRANCH%" GTR "1.9." ( -xcopy "release\subversion\bindings\swig\python\*.pyd" "%TESTDIR%\swig\py-release\libsvn\*.pyd" > nul: -xcopy "release\subversion\bindings\swig\python\libsvn_swig_py\*.dll" "%TESTDIR%\swig\py-release\libsvn\*.dll" > nul: -xcopy "subversion\bindings\swig\python\*.py" "%TESTDIR%\swig\py-release\libsvn\*.py" > nul: -xcopy "subversion\bindings\swig\python\svn\*.py" "%TESTDIR%\swig\py-release\svn\*.py" > nul: + python win-tests.py -r -f fsfs --swig=python "%TESTDIR%\tests" -SET PYTHONPATH=%TESTDIR%\swig\py-release + IF ERRORLEVEL 1 ( + echo [Python tests reported error !ERRORLEVEL!] 1>&2 + SET result=1 + ) ELSE ( + echo Done. + ) -python subversion\bindings\swig\python\tests\run_all.py -IF ERRORLEVEL 1 ( - echo [Python reported error %ERRORLEVEL%] - SET result=1 -) +) ELSE ( + IF EXIST "%TESTDIR%\swig" rmdir /s /q "%TESTDIR%\swig" + mkdir "%TESTDIR%\swig\py-release\libsvn" + mkdir "%TESTDIR%\swig\py-release\svn" -mkdir "%TESTDIR%\swig\pl-release\SVN" -mkdir "%TESTDIR%\swig\pl-release\auto\SVN" -xcopy subversion\bindings\swig\perl\native\*.pm "%TESTDIR%\swig\pl-release\SVN" > nul: -pushd release\subversion\bindings\swig\perl\native -for %%i in (*.dll) do ( - set name=%%i - mkdir "%TESTDIR%\swig\pl-release\auto\SVN\!name:~0,-4!" - xcopy "!name:~0,-4!.*" "%TESTDIR%\swig\pl-release\auto\SVN\!name:~0,-4!" > nul: - xcopy /y "_Core.dll" "%TESTDIR%\swig\pl-release\auto\SVN\!name:~0,-4!" > nul: + xcopy "release\subversion\bindings\swig\python\*.pyd" "%TESTDIR%\swig\py-release\libsvn\*.pyd" > nul: + xcopy "release\subversion\bindings\swig\python\libsvn_swig_py\*.dll" "%TESTDIR%\swig\py-release\libsvn\*.dll" > nul: + xcopy "subversion\bindings\swig\python\*.py" "%TESTDIR%\swig\py-release\libsvn\*.py" > nul: + xcopy "subversion\bindings\swig\python\svn\*.py" "%TESTDIR%\swig\py-release\svn\*.py" > nul: + + SET PYTHONPATH=%TESTDIR%\swig\py-release + + python subversion\bindings\swig\python\tests\run_all.py + IF ERRORLEVEL 1 ( + echo [Python tests reported error !ERRORLEVEL!] 1>&2 + REM SET result=1 + ) ELSE ( + echo Done. + ) ) -popd -svnversion . /1.7.x | find "S" > nul: -IF ERRORLEVEL 1 ( - ECHO --- Building 1.7.x: Skipping perl tests --- - EXIT /B %result% +if "%SVN_BRANCH%" GTR "1.9." ( + + python win-tests.py -d -f fsfs --swig=perl "%TESTDIR%\tests" + + IF ERRORLEVEL 1 ( + echo [Perl tests reported error !ERRORLEVEL!] 1>&2 + SET result=1 + ) ELSE ( + echo Done. + ) + +) ELSE IF "%SVN_BRANCH%" GTR "1.8." ( + + mkdir "%TESTDIR%\swig\pl-debug\SVN" + mkdir "%TESTDIR%\swig\pl-debug\auto\SVN" + xcopy subversion\bindings\swig\perl\native\*.pm "%TESTDIR%\swig\pl-debug\SVN" > nul: + pushd debug\subversion\bindings\swig\perl\native + for %%i in (*.dll) do ( + set name=%%i + mkdir "%TESTDIR%\swig\pl-debug\auto\SVN\!name:~0,-4!" + xcopy "!name:~0,-4!.*" "%TESTDIR%\swig\pl-debug\auto\SVN\!name:~0,-4!" > nul: + xcopy /y "_Core.dll" "%TESTDIR%\swig\pl-debug\auto\SVN\!name:~0,-4!" > nul: + ) + popd + + + SET PERL5LIB=%PERL5LIB%;%TESTDIR%\swig\pl-debug; + pushd subversion\bindings\swig\perl\native + perl -MExtUtils::Command::MM -e "test_harness()" t\*.t + IF ERRORLEVEL 1 ( + echo [Test runner reported error !ERRORLEVEL!] + REM SET result=1 + ) + popd ) -SET PERL5LIB=%PERL5LIB%;%TESTDIR%\swig\pl-release; -pushd subversion\bindings\swig\perl\native -perl -MExtUtils::Command::MM -e test_harness() t\*.t -IF ERRORLEVEL 1 ( - echo [Perl reported error %ERRORLEVEL%] - SET result=1 +if "%SVN_BRANCH%" GTR "1.9." ( + python win-tests.py -d -f fsfs --swig=ruby "%TESTDIR%\tests" + + IF ERRORLEVEL 1 ( + echo [Ruby tests reported error !ERRORLEVEL!] 1>&2 + REM SET result=1 + ) ELSE ( + echo Done. + ) + + taskkill /im svnserve.exe /f ) -popd exit /b %result% |