summaryrefslogtreecommitdiffstats
path: root/test/dir-a-b.test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2006-06-27 20:20:58 +0000
committerAndreas Gruenbacher <agruen@suse.de>2006-06-27 20:20:58 +0000
commitcdc2a8419fb367c46447e183153e7f6ed2317be1 (patch)
treed6bb9e797f1f1b3a49a48f248bc6fbf7d6b8de4d /test/dir-a-b.test
parentf13ba80fd3cbb8866459fe900758da2061b93e05 (diff)
downloadquilt-cdc2a8419fb367c46447e183153e7f6ed2317be1.tar.gz
- quilt/push.in: Fix a bug introduced with the -p ab support.
- test/dir-a-b.test: Add a regression test case for this fix.
Diffstat (limited to 'test/dir-a-b.test')
-rw-r--r--test/dir-a-b.test43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/dir-a-b.test b/test/dir-a-b.test
new file mode 100644
index 0000000..01f0287
--- /dev/null
+++ b/test/dir-a-b.test
@@ -0,0 +1,43 @@
+ $ rm -rf d
+ $ mkdir -p d/patches
+ $ cd d
+
+ $ echo a > test.txt
+
+ $ cat > patches/ab.diff
+ < --- a/test.txt
+ < +++ b/test.txt
+ < @@ -1 +1 @@
+ < -a
+ < +b
+
+ $ echo "ab.diff -pab" > patches/series
+
+ $ quilt push -q
+ > Applying patch patches/ab.diff
+ > Now at patch patches/ab.diff
+
+ $ quilt diff --no-index
+ > --- a/test.txt
+ > +++ b/test.txt
+ > @@ -1 +1 @@
+ > -a
+ > +b
+
+ $ rm patches/ab.diff
+ $ quilt refresh --no-index
+ > Refreshed patch patches/ab.diff
+
+ $ cat patches/ab.diff
+ > --- a/test.txt
+ > +++ b/test.txt
+ > @@ -1 +1 @@
+ > -a
+ > +b
+
+ $ quilt pop -qR
+ > Removing patch patches/ab.diff
+ > No patches applied
+
+ $ cd ..
+ $ rm -rf d