[ditrack commit] r2408 - in src/trunk/tests: . cache

Vlad Skvortsov vss at 73rus.com
Thu Feb 14 12:08:27 PST 2008


Hmm, I had hard time understanding what exactly is tested here and how. 
Can you please add some comments?


oleg at ditrack.org wrote:
> Author: oleg
> Date: 2007-12-07 11:50:27 -0800 (Fri, 07 Dec 2007)
> New Revision: 2408
>
> Added:
>    src/trunk/tests/cache/
>    src/trunk/tests/cache/test.py
> Log:
> added test case for WC cache
>
>
> Added: src/trunk/tests/cache/test.py
> ===================================================================
> --- src/trunk/tests/cache/test.py	                        (rev 0)
> +++ src/trunk/tests/cache/test.py	2007-12-07 19:50:27 UTC (rev 2408)
> @@ -0,0 +1,42 @@
> +#! /usr/bin/env python
> +#
> +# Copyright (c) 2006-2007 The DITrack Project, www.ditrack.org.
> +# All rights reserved.
> +#
> +# $Id: test.py 2392 2007-11-26 05:13:11Z vss $
> +# $HeadURL: https://svn.xiolabs.com/ditrack/src/trunk/tests/cmd-update.tc/test.py $
> +#
> +# Redistribution and use in source and binary forms, with or without
> +# modification, are permitted provided that the following conditions are met:
> +#
> +#  * Redistributions of source code must retain the above copyright notice,
> +# this list of conditions and the following disclaimer.
> +#  * Redistributions in binary form must reproduce the above copyright notice,
> +# this list of conditions and the following disclaimer in the documentation
> +# and/or other materials provided with the distribution.
> +#
> +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
> +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
> +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
> +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
> +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
> +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
> +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
> +# POSSIBILITY OF SUCH DAMAGE.
> +#
> +
> +import dttest
> +
> +tc = dttest.testcase(repo="a.gz")
> +tc.new_issue(local=False)
> +tc.dt(["act", "-a", "close:fixed", "1"])
> +tc.dt(["ls"], outfile="ls.expected")
> +
> +tc.wc_replace(rev=-2)
> +tc.dt(["ls"]) # for creating cache file
> +
> +tc.wc_replace(preserve_dotditrack=True)
> +tc.dt(["ls"], expected_stdout="ls.expected")
>
>
> Property changes on: src/trunk/tests/cache/test.py
> ___________________________________________________________________
> Name: svn:executable
>    + *
>
> _______________________________________________
> Commit mailing list
> Commit at lists.ditrack.org
> http://lists.ditrack.org/mailman/listinfo/commit
>   


-- 
Vlad Skvortsov, vss at 73rus.com, http://vss.73rus.com



More information about the Dev mailing list