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

Re: questions about test framework

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-09-27 12:34:45 CEST

Brian Denny wrote:

>i am trying to write some tests for Issue 870.
>basically i need to:
>- add an executable file, and check that the svn:executable
> property was set;
>- import an executable file and check the same thing.
>i have two different ideas about where these tests should live.
>1. in prop_tests.py, since they do after all deal with properties
>2. in schedule_tests.py and commit_tests.py, since they deal with
> adding and importing respectively.
>opinions on this?
Well, first of all, those will have to be platform-specific tests. We
don't have any of those yet. The funny thing is, we don't seem to have
import tests, either, except the ones implicit in every test when the
greek tre is created.

What do you say to this: For the import case, you can modify
main.greek_state to contain an executable file (e.g., iota), and add a
test to basic_tests.py (basic_check_executable?) that checks if the
svn:executable prop is set. For the add case, the test should go into

Both of these tests should be skipped on anything but Unix.

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 27 12:35:40 2002

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.