Ignore:
Timestamp:
Dec 6, 2009, 8:42:30 AM (12 years ago)
Author:
Peter Johansson
Message:

introducing init.sh and using it. Added a README file in test directory including info on how to use init.sh. refs #418

File:
1 edited

Legend:

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

    r938 r952  
    2222# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
    2323
    24 abs_top_builddir=@abs_top_builddir@
    25 abs_builddir=@abs_builddir@
    26 # this test has its own wc since it modifies wc
    27 rootdir=$abs_builddir/.toy_project2
    28 repo="@abs_test_repo@";
     24required="repo"
    2925
    30 test_repo_found=@test_repo_found@
    31 if test x$test_repo_found != xyes; then
    32     exit 77;
    33 fi
    34 
    35 while test $# -gt 0; do
    36     case "$1" in
    37     -v)
    38     VERBOSE=1
    39     ;;
    40     esac
    41     shift
    42 done
    43 
    44 if test -z "$VERBOSE"; then
    45   exec > /dev/null
    46 fi
     26. ./init.sh || exit 1
    4727
    4828# exit if cmd fails
    4929set -e
    5030
     31# this test has its own wc since it modifies wc
     32rootdir=$abs_builddir/.toy_project2
     33
    5134rm -rf $rootdir
    52 svn co file://$repo/trunk $rootdir -r 45
    53 svn update $rootdir/lib
     35$SVN co ${repo_url}/trunk $rootdir -r 45
     36$SVN update $rootdir/lib
    5437# cannot use old config file because it's invalid
    55 svn update $rootdir/.svndigest
     38$SVN update $rootdir/.svndigest
    5639
    57 $abs_top_builddir/bin/svndigest -r $rootdir --copyright \
    58 --ignore-cache --no-report --verbose
     40$SVNDIGEST -r $rootdir --copyright --ignore-cache --no-report || exit_fail
    5941
    6042# remove wc to avoid someone being tempted to modify it
    6143rm -rf $rootdir
     44
     45exit_success;
Note: See TracChangeset for help on using the changeset viewer.