You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vadim Chekan <ko...@gmail.com> on 2010/02/24 05:24:44 UTC

Unit test

Hi all,

I'm working on a patch for svn but I'm not sure either it passes unit tests.
When I run it as "make bdbcheck", fs-test fails test #23: create and
modify medium file.
But when I "cd subversion/tests/libsvn_fs && fs-test", then it passes
all rules (well, with one18th  XFAIL).
So the question is, what am I doing wrong?

Vadim.

P.S. fail error:
FAIL:  fs-test 23: create and modify medium file
../subversion/tests/libsvn_fs/fs-test.c:3593: (apr_err=160004)
../subversion/libsvn_fs_base/tree.c:1733: (apr_err=160004)
../subversion/libsvn_fs_base/tree.c:1862: (apr_err=160004)
../subversion/libsvn_fs_base/tree.c:1618: (apr_err=160004)
../subversion/libsvn_fs_base/dag.c:1528: (apr_err=160004)
../subversion/libsvn_fs_base/reps-strings.c:1574: (apr_err=160004)
../subversion/libsvn_delta/text_delta.c:333: (apr_err=160004)
../subversion/libsvn_fs_base/reps-strings.c:1019: (apr_err=160004)
../subversion/libsvn_fs_base/reps-strings.c:964: (apr_err=160004)
svn_tests: MD5 checksum mismatch on representation '5':
   expected:  f2b238a689c8faef434fb6d0577e299f
     actual:  237f5bb438769f3e29c1767f7d9988aa


-- 
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified

Re: Unit test

Posted by Julian Foad <ju...@wandisco.com>.
Vadim Chekan wrote:
> I'm working on a patch for svn but I'm not sure either it passes unit tests.
> When I run it as "make bdbcheck", fs-test fails test #23: create and
> modify medium file.
> But when I "cd subversion/tests/libsvn_fs && fs-test", then it passes
> all rules (well, with one18th  XFAIL).
> So the question is, what am I doing wrong?

Hi Vadim.

By guess-work, the only things I can think of to explain the difference
are:

  - the test is being run with different options when you run it in the
two different ways;

  - the test is picking up different libraries when you run it in the
two different ways;

If you want to post your patch and the exact commands you used to run
the tests (in both ways), and say what branch and revision of svn source
code you are patching, then I could try it and perhaps see the problem.

- Julian


> Vadim.
> 
> P.S. fail error:
> FAIL:  fs-test 23: create and modify medium file
> ../subversion/tests/libsvn_fs/fs-test.c:3593: (apr_err=160004)
> ../subversion/libsvn_fs_base/tree.c:1733: (apr_err=160004)
> ../subversion/libsvn_fs_base/tree.c:1862: (apr_err=160004)
> ../subversion/libsvn_fs_base/tree.c:1618: (apr_err=160004)
> ../subversion/libsvn_fs_base/dag.c:1528: (apr_err=160004)
> ../subversion/libsvn_fs_base/reps-strings.c:1574: (apr_err=160004)
> ../subversion/libsvn_delta/text_delta.c:333: (apr_err=160004)
> ../subversion/libsvn_fs_base/reps-strings.c:1019: (apr_err=160004)
> ../subversion/libsvn_fs_base/reps-strings.c:964: (apr_err=160004)
> svn_tests: MD5 checksum mismatch on representation '5':
>    expected:  f2b238a689c8faef434fb6d0577e299f
>      actual:  237f5bb438769f3e29c1767f7d9988aa
> 
> 


Re: Unit test

Posted by Vadim Chekan <ko...@gmail.com>.
On Wed, Feb 24, 2010 at 1:43 AM, Philip Martin
<ph...@wandisco.com> wrote:
> Most of the tests default to the FSFS backend, to get fs-test to use
> the BDB backend you need to use
>
>  $ ./fs-test --fs-type=bdb

Thanks Philip, I'll give it a try tonight.

Vadim.

Re: Unit test

Posted by Julian Foad <ju...@wandisco.com>.
Philip Martin wrote:
> Vadim Chekan <ko...@gmail.com> writes:
> 
> > I'm working on a patch for svn but I'm not sure either it passes unit tests.
> > When I run it as "make bdbcheck", fs-test fails test #23: create and
> > modify medium file.
> > But when I "cd subversion/tests/libsvn_fs && fs-test", then it passes
> > all rules (well, with one18th  XFAIL).
> 
> Most of the tests default to the FSFS backend, to get fs-test to use
> the BDB backend you need to use
> 
>   $ ./fs-test --fs-type=bdb

Ha, yes, that will be it.

- Julian


Re: Unit test

Posted by Philip Martin <ph...@wandisco.com>.
Vadim Chekan <ko...@gmail.com> writes:

> I'm working on a patch for svn but I'm not sure either it passes unit tests.
> When I run it as "make bdbcheck", fs-test fails test #23: create and
> modify medium file.
> But when I "cd subversion/tests/libsvn_fs && fs-test", then it passes
> all rules (well, with one18th  XFAIL).

Most of the tests default to the FSFS backend, to get fs-test to use
the BDB backend you need to use

  $ ./fs-test --fs-type=bdb

-- 
Philip