summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/empty.test39
-rw-r--r--test/missing.test5
2 files changed, 43 insertions, 1 deletions
diff --git a/test/empty.test b/test/empty.test
new file mode 100644
index 0000000..fb57ee7
--- /dev/null
+++ b/test/empty.test
@@ -0,0 +1,39 @@
+ $ rm -rf d
+ $ mkdir -p d/patches
+ $ cd d
+
+ $ cat > patches/series
+ < empty1.diff
+ < empty2.diff
+ $ touch patches/empty1.diff patches/empty2.diff
+
+ $ quilt push -qa
+ > Applying patch %{P}empty1.diff
+ > Patch %{P}empty1.diff appears to be empty; applied
+ > Applying patch %{P}empty2.diff
+ > Patch %{P}empty2.diff appears to be empty; applied
+ > Now at patch %{P}empty2.diff
+
+ $ quilt rename empty3.diff
+ > Patch %{P}empty2.diff renamed to %{P}empty3.diff
+
+ $ quilt pop -qa
+ > Patch %{P}empty3.diff appears to be empty, removing
+ > Patch %{P}empty1.diff appears to be empty, removing
+ > No patches applied
+
+ $ quilt new empty_new.diff
+ > Patch %{P}empty_new.diff is now on top
+
+ $ quilt pop -q
+ > Patch %{P}empty_new.diff appears to be empty, removing
+ > No patches applied
+
+ $ quilt delete empty_new.diff
+ > Removed patch %{P}empty_new.diff
+
+ $ quilt rename -P empty3.diff empty_new.diff
+ > Patch %{P}empty3.diff renamed to %{P}empty_new.diff
+
+ $ cd ..
+ $ rm -rf d
diff --git a/test/missing.test b/test/missing.test
index a896e1f..d507671 100644
--- a/test/missing.test
+++ b/test/missing.test
@@ -13,8 +13,11 @@
> Patch patches/missing2.diff does not exist; applied empty patch
> Now at patch patches/missing2.diff
+ $ quilt rename missing3.diff
+ > Patch %{P}missing2.diff renamed to %{P}missing3.diff
+
$ quilt pop -qa
- > Patch patches/missing2.diff appears to be empty, removing
+ > Patch %{P}missing3.diff appears to be empty, removing
> Patch patches/missing1.diff appears to be empty, removing
> No patches applied