diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-03-02 21:34:32 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-03-02 21:34:32 +0100 |
commit | 88899892aceb55b8098d745db19cdd077391ca4c (patch) | |
tree | b02ee19b3b467222f0a956bd41dd3be0f6b341f8 | |
parent | e052a2d22569f56a30285716da11b4e0a1eed052 (diff) | |
download | quilt-88899892aceb55b8098d745db19cdd077391ca4c.tar.gz |
test: Improve the coverage of unusual patch names
Test the top and previous of patches with unusual names. Also test a
few more unusual characters.
-rw-r--r-- | test/colon-in-patch-name.test | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/colon-in-patch-name.test b/test/colon-in-patch-name.test index 840bd5e..5af36c0 100644 --- a/test/colon-in-patch-name.test +++ b/test/colon-in-patch-name.test @@ -1,3 +1,6 @@ +# Test that patch names including special characters such as a colons, +# brackets or parentheses are properly handled by all quilt commands + $ mkdir patches $ quilt new "patch_with:strange[name]" @@ -37,11 +40,44 @@ $ quilt push -q "patch_with:strange[name]" > Applying patch patches/patch_with:strange[name] > Now at patch patches/patch_with:strange[name] +$ quilt top +> patches/patch_with:strange[name] + $ quilt rename "another:strange(name)" > Patch patches/patch_with:strange[name] renamed to patches/another:strange(name) +$ quilt new "{%'}.patch" +> Patch patches/{%'}.patch is now on top + +$ quilt add foo +> File foo added to patch patches/{%'}.patch + +$ echo baz > foo +" +$ quilt previous +> patches/another:strange(name) + $ quilt series > patches/another:strange(name) +> patches/{%'}.patch + +$ quilt refresh -p0 "{%'}.patch" +> Refreshed patch patches/{%'}.patch + +$ cat "patches/{%'}.patch" +> Index: foo +> =================================================================== +> --- foo.orig +> +++ foo +> @@ -1 +1 @@ +> -bar +> +baz + +$ quilt pop "another:strange(name)" +> Removing patch patches/{%'}.patch +> Restoring foo +> +> Now at patch patches/another:strange(name) $ quilt remove foo > File foo removed from patch patches/another:strange(name) |