summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-04-29 07:32:05 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-04-29 07:32:05 +0000
commit916474e003209b04c79342dbb1fa4e5798b9109d (patch)
treeea85d38cca253e07fc8e2fccfdaff393651f4054 /test
parent76ed69fba87710857e8e8732fa24acd69eb27bc9 (diff)
downloadquilt-916474e003209b04c79342dbb1fa4e5798b9109d.tar.gz
- Add add-filename-check.test and trailing-ws.test test cases.
Diffstat (limited to 'test')
-rw-r--r--test/add-filename-check.test18
-rw-r--r--test/trailing-ws.test25
2 files changed, 43 insertions, 0 deletions
diff --git a/test/add-filename-check.test b/test/add-filename-check.test
new file mode 100644
index 0000000..b056d74
--- /dev/null
+++ b/test/add-filename-check.test
@@ -0,0 +1,18 @@
+$ mkdir d
+$ cd d
+$ mkdir patches
+$ quilt new test.diff
+>Patch patches/test.diff is now on top
+
+$ echo foo > foo
+$ quilt add foo
+> File foo added to patch patches/test.diff
+
+$ quilt add patches/bar
+> File `patches/bar' is located below `patches/'
+
+$ quilt add .pc/baz
+> File `.pc/baz' is located below `.pc/'
+
+$ cd ..
+$ rm -rf d
diff --git a/test/trailing-ws.test b/test/trailing-ws.test
new file mode 100644
index 0000000..4d63a4b
--- /dev/null
+++ b/test/trailing-ws.test
@@ -0,0 +1,25 @@
+ $ mkdir d
+ $ cd d
+
+ $ echo a > a
+ $ quilt new test.diff
+ > Patch patches/test.diff is now on top
+
+ $ quilt add a
+ > File a added to patch patches/test.diff
+
+ $ echo "a " > a
+ $ quilt refresh
+ > Warning: patches/test.diff adds trailing whitespace
+ > Refreshed patch patches/test.diff
+
+ $ grep '[ \t]$' patches/test.diff
+ > +a
+
+ $ quilt refresh --strip-trailing-whitespace
+ > Refreshed patch patches/test.diff
+
+ $ grep '[ \t]$' patches/test.diff
+
+ $ cd ..
+ $ rm -rf d