[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 14 Nov 2009 02:15:12 +0200 (Jerusalem Standard Time)

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
    @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=2417804
Received on 2009-11-14 01:15:58 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.