quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH] hard-linked-patch.test: Test the header command


From: Jean Delvare
Subject: [Quilt-dev] [PATCH] hard-linked-patch.test: Test the header command
Date: Thu, 12 Mar 2015 11:09:42 +0100

Extend the hard-linked patch test case to also check the behavior
when updating the header of such a patch.
---
 test/hard-linked-patch.test |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

--- a/test/hard-linked-patch.test
+++ b/test/hard-linked-patch.test
@@ -34,3 +34,27 @@ $ cat hardlink
 > @@ -1 +1 @@
 > -a
 > +b
+
+Same goes for a patch header update.
+
+$ rm -f hardlink
+$ ln patches/patch hardlink
+
+$ quilt header -r
+< c is so much better than a
+> Replaced header of patch patches/patch
+
+$ cat patches/patch
+> c is so much better than a
+> --- file.orig
+> +++ file
+> @@ -1 +1 @@
+> -a
+> +c
+
+$ cat hardlink
+> --- file.orig
+> +++ file
+> @@ -1 +1 @@
+> -a
+> +c

-- 
Jean Delvare
SUSE L3 Support




reply via email to

[Prev in Thread] Current Thread [Next in Thread]