vcs-svn: skeleton of an svn delta parser
[git/mingw.git] / t / t9011-svn-da.sh
blobee0c1e2087cf6c0d4061f9f30fa38b17e16827e8
1 #!/bin/sh
3 test_description='test parsing of svndiff0 files
5 Using the "test-svn-fe -d" helper, check that svn-fe correctly
6 interprets deltas using various facilities (some from the spec,
7 some only learned from practice).
9 . ./test-lib.sh
11 >empty
12 printf foo >preimage
14 test_expect_success 'reject empty delta' '
15 test_must_fail test-svn-fe -d preimage empty 0
18 test_expect_success 'delta can empty file' '
19 printf "SVNQ" | q_to_nul >clear.delta &&
20 test-svn-fe -d preimage clear.delta 4 >actual &&
21 test_cmp empty actual
24 test_expect_success 'reject svndiff2' '
25 printf "SVN\002" >bad.filetype &&
26 test_must_fail test-svn-fe -d preimage bad.filetype 4
29 test_expect_failure 'one-window empty delta' '
30 printf "SVNQ%s" "QQQQQ" | q_to_nul >clear.onewindow &&
31 test-svn-fe -d preimage clear.onewindow 9 >actual &&
32 test_cmp empty actual
35 test_done