[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r40320 - trunk/subversion/tests/cmdline

From: Paul Burba <ptburba_at_gmail.com>
Date: Mon, 16 Nov 2009 17:13:34 -0500

On Fri, Nov 13, 2009 at 7:15 PM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> Paul Burba wrote on Fri, 13 Nov 2009 at 12:09 -0500:
>> Out of curiosity Lieven, if you want to run a single python test how
>> do you do it on Windows?  Maybe I've been going about this all wrong.
>
> In my trunk wc root (sibling to INSTALL and README), I have these files:
>
>    % cat runctest.bat
>    @echo off
>    SETLOCAL
>    SET LIBNAME=%1
>    SET TESTNAME=%2-test
>    SHIFT
>    IF "%CONFIG%" == "" SET CONFIG=Debug
>    pushd %~dp0\%CONFIG%\subversion\tests
>     libsvn_%LIBNAME%\%TESTNAME%.exe %*
>    popd
>    % cat runpytest.bat

cat? Are you using Powershell?

>    @echo off
>    SETLOCAL
>    SET TESTNAME=%1
>    if "%CONFIG%" == "" SET CONFIG=Debug
>    if not exist %CONFIG%\subversion\tests\cmdline mkdir %CONFIG%\subversion\tests\cmdline
>    pushd %CONFIG%\subversion\tests\cmdline
>    python %~dp0\subversion\tests\cmdline\%TESTNAME%_tests.py --cleanup --bin %~dp0\dist\bin %2 %3 %4 %5 %6 %7 %8 %9
>    popd
>    %
>
> so I just run
>
>    runpytest info 3 --verbose
>    runctest fs_fs fs-pack 4
>
> etc.
>
> Daniel
> (I also have unix versions of these... somewhere)
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2418688
Received on 2009-11-16 23:13:47 CET

This is an archived mail posted to the Subversion Dev mailing list.