summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-07-15 01:52:01 +0000
committerAndreas Gruenbacher <agruen@suse.de>2004-07-15 01:52:01 +0000
commit9236bfd350982e7dcbb419ac74ad2b336a41b3f2 (patch)
tree5ff3b0d56b0daa84a07c033494d94bd081751b9f /test
parent588f00357effa26b731e90dd129954da4b877901 (diff)
downloadquilt-9236bfd350982e7dcbb419ac74ad2b336a41b3f2.tar.gz
- Add test case for permissions.v0.35
- Very minor translation updates. - Convert timestamps in changes file into UTC when generating the RPM changelog: the changelog does not understand timestamps. - Bump version to 0.35.
Diffstat (limited to 'test')
-rw-r--r--test/perms.test65
1 files changed, 65 insertions, 0 deletions
diff --git a/test/perms.test b/test/perms.test
new file mode 100644
index 0000000..83327c5
--- /dev/null
+++ b/test/perms.test
@@ -0,0 +1,65 @@
+ $ umask 022
+ $ mkdir d
+ $ cd d
+ $ echo foo > foo
+ $ chmod 704 foo
+ $ ls -l foo | awk '{ print $1,$8 }'
+ > -rwx---r-- foo
+
+ $ quilt new test.diff
+ > Patch %{P}test.diff is now on top
+
+ $ quilt add foo
+ > File foo added to patch %{P}test.diff
+
+ $ ls -l foo | awk '{ print $1,$8 }'
+ > -rwx---r-- foo
+
+ $ echo foobar > foo
+ $ quilt ref
+ > Refreshed patch %{P}test.diff
+
+ $ quilt new test2.diff
+ > Patch %{P}test2.diff is now on top
+
+ $ quilt add foo
+ > File foo added to patch %{P}test2.diff
+
+ $ chmod 702 foo
+ $ ls -l foo | awk '{ print $1,$8 }'
+ > -rwx----w- foo
+
+ $ echo foobaz > foo
+ $ quilt ref
+ > Refreshed patch %{P}test2.diff
+
+The permissions of foo as they were in patch2 are lost here (there is no
+way to preserve them in the patch). Quilt will restore the permissions of
+the backup file.
+
+ $ quilt pop -q
+ > Removing patch %{P}test2.diff
+ > Now at patch %{P}test.diff
+
+ $ ls -l foo | awk '{ print $1,$8 }'
+ > -rwx---r-- foo
+
+ $ quilt push -q
+ > Applying patch %{P}test2.diff
+ > Now at patch %{P}test2.diff
+
+ $ ls -l foo | awk '{ print $1,$8 }'
+ > -rwx---r-- foo
+
+ $ quilt pop -q
+ > Removing patch %{P}test2.diff
+ > Now at patch %{P}test.diff
+
+ $ quilt remove foo
+ > File foo removed from patch %{P}test.diff
+
+ $ ls -l foo | awk '{ print $1,$8 }'
+ > -rwx---r-- foo
+
+ $ cd ..
+ $ rm -rf d