summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-01-28 00:20:56 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-01-28 00:20:56 +0000
commitddce6706ba78d3cbba784b34cfcbef5a5361ccce (patch)
tree8ab1bd94b06c6e42f0fc1b97e2cb3a9966c2e884 /test
parentc8f14351198fc69541f17aae56937b79c8d9a29c (diff)
downloadquilt-ddce6706ba78d3cbba784b34cfcbef5a5361ccce.tar.gz
- Add support for working in subdirectories of the base directory
that contains patches/ and .pc/. In the unlikely case that quilt shall operate in the sub-directory itself, it is sufficient to create a patches/ directory there. - Add a small testcase for subdirectory support.
Diffstat (limited to 'test')
-rw-r--r--test/subdir.test73
1 files changed, 73 insertions, 0 deletions
diff --git a/test/subdir.test b/test/subdir.test
new file mode 100644
index 0000000..2763b8f
--- /dev/null
+++ b/test/subdir.test
@@ -0,0 +1,73 @@
+ $ mkdir d
+ $ cd d
+
+ $ mkdir subdir
+ $ cat > subdir/file
+ < old file
+
+ $ quilt new test
+ > Patch test is now on top
+
+ $ quilt add subdir/file
+ > File subdir/file added to patch test
+
+ $ cat > subdir/file
+ < new contents
+
+ This creates the patches/ directory:
+
+ $ quilt refresh
+ > Refreshed patch test
+
+ $ cd subdir
+ $ quilt add file2
+ > File subdir/file2 added to patch test
+
+ $ cat > file2
+ < another file
+
+ $ cat > file3
+ < yet another file
+
+ $ quilt add file3
+ > File subdir/file3 added to patch test
+
+ $ rm file3
+ $ quilt files
+ > subdir/file
+ > subdir/file2
+ > subdir/file3
+
+ $ quilt diff | sed -e "s/\\t.*//"
+ > Index: d/subdir/file
+ > ===================================================================
+ > --- d.orig/subdir/file
+ > +++ d/subdir/file
+ > @@ -1 +1 @@
+ > -old file
+ > +new contents
+ > Index: d/subdir/file2
+ > ===================================================================
+ > --- d.orig/subdir/file2
+ > +++ d/subdir/file2
+ > @@ -0,0 +1 @@
+ > +another file
+ > Index: d/subdir/file3
+ > ===================================================================
+ > --- d.orig/subdir/file3
+ > +++ d/subdir/file3
+ > @@ -1 +0,0 @@
+ > -yet another file
+
+ $ quilt refresh
+ > Refreshed patch test
+
+ $ quilt remove file2
+ > File subdir/file2 removed from patch test
+
+ $ quilt files
+ > subdir/file
+ > subdir/file3
+
+ $ cd ../..
+ $ rm -rf d