From 88899892aceb55b8098d745db19cdd077391ca4c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 2 Mar 2014 21:34:32 +0100 Subject: 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. --- test/colon-in-patch-name.test | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) 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) -- cgit