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/check_repo_status.sh.in

    r847 r952  
    2121# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
    2222
    23 wc_found="@wc_found@"
    24 if test $wc_found = "no"; then
    25     exit 77;
    26 fi
     23required="wc"
     24. ./init.sh
    2725
     26set -e
    2827
    2928# assume test repository and svndigest repository are synchronized
     
    3130
    3231# retrieve last revision in test repository
    33 rev=`cat @srcdir@/repo/db/current`
     32rev=`cat ${repo}/db/current`
    3433rev=${rev%% *}
    3534
    3635# check if the last test revision is a part of the svndigest repository
    37 status_return=`svn status -v @srcdir@/repo/db/revs/$rev`
     36status_return=`$SVN status -v ${repo}/db/revs/$rev`
    3837# logic: (file does not exist) || (file exists but not in revision control)
    3938if [[ ${#status_return} -eq 0 || ${status_return:0:1} = "?" ]]; then
     
    5453    echo "ERROR:    svn add test/repo/db/revs/$rev test/repo/db/revprops/$rev"
    5554    let rev--
    56     status_return=`svn status -v @srcdir@/repo/db/revs/$rev`
     55    status_return=`$SVN status -v ${repo}/db/revs/$rev`
    5756done
    5857
    5958if [ $repository_status -eq 0 ]; then
    60     exit -1;    # test failed.
     59    exit_fail;    # test failed.
    6160fi
     61
     62exit_success
Note: See TracChangeset for help on using the changeset viewer.