diff options
author | Raphaƫl Hertzog <hertzog@debian.org> | 2009-12-30 22:19:09 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2010-01-23 17:51:22 +0100 |
commit | b39ce8c535f50e2c01ed171c223b503809b2589f (patch) | |
tree | 0752befdaf1faee6776c7d3a3e5839777af994c5 /test | |
parent | ebbbdc87e806debd7c2bfb6196fb040be877dd61 (diff) | |
download | quilt-b39ce8c535f50e2c01ed171c223b503809b2589f.tar.gz |
Add non-regression test to verify that quilt remembers QUILT_PATCHES/QUILT_SERIES
Diffstat (limited to 'test')
-rw-r--r-- | test/remember-locations.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/remember-locations.test b/test/remember-locations.test new file mode 100644 index 0000000..c1b340c --- /dev/null +++ b/test/remember-locations.test @@ -0,0 +1,30 @@ + $ rm -rf d + $ mkdir -p d/my/changes + $ cd d + + $ export QUILT_PATCHES=my/changes + $ export QUILT_SERIES=patchlist + $ quilt new mychange1 + > Patch my/changes/mychange1 is now on top + $ unset QUILT_PATCHES + $ unset QUILT_SERIES + $ cat .pc/.quilt_patches + > my/changes + $ cat .pc/.quilt_series + > patchlist + $ cat my/changes/patchlist + > mychange1 + + # Verify that the custom location is still used even + # if QUILT_PATCHES is not set + $ quilt new mychange2 + > Patch my/changes/mychange2 is now on top + # Verify that the root directory can be identified even + # without QUILT_PATCHES with the .pc directory + $ cd my + $ quilt applied + > ../my/changes/mychange1 + > ../my/changes/mychange2 + + $ cd ../.. + $ rm -rf d |