summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/edit.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/edit.test b/test/edit.test
new file mode 100644
index 0000000..5cc5dba
--- /dev/null
+++ b/test/edit.test
@@ -0,0 +1,20 @@
+$ rm -rf d
+$ mkdir -p d/patches d/subdir
+$ cd d
+
+$ cat > editor
+< #! /bin/sh
+< echo Editing $1
+< echo foo > $1
+$ chmod +x editor
+$ export EDITOR=%PWD/editor
+
+$ quilt new patch
+> Patch patches/patch is now on top
+$ cd subdir
+$ quilt edit foo
+> File subdir/foo added to patch ../patches/patch
+> Editing foo
+
+$ cd ../..
+$ rm -rf d