Changeset 1601


Ignore:
Timestamp:
Sep 6, 2015, 4:45:30 AM (2 years ago)
Author:
peter
Message:

allow test to require a wc in different rev than HEAD.

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/init.sh.in

    r1600 r1601  
    44
    55# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    6 # Copyright (C) 2009, 2010, 2011, 2012 Peter Johansson
     6# Copyright (C) 2009, 2010, 2011, 2012, 2015 Peter Johansson
    77#
    88# This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    7878    repo*)
    7979      if test x$test_repo_found = xyes; then
    80         $shell ${svn_update} || exit_fail;
     80        # test can set wc_revision if it requires different rev than HEAD
     81        $shell ${svn_update} $wc_revision || exit_fail;
    8182      else
    8283        exit_skip "no test repository available";
  • trunk/test/svn_update.sh.in

    r1515 r1601  
    55
    66# Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    7 # Copyright (C) 2009, 2010, 2011 Peter Johansson
     7# Copyright (C) 2009, 2010, 2011, 2015 Peter Johansson
    88#
    99# This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2222# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
    2323
     24if test $# -eq 1; then
     25  wc_revision="-r $1"
     26else
     27# default revision is HEAD
     28  wc_revision="-r HEAD"
     29fi
     30
    2431test -z "$SVN" && SVN="svn --non-interactive"
    2532rootdir=toy_project
    2633
    2734if test ! -e $rootdir; then
    28                 repo="@abs_test_repo@";
    29                 $SVN checkout file://$repo/trunk $rootdir || exit 1;
     35        repo="@abs_test_repo@";
     36        $SVN checkout file://$repo/trunk $wc_revision $rootdir || exit 1;
    3037fi
    3138
    3239$SVN revert --recursive $rootdir || exit 1
    33 $SVN update $rootdir || exit 1
     40$SVN update $rootdir $wc_revision || exit 1
    3441exit 0
Note: See TracChangeset for help on using the changeset viewer.