t / t9010-svn-fe.shon commit get_sha1_oneline: make callers prepare the commit list to traverse (84baa31)
   1#!/bin/sh
   2
   3test_description='check svn dumpfile importer'
   4
   5. ./lib-git-svn.sh
   6
   7test_dump() {
   8        label=$1
   9        dump=$2
  10        test_expect_success "$dump" '
  11                svnadmin create "$label-svn" &&
  12                svnadmin load "$label-svn" < "$TEST_DIRECTORY/$dump" &&
  13                svn_cmd export "file://$PWD/$label-svn" "$label-svnco" &&
  14                git init "$label-git" &&
  15                test-svn-fe "$TEST_DIRECTORY/$dump" >"$label.fe" &&
  16                (
  17                        cd "$label-git" &&
  18                        git fast-import < ../"$label.fe"
  19                ) &&
  20                (
  21                        cd "$label-svnco" &&
  22                        git init &&
  23                        git add . &&
  24                        git fetch "../$label-git" master &&
  25                        git diff --exit-code FETCH_HEAD
  26                )
  27        '
  28}
  29
  30test_dump simple t9135/svn.dump
  31
  32test_done