summaryrefslogtreecommitdiff
path: root/exporters/darcs/t/test-git-d2x.sh
blob: 364edec90ef36fafa21a11b5f935bdddf62d775d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
. ./lib.sh

create_darcs test --old-fashioned-inventory

rm -rf test.git
if [ "$1" != "--stdout" ]; then
	d2x -f git test
	diff_git test || die "initial conversion differs"
	upd_file_darcs test file2 upd_contents
	d2x -f git test
	diff_git test || die "update differs"
	upd_file_darcs test hungarian.gif "binary to text"
	d2x -f git test
	diff_git test || die "update2 differs"
	d2x -f git test
	diff_git test || die "update3 (noop) differs"
else
	darcs-fast-export test
fi