summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Make backup-files a shell scriptMartin Quinson2012-02-011-23/+23
| | | | | | | | Make backup-files a shell script instead of a binary, so we can make quilt arch: all [Steve Langasek, thanks so much] (Closes: Debian #363659) Signed-off-by: Jean Delvare <jdelvare@suse.de>
* Add a dedicated test case for backup-filesJean Delvare2012-02-011-0/+202
| | | | Signed-off-by: Jean Delvare <jdelvare@suse.de>
* import: Fix import of patches from a subdirectory (bug #35244)Jean Delvare2012-01-311-0/+9
|
* test suite: in the "ls -l" output, ignore additional characters after the ↵Andreas Gruenbacher2012-01-231-5/+5
| | | | | | | file permissions Access control lists will add a "+", and SELinux will add a "."; we don't care in the test suite.
* New test case for patches attempting to modify files which do not exist.Jean Delvare2011-04-041-0/+23
|
* configure.ac: Fix test for GNU patch versionJean Delvare2011-03-252-10/+10
| | | | | | | | | | | | | We currently ask for GNU patch >= 2.4, but the test suite doesn't actually pass with GNU patch 2.4. It passes with GNU patch 2.5 with minor edits to be more tolerant to the exact output of "patch". I have no idea how much work it would be to get 2.4 to be supported again, but it doesn't seem unreasonable to ask for 2.5 which was released in August 1997. So let's just do that for now. If anyone badly misses support for GNU patch 2.4, well, we accept patches ;) Signed-off-by: Jean Delvare <jdelvare@suse.de>
* 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>
* test/run: Enforce single variable substitution methodJean Delvare2011-03-182-3/+2
| | | | | There is no need to have two ways to access environment variables from test cases, one is enough.
* Let the test suite cover "quilt grep".Jean Delvare2011-03-073-0/+10
|
* test/nolink.test: Add missing check, to make sure we won't miss a bug.Jean Delvare2011-01-281-0/+3
|
* Give more meaningful error messagesDavid Paleino2010-01-272-10/+10
| | | | | | | | Differentiate output when $QUILT_PATCHES/series is not found from when $QUILT_PATCHES/series is empty. This has originally been reported as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557621
* Let the test suite be run in parallelJean Delvare2010-01-231-8/+50
| | | | | | | | | | | Add an option to the test case runner script to generate an output suitable for parallel runs: * Print the full output at the end of the test case, all at once. * Only output the detailed commands on failed test cases. This makes it possible and convenient to run the test suite in parallel on SMP systems.
* Separate working directory for each test caseJean Delvare2010-01-2345-398/+212
| | | | | | | | | | | | | | | | | 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 non-regression test to verify that quilt remembers ↵Raphaël Hertzog2010-01-231-0/+30
| | | | QUILT_PATCHES/QUILT_SERIES
* 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.
* "quilt revert" accidentally creates a hard link, it shouldn't do that.Jean Delvare2009-06-171-0/+20
| | | | | | | | | | | | | | | | | | | | | | I think the reason is that apply_patch_temporarily() uses backup-files to create the temporary files, and by default backup-files uses hard links. For files which are modified by the patch, this isn't a problem because patch will unlink the file before modifying it. But for files which are not modified by the patch, the hard link is preserved. Then quilt revert also makes a hard link to restore the file, on the assumption that the temporary copy will be deleted right away. At this point, files not modified by the patch will have a link count of 3 (.pc/<patch>/<file>, d.*/<file> and <file>). When the temporary file is deleted, the link count is still 2 (.pc/<patch>/<file> and <file>). A simple way to fix this is to always use cp instead of ln when restoring the files. Performance is not as good, but at least it is always correct. We could optimize the code to use ln when possible and cp for the other cases, but honestly I don't think it is worth the extra complexity. The speed of "quilt revert" is hardly critical, given how infrequently this command is used.
* Minor test suite updateAndreas Gruenbacher2009-06-152-3/+5
| | | | | Recognize the output of more recent versions of patch, and set the coreutils quoting style instead of matching different quoting styles.
* Convert to git repository formatv0.48Andreas Gruenbacher2009-01-291-2/+0
|
* - From Wolfram Sang <w.sang@pengutronix.de>:Andreas Gruenbacher2008-11-021-2/+4
| | | | | | "The test for import did not always recreate a patches-dir inside the temporary location, so it would fail if you modified quilt using quilt."
* - Add a dual BSD/GPL license header to test/run.Andreas Gruenbacher2008-11-021-0/+27
| | | | | - Only run test/patch-wrapper.test if the --with-patch-wrapper config option is used.
* - quilt/import.in: When importing multiple patches at once, makeAndreas Gruenbacher2008-06-131-0/+20
| | | | | | sure that they won't end up in the series file in reverse order. This happened because each new patch was inserted before the "next" patch, which made it the new "next" patch.
* - quilt/mail.in: Remove the Recipient-* and Replace-* headersAndreas Gruenbacher2007-11-051-1/+1
| | | | | used internally from the resulting emails; not sure how that was missed so far.
* - quilt/mail.in: Make sure that shell meta-characters like * inAndreas Gruenbacher2007-10-251-6/+13
| | | | | | | | | | subjects won't get expanded by accident (this was broken). Add test case. - quilt/mail.in: ``formail -x Foo'' will extract all Foo* headers, so use ``formail -x Foo:'' instead. - quilt/mail.in: Recognize sequences of common subject prefixes like Fwd:, Fw:, Re:, Aw:, Tr:, [foo] only at the beginning of subjects.
* - quilt/main.in: Add a --signature flag that allows to overrideAndreas Gruenbacher2007-10-152-8/+8
| | | | | the signature used. (The test suite still depended on the .signature file of the user runnig it; fixed now.)
* - quilt setup: replace the --path argument with --sourcedir forAndreas Gruenbacher2007-08-082-7/+7
| | | | | | | | specifying the location of the package sources. Pass the source dir to inspect as well. Fix a test suite bug for quilt setup. Minor cosmetic changes. - Fix a quilt mail test suite bug: specify a dummy --sender in test.quiltrc.
* - Mail command: when only a single patch is specified, only mailAndreas Gruenbacher2007-05-066-38/+27
| | | | | | | | | | that one. Only mail all patches to the end of the series if the last patch is '-', or no patches have been specified. - Revert command: change semantics to really revert the changes relative to the patch instead of removing the file from the patch. That's much more useful; the other behavior is available as ``quilt diff <file> | patch -p1'', anyway. - Update German translation.
* - Rename the ``remove'' command to ``revert'': this removesAndreas Gruenbacher2007-04-278-44/+44
| | | | | ambiguities with the delete command, and more closely matches what the command does.
* - lib/backup-files.c: Do not modify the original file wheneverAndreas Gruenbacher2007-04-161-0/+57
| | | | | | | possible: previously, a ``quilt add'' usually linked the file to he backup and then copied the backup over the file to ensure a link count of one. Recognize this case, and create a copy in the first place instead.
* - quilt/import.in, quilt/scripts/patchfns.in: Implement import -RJean Delvare2007-02-211-1/+92
| | | | | for reverse-applying a patch. Original patch contributed by Randy Dunlap.
* test/run: Don't attempt to remove comments from command lines. We don'tJean Delvare2007-02-201-1/+0
| | | | | put such comments in our test cases, and it prevents legitimate uses of the "#" character (e.g. in a string, inside quotes) in commands.
* - Refresh command: add -z option, which refreshes changes into aAndreas Gruenbacher2006-10-191-0/+29
| | | | new patch instead of modifying the existing patch.
* - quilt/delete.in: Display the proper error message when usingJean Delvare2006-09-221-0/+3
| | | | | "quilt delete" with no argument and no patch is applied. - test/delete.test: Add a test for this specific case.
* - quilt/scripts/patchfns.in: Drop support for "-pab" in seriesJean Delvare2006-09-191-46/+0
| | | | | | file, for it breaks compatibility with previous versions of quilt, and is inconsistent. - test/dir-a-b.test: Drop test case for "-pab" in series file.
* - test/*.test: Make sure that rm commands are non-interactive.Jean Delvare2006-09-199-10/+10
|
* - test/dir-a-b.test: Don't use diffstat in the regression testJean Delvare2006-09-191-8/+0
| | | | suite, as it may or may not be available.
* - quilt/mail.in, test/mail.test: Fix signature separator. PatchJean Delvare2006-09-051-7/+7
| | | | from Ville Syrjala.
* - A few more `-p ab' fixes.Andreas Gruenbacher2006-06-271-0/+79
|
* - quilt/push.in: Fix a bug introduced with the -p ab support.Andreas Gruenbacher2006-06-271-0/+43
| | | | - test/dir-a-b.test: Add a regression test case for this fix.
* - quilt/diff.in, quilt/refresh.in: Add `-p ab' options whichAndreas Gruenbacher2006-06-121-0/+13
| | | | | | | produce a/file and b/file filenams in headers instead of dir.orig/file and dir/file, similar to BK, git, hg patches. - Only touch .pc/$patch/.timestamp when a path actually is being refreshed.
* - quilt/pop.in: Delete .pc/$patch directory when popping emptyJean Delvare2006-04-262-1/+43
| | | | | | | | | | | patches. Report and original patch by Arnaud Patard. - quilt/push.in: Create .pc/$patch directory when pushing missing or empty patches. If we don't, some commands such as rename can fail later. - test/missing.test: Test rename command on missing patches. - test/empty.test: New test case similar to missing.test, but for empty patches. Somewhat based on a contribution by Arnaud Patard.
* - quilt/scripts/patchfns.in: Fix broken return in functionJean Delvare2006-04-151-0/+3
| | | | | | find_applied_patch, which was causing a bogus error message on failed pop. - test/three.test: Test failed pop.
* - test/mail.in: Test UTF-8 header encoding.Andreas Gruenbacher2006-03-262-1/+5
|
* - test/mail.in: Test for recipients with a dot in their name.Jean Delvare2006-03-261-7/+9
|
* - quilt/edit.in: The last fix broke another way of using edit.Andreas Gruenbacher2006-03-211-1/+15
|
* - quilt/edit.in: Fix for working in subdirectories.Andreas Gruenbacher2006-03-152-4/+12
|
* - quilt/import.in: Fix replacement of compressed patches.Jean Delvare2006-03-051-0/+143
| | | | - test/import2.test: New test case for compressed patches.
* - Fix a critical bug in the push command that causes parts ofAndreas Gruenbacher2006-02-141-0/+44
| | | | patches to end up half-reversed (introduced on 22 Jan).
* - test/run: Avoid warnings with some versions of Perl.Andreas Gruenbacher2006-02-111-3/+4
|
* - quilt/setup.in: Add --path option for defining a tarball searchAndreas Gruenbacher2006-02-111-0/+52
| | | | | | | 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.
* - quilt/scripts/patchfns.in: Fix bug in quilt_command when workingAndreas Gruenbacher2006-02-111-0/+20
| | | | | in subdirectories. - Add testcase test/edit.test to catch this kind of bug.