Debian Codegraph @

tests/recount8/run-test

raw
1 #!/bin/sh
2
3 # This is a recountdiff(1) testcase.
4 # Test: Fix bug with new files when git signature lines are present (issue #49).
5
6 . ${top_srcdir-.}/tests/common.sh
7
8 cat <<"EOF" > patch
9 diff --git a/test_file b/test_file
10 new file mode 100644
11 index 0000000..83db48f
12 --- /dev/null
13 +++ b/test_file
14 @@ -0,0 +1,3 @@
15 +line1
16 +line2
17 +line3
18 --
19 2.50.1
20
21 EOF
22
23 ${RECOUNTDIFF} patch > patch-recounted || exit 1
24 cat <<"EOF" | cmp - patch-recounted || exit 1
25 diff --git a/test_file b/test_file
26 new file mode 100644
27 index 0000000..83db48f
28 --- /dev/null
29 +++ b/test_file
30 @@ -0,0 +1,3 @@
31 +line1
32 +line2
33 +line3
34 --
35 2.50.1
36
37 EOF