~ubuntu-branches/ubuntu/natty/quilt/natty

« back to all changes in this revision

Viewing changes to test/patch-wrapper.test

  • Committer: Bazaar Package Importer
  • Author(s): Martin Quinson
  • Date: 2006-11-23 16:17:11 UTC
  • mfrom: (2.1.6 feisty)
  • Revision ID: james.westby@ubuntu.com-20061123161711-b17ess0ls8t959ca
Tags: 0.45-6
* [debian/patches/override_mail_sender_in_testsuite]
  Fix the patch to catch all occurences of 'quilt mail' since each of them
  will cause a FTBFS on misconfigured hosts (thanks to Goswin Brederlow).
  (Closes: #397285, #395482, #393985) I hope, at least.
  
* [debian/patches/doc_improvement]
  Fix some more typos in the manpages
  (Closes: #386548, #395447)

* [debian/control]
   Add procmail to suggest list to help users locating the 'formail' tool.
   (Closes: #396093)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$ rm -rf d
 
2
$ mkdir -p d/somewhere
 
3
$ cd d
 
4
 
 
5
$ cat > foo.orig
 
6
< 1
 
7
<
 
8
< 3
 
9
<
 
10
< 5
 
11
$ sed -e 's/3/3a/' foo.orig > foo
 
12
$ diff -u foo.orig foo > foo.diff
 
13
$ mv foo.orig foo
 
14
 
 
15
$ patch-wrapper -s -p0 < foo.diff
 
16
$ quilt pop -q
 
17
> Removing patch patches/foo.diff
 
18
> No patches applied
 
19
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
 
20
 
 
21
$ patch-wrapper --backup -B xxx/ -s -p0 < foo.diff
 
22
$ find xxx -type f
 
23
> xxx/foo
 
24
$ quilt pop -q
 
25
> Removing patch patches/foo.diff
 
26
> No patches applied
 
27
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
 
28
 
 
29
$ patch-wrapper -s -p0 -i foo.diff
 
30
$ quilt pop -q
 
31
> Removing patch patches/foo.diff
 
32
> No patches applied
 
33
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
 
34
 
 
35
$ patch-wrapper -p0 < foo.diff
 
36
> patching file foo
 
37
$ quilt pop -q
 
38
> Removing patch patches/foo.diff
 
39
> No patches applied
 
40
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
 
41
 
 
42
$ mv foo.diff somewhere/
 
43
$ patch-wrapper -p0 < somewhere/foo.diff
 
44
> patching file foo
 
45
$ quilt pop -q
 
46
> Removing patch patches/somewhere/foo.diff
 
47
> No patches applied
 
48
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
 
49
 
 
50
$ patch-wrapper -p0 -i somewhere/foo.diff
 
51
> patching file foo
 
52
$ quilt pop -q
 
53
> Removing patch patches/somewhere/foo.diff
 
54
> No patches applied
 
55
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
 
56
 
 
57
$ sed -e 's/5/5b/' foo > foo.new
 
58
$ mv foo.new foo
 
59
$ patch-wrapper -p0 < somewhere/foo.diff
 
60
> patching file foo
 
61
> Hunk #1 succeeded at 1 with fuzz 1.
 
62
$ cat foo.orig
 
63
> 1
 
64
>
 
65
> 3
 
66
>
 
67
> 5b
 
68
$ quilt pop -q
 
69
> Removing patch patches/somewhere/foo.diff
 
70
> No patches applied
 
71
$ rm -rf ${QUILT_PATCHES:-patches} ${QUILT_PC:-.pc}
 
72
 
 
73
$ cd ..
 
74
$ rm -rf d