summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-07-29 16:58:43 +0000
committerJean Delvare <khali@linux-fr.org>2005-07-29 16:58:43 +0000
commit3c737d3b2cfbf0f5e8094583b8eec2962d87ff3f (patch)
tree89f53a82b63cc789be31fb03d3d6d0778211b024
parentaa61210d134aef4d849d109f0b34b236686f9cb0 (diff)
downloadquilt-3c737d3b2cfbf0f5e8094583b8eec2962d87ff3f.tar.gz
- test/delete.test: New test case for the delete command.
-rw-r--r--quilt.changes5
-rw-r--r--test/delete.test61
2 files changed, 66 insertions, 0 deletions
diff --git a/quilt.changes b/quilt.changes
index 5b3191c..6fba719 100644
--- a/quilt.changes
+++ b/quilt.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Fri Jul 29 18:56:58 CEST 2005 - khali@linux-fr.org
+
+- test/delete.test: New test case for the delete command.
+
+-------------------------------------------------------------------
Fri Jul 29 18:49:41 CEST 2005 - khali@linux-fr.org
- Makefile.in: add test/Makefile and test/test.quiltrc to SRC,
diff --git a/test/delete.test b/test/delete.test
new file mode 100644
index 0000000..25f3185
--- /dev/null
+++ b/test/delete.test
@@ -0,0 +1,61 @@
+Test the delete command.
+
+ $ mkdir d
+ $ cd d
+
+ $ cat > test.txt
+ < Calling pci_match_id() would be more feasible.
+
+ $ quilt new test1
+ > Patch %{P}test1 is now on top
+
+ $ quilt add test.txt
+ > File test.txt added to patch %{P}test1
+
+ $ cat > test.txt
+ < Try the following patch instead.
+
+ $ quilt refresh
+ > Refreshed patch %{P}test1
+
+ $ quilt new test2
+ > Patch %{P}test2 is now on top
+
+ $ quilt add test.txt
+ > File test.txt added to patch %{P}test2
+
+ $ cat > test.txt
+ < Ok, that's fine with me if you want to do that instead.
+
+ $ quilt refresh
+ > Refreshed patch %{P}test2
+
+ $ quilt pop
+ > Removing patch %{P}test2
+ > Restoring test.txt
+ >
+ > Now at patch %{P}test1
+
+ $ quilt series
+ > %{P}test1
+ > %{P}test2
+
+ $ quilt delete -n
+ > Removed patch %{P}test2
+
+ $ quilt series
+ > %{P}test1
+
+ $ quilt pop
+ > Removing patch %{P}test1
+ > Restoring test.txt
+ >
+ > No patches applied
+
+ $ quilt delete test1
+ > Removed patch %{P}test1
+
+ $ quilt series
+
+ $ cd ..
+ $ rm -rf d