summaryrefslogtreecommitdiffstats
path: root/test/subdir.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/subdir.test')
-rw-r--r--test/subdir.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/subdir.test b/test/subdir.test
index 7310616..7fb28e1 100644
--- a/test/subdir.test
+++ b/test/subdir.test
@@ -58,5 +58,24 @@
> @@ -1 +0,0 @@
> -yet another file
+ # Test diff called with multiple file names, from a subdirectory
+ $ quilt diff --no-index -p ab file file2 no
+ > --- a/subdir/file
+ > +++ b/subdir/file
+ > @@ -1 +1 @@
+ > -old file
+ > +new contents
+ > --- /dev/null
+ > +++ b/subdir/file2
+ > @@ -0,0 +1 @@
+ > +another file
+
+ # Test diff called with "./" file name prefix, from a subdirectory
+ $ quilt diff --no-index -p ab ./file3 ./no
+ > --- a/subdir/file3
+ > +++ /dev/null
+ > @@ -1 +0,0 @@
+ > -yet another file
+
$ quilt refresh
> Refreshed patch %{_P}test.patch