summaryrefslogtreecommitdiffstats
path: root/test/comments.test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-04-09 02:03:17 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-04-09 02:03:17 +0000
commit1ce104d8a2487cc8f5d5b4ed351a3651392cb496 (patch)
tree2029ede5c4291ebe5c66a1e1b24a2ebec7bfbf60 /test/comments.test
parent424a9319932c7d9ff6a3fca54d76218c6e63a9e9 (diff)
downloadquilt-1ce104d8a2487cc8f5d5b4ed351a3651392cb496.tar.gz
- Never reorder files in patches. (Previously the file list
was run through (sort | uniq) to remove duplicate entries.) - Update test script to new format, and add regression test cases.
Diffstat (limited to 'test/comments.test')
-rw-r--r--test/comments.test47
1 files changed, 47 insertions, 0 deletions
diff --git a/test/comments.test b/test/comments.test
new file mode 100644
index 0000000..e1f7f0c
--- /dev/null
+++ b/test/comments.test
@@ -0,0 +1,47 @@
+Regresion test case: Empty lines in patch descriptions were
+accidentally removed.
+
+ $ mkdir d
+ $ cd d
+ $ mkdir patches
+ $ echo one > f
+ $ cat > patches/test.diff
+ < C1
+ <
+ < C3
+ <
+ < Index: f
+ < ===================================================================
+ < --- f.orig 2003-04-09 03:18:06.000000000 +0200
+ < +++ f 2003-04-09 03:18:09.000000000 +0200
+ < @@ -1 +1 @@
+ < -one
+ < +two
+
+ $ cat > patches/series
+ < test.diff -p0
+
+ $ quilt push
+ > Applying test
+ > patching file f
+ >
+ > Now at patch test
+
+ $ quilt refresh
+ > Refreshed patch test
+ $ sed -e "s/\\t.*//" patches/test.diff
+ > C1
+ >
+ > C3
+ >
+ > Index: f
+ > ===================================================================
+ > --- f.orig
+ > +++ f
+ > @@ -1 +1 @@
+ > -one
+ > +two
+
+ $ cd ..
+ $ rm -rf d
+