summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2006-02-11 14:21:08 +0000
committerAndreas Gruenbacher <agruen@suse.de>2006-02-11 14:21:08 +0000
commit639f2f9c28cf0e9badb2b94373e668777a900c12 (patch)
tree20b464ef3de301b02cca6f86e2ef6a8a272c1024 /test
parente40b8404ddefe21f1f8a74e0984d91434e826a49 (diff)
downloadquilt-639f2f9c28cf0e9badb2b94373e668777a900c12.tar.gz
- quilt/setup.in: Add --path option for defining a tarball search
path. Fix a bug in check_for_existing_files. When a series file is given as an argument, symlink to that series file in the same way as we symlink to the patches. Improve the symlink creation algorithm. Add testcase test/setup.test.
Diffstat (limited to 'test')
-rw-r--r--test/setup.test52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/setup.test b/test/setup.test
new file mode 100644
index 0000000..eed1de2
--- /dev/null
+++ b/test/setup.test
@@ -0,0 +1,52 @@
+$ rm -rf d
+$ mkdir -p d/dir
+$ cd d
+$ echo 1 > dir/foo.orig
+$ echo 2 > dir/foo
+$ diff -u dir/foo.orig dir/foo > foo.diff
+$ mv dir/foo.orig dir/foo
+$ tar cf - dir | gzip > dir.tar.gz
+$ rm -rf dir
+$ cat > series
+< # Source: dir.tar.gz
+< # Patchdir: dir
+< #
+< foo.diff -p1
+$ quilt setup series
+> Unpacking archive ./dir.tar.gz
+$ cd dir
+$ ls -l patches series | sed -e 's:.* -> ::'
+> ..
+> ../series
+$ quilt push -qa
+> Applying patch patches/foo.diff
+> Now at patch patches/foo.diff
+$ cd ..
+$ rm -rf dir
+$ quilt setup -d other series
+> Unpacking archive ./dir.tar.gz
+$ cd other/dir
+$ ls -l patches series | sed -e 's:.* -> ::'
+> ../..
+> ../../series
+$ quilt push -qa
+> Applying patch patches/foo.diff
+> Now at patch patches/foo.diff
+$ cd ../..
+$ rm -rf other
+$ mkdir dir1
+$ mv foo.diff series dir1
+$ cd dir1
+$ quilt setup -d ../other series
+> File dir.tar.gz not found in search path
+$ quilt setup --path .. -d ../other series
+> Unpacking archive ../dir.tar.gz
+$ cd ../other/dir
+$ ls -l patches series | sed -e 's:.* -> ::'
+> ../../dir1
+> ../../dir1/series
+$ quilt push -qa
+> Applying patch patches/foo.diff
+> Now at patch patches/foo.diff
+$ cd ..
+$ rm -rf d