summaryrefslogtreecommitdiffstats
path: root/test/import.test
Commit message (Collapse)AuthorAgeFilesLines
* import: Fix option -PJean Delvare2021-09-031-0/+16
| | | | | | | | | | | | | | | I broke "import -P" with my previous commit. Using this option now fails with the following error message: /usr/share/quilt/import: line 168: [: missing `]' This is caused by a missing space before the closing square bracket, which prevents bash from parsing the line. Fix that, and add a test case to cover this code path, so that no such bug can creep in in the future. Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: c539338458e4 ("Delay sourcing patchfns until options have been processed")
* test: Don't hard-code .pcJean Delvare2019-03-141-5/+5
| | | | | | | | | | | Use a variable (QUILT_PC) instead of hard-coding ".pc" as the name of the directory where quilt stores the state of the working tree throughout the test suite. We still set that variable to ".pc" to make it easier to investigate failed test cases, but at least this allows us to promptly test that QUILT_PC can actually be set to any other value and quilt still works. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* test: Consistently use %{P} and %{_P}Jean Delvare2017-05-091-33/+33
| | | | | | | | | | | 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: Drop incorrect uses of %{P}Jean Delvare2017-05-091-2/+2
| | | | | | | | | %{P} only makes sense when checking the output of a quilt command. The value of QUILT_PATCHES_PREFIX can obviously not affect what the user is writing on the command line, nor the output of other commands. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* Tree-wide white-space cleanupsJean Delvare2014-01-201-2/+2
| | | | | | | * Delete blank lines at end of files. * Delete white space at end of lines. * Delete spaces before tab. * Replace 8 spaces by a tab where it makes sense.
* import: Fix import of patches from a subdirectory (bug #35244)Jean Delvare2012-01-311-0/+9
|
* Separate working directory for each test caseJean Delvare2010-01-231-7/+1
| | | | | | | | | | | | | | | | | 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.
* - 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."
* - 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/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.
* - GNU patch 2.5 messages differ slightly from the messages of moreAndreas Gruenbacher2006-01-211-1/+1
| | | | | | recent versions. Recognize the old version's output when fixing patch's output in the push command, and also accept the old version's output in the test suite.
* - Split off strip_diffstat from header command.Andreas Gruenbacher2006-01-211-4/+22
| | | | | - import command: compare patch headers to prevent destruction; add -d option to choose which header(s) to keep.
* - import command: catch several error conditions. Patches inAndreas Gruenbacher2006-01-211-21/+6
| | | | QUILT_PATCHES can now e imported. A minor fix in the output.
* - test/three.test, test/import.test: Add various tests.Andreas Gruenbacher2006-01-161-0/+138