Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
git/t/t9011-svn-da.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
35 lines (27 sloc)
853 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
test_description='test parsing of svndiff0 files | |
Using the "test-svn-fe -d" helper, check that svn-fe correctly | |
interprets deltas using various facilities (some from the spec, | |
some only learned from practice). | |
' | |
. ./test-lib.sh | |
>empty | |
printf foo >preimage | |
test_expect_success 'reject empty delta' ' | |
test_must_fail test-svn-fe -d preimage empty 0 | |
' | |
test_expect_success 'delta can empty file' ' | |
printf "SVNQ" | q_to_nul >clear.delta && | |
test-svn-fe -d preimage clear.delta 4 >actual && | |
test_cmp empty actual | |
' | |
test_expect_success 'reject svndiff2' ' | |
printf "SVN\002" >bad.filetype && | |
test_must_fail test-svn-fe -d preimage bad.filetype 4 | |
' | |
test_expect_failure 'one-window empty delta' ' | |
printf "SVNQ%s" "QQQQQ" | q_to_nul >clear.onewindow && | |
test-svn-fe -d preimage clear.onewindow 9 >actual && | |
test_cmp empty actual | |
' | |
test_done |