summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* - bin/patch-wrapper.in: A wrapper to GNU patch that recognizes theAndreas Gruenbacher2006-02-061-0/+74
| | | | | | | | | | most common options and mimics GNU patch's behavior and output, and creates the quilt metadata as if quilt push was used to apply the patch. When options are used that this wrapper does not recognize, GNU patch is used directly, and no quilt metadata will get created. - lib/backup-files.c: Don't fail if a directory specified with -B does not exist.
* - Add "testcase" for -p0 patches that are applied in differentAndreas Gruenbacher2006-02-011-0/+29
| | | | | directories. We occasionally have this condition in spec files, and it would be really great if quilt setup could cope better.
* - compat/date.in: Fix GetOptions problem with options startingAndreas Gruenbacher2006-02-011-1/+4
| | | | | | | with `+'. - test/run: Adjust $ENV{PWD} in cd command; add FIXME comment in export command: in commands like `export foo=$var/bar', $var is not evaluated.
* - Filter duplicates with awk instead of usig uniq -D.Andreas Gruenbacher2006-02-011-1/+1
|
* - Clean up quoting in messages.Andreas Gruenbacher2006-02-011-2/+2
|
* - quilt/mail.in: Use $(hostname) for the sender address forAndreas Gruenbacher2006-01-301-4/+4
| | | | platforms on which $(hostname -f) doesn't work.
* - test/mail.test: Use --sender option to avoid callingAndreas Gruenbacher2006-01-301-4/+4
| | | | hostname -f on platforms that don't support -f.
* - test/mail.test: /dev/stdin & /dev/stdout dont exist on Tru64.Andreas Gruenbacher2006-01-301-6/+6
|
* - Also strip any bracketed fields and Re:, Fwd:, Fw:, Aw: fromAndreas Gruenbacher2006-01-291-1/+1
| | | | subject headers.
* - Also strip any literal "[patch]" from subject headers.Andreas Gruenbacher2006-01-291-1/+1
|
* - quilt/mail.in:Andreas Gruenbacher2006-01-291-0/+85
| | | | | | | | | | | | + Add -m and --prefix options so that the mail command can be used without invoking an editor. + Verify that each message generated will have a unique subject. + Verify that the introduction has a subject header. + Fix a bug in the heuristic for adding recipients. + Add a heuristic for extracting subject headers + Clarify some messages. + Add a test case. + Update the documentation.