summaryrefslogtreecommitdiffstats
path: root/test/space-in-filenames.test
Commit message (Collapse)AuthorAgeFilesLines
* test: Consistently use %{P} and %{_P}Jean Delvare2017-05-091-11/+11
| | | | | | | | | | | There is no point in defining P and _P in the Makefile to allow for QUILT_PATCHES_PREFIX to be set or unset if we do not use these variables consistently in the test suite. Replace hardcoded "patches/" with %{P} or %{_P} throughout the test suite wherever relevant so that unsetting QUILT_PATCHES_PREFIX in test.quiltrc actually works. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* test: Improve the coverage of the patches commandJean Delvare2014-02-241-0/+12
| | | | | | | Add tests for the patches command in two test cases. In particular we want to test that the patches command works OK when patch filenames contain spaces or other unusual characters, and that file names are properly guessed in patches which create or delete files.
* Style cleanupsJean Delvare2014-02-101-3/+3
|
* grep: Accept file names with spacesJean Delvare2012-02-011-0/+7
| | | | | | | | | | This is a continuation of Yasushi SHOJI's initial work of fixing support for file names with spaces. This time I fixed support in the grep command. This is particularly important because the grep command operates on all files in the work tree, even if they aren't touched by any patch, so the chances that one of them has a space in its name is greater. As before, no guarantee is made that all options are covered, but this should be a good starting point.
* diff, refresh: Accept file names with spacesJean Delvare2011-03-251-0/+52
| | | | | | | | | | This is a continuation of Yasushi SHOJI's initial work of fixing support for file names with spaces. This time I fixed support in the diff and refresh commands, two commands which are frequently used. As before, no guarantee is made that all options are covered, but this should be a good starting point. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* Separate working directory for each test caseJean Delvare2010-01-231-6/+2
| | | | | | | | | | | | | | | | | Let the test suite runner script create a separate working directory for each test. This makes it possible to run several tests in parallel, speeding up testing on SMP systems. It also ensures that a broken test case can no longer cause another test case to fail. At this point, it is possible to run the test suite in parallel, the final result (success or failure) will be correct, however the output is hardly readable because the progress of all tests are interlaced. This will be improved later. As a nice side effect, this means we can drop the setup and clean-up steps that were present in all test cases.
* add, files, remove: accept file name with spacesYasushi SHOJI2009-11-271-0/+43
http://savannah.nongnu.org/bugs/?19477 and http://lists.nongnu.org/archive/html/quilt-dev/2009-09/msg00010.html reported that the current quilt does not work with file name with spaces. we all know that it is tough to handle it with bash script and fix all quilt commands. this patch only fixes add, files, and remove command with normal code path. no excessive test has been done but a few test code is also added. hope this starts fixing quilt to handle all possible path pattern.