summaryrefslogtreecommitdiffstats
path: root/test/run
Commit message (Collapse)AuthorAgeFilesLines
* test/run: Minor performance optimizationsJean Delvare2014-02-121-7/+6
| | | | | | | | * Don't set $needs_shell before we need it. When handling commands internally, we don't care about $needs_shell. * Use a single regexp to set $use_re. * Clear $good as soon as a test fails, instead of grepping for failures later.
* test/run: Fix the condition for using /bin/shJean Delvare2014-02-121-1/+1
| | | | | * Command lines containing "&" need /bin/sh. * "*" and "?" need not be escaped inside brackets in regular expressions.
* test/run: Declare global variables as suchJean Delvare2014-02-121-6/+6
| | | | | Declare all global variables with qw() and stop passing them as arguments to some functions.
* test/run: Reorder functionsJean Delvare2014-02-121-132/+125
| | | | | Move functions before they are called, so that we no longer need forward declarations.
* test/run: Massive reindentationJean Delvare2014-02-121-155/+152
| | | | | Code indentation in this file is inconsistent, this makes editing it difficult. Use tabulations everywhere.
* test/run: Drop support for su and sgJean Delvare2014-02-121-77/+1
| | | | | | The su and sg commands can only work if running as root. The quilt test cases do not use these commands and I certainly wouldn't recommend running the test suite as root, so drop the feature.
* test/run: Use perl module Text::ParseWordsJean Delvare2014-02-121-2/+3
| | | | | | | | Perl has a standard module which can split shell command lines for us, so use it. Function shellwords can deal with quoted parameters too so we no longer need to pass commands to /bin/sh just because they contain quoted parameters. This lowers the ratio of commands passed to /bin/sh from 34% to 31%.
* test/run: Delay command line splittingJean Delvare2014-02-121-11/+11
| | | | | Delay command line splitting until it's actually needed. This avoids having to join it again to log it or to pass it to /bin/sh.
* Tree-wide white-space cleanupsJean Delvare2014-01-201-1/+1
| | | | | | | * 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.
* test/run: Documentation updateJean Delvare2013-12-201-4/+10
| | | | | * Remove the implemented features from the to-do list. * Document the command line interface.
* test/run: Fix variable substitutionJean Delvare2013-12-201-5/+11
| | | | | | | | | | | | | | | | Variable substitution on command lines was happening too early so setting a variable only took effect with the second next line of the test case. Additionally, there was no check that the environment variable was actually set. This resulted in perl warnings during the test suite if a variable is ever used before having been set. Fix both issues. Also add a test case for this feature, to avoid a future breakage. Some of the tester script features are tricky and easy to get wrong, so test them independently of quilt in a dedicated test case.
* test/run: Rewrite the main parsing loopJean Delvare2013-12-201-32/+33
| | | | | | | Rewrite the main parsing loop of the tester scripts, in a way which is easier to understand and avoids redundant tests. No functional change here.
* test: Record the status returned by every commandJean Delvare2013-12-171-16/+23
| | | | | | | - test/run: Record the status returned by every command, so that test cases can check them. - test/*.text: Test the status returned by all commands in 4 test cases.
* Fix syntax highlighting of this file in gedit.Jean Delvare2013-04-301-1/+1
|
* test/run: Enforce single variable substitution methodJean Delvare2011-03-181-2/+1
| | | | | There is no need to have two ways to access environment variables from test cases, one is enough.
* 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-231-1/+20
| | | | | | | | | | | | | | | | | 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 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.
* 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.
* - quilt/edit.in: Fix for working in subdirectories.Andreas Gruenbacher2006-03-151-2/+5
|
* - test/run: Avoid warnings with some versions of Perl.Andreas Gruenbacher2006-02-111-3/+4
|
* - 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.
* - Don't pad right-hand side of ==, !=, =~, !~ with spaces.Andreas Gruenbacher2006-01-291-3/+2
|
* - test/run: Support regex matching in test scripts.Andreas Gruenbacher2006-01-211-9/+16
|
* - test/run: Do not depend on Term::ReadKey.Jean Delvare2005-09-231-2/+1
|
* - quilt remove: Update restored file's timestamp. Also, some usesv0.39Andreas Gruenbacher2005-02-101-1/+5
| | | | | | | caused a subsequent ``quilt diff -z'' to fail: we must mark the patch as dirty after removing files. - test/run: adjust to terminal width. - Bump version to 0.39.
* - scripts/patchfns.in: set the dotglob option so that dot filesAndreas Gruenbacher2004-09-221-2/+2
| | | | | | | | | | | | | will show up in file globs as well. Bug reported by James Rowe. - Add a missing tab to the patch header of files that are removed. Bug reported by James Rowe. - Push command: Without -f or --leave-rejects, when applying a patch failed, the *.rej files were not removed properly. Change the code so that they won't be created in the working tree in the first place this case. - test/run script: Oops, the previouos commit was not the latest version. - Bump version to 0.36.
* - Series command: add missing paths to patches ifAndreas Gruenbacher2004-09-211-0/+7
| | | | | $QUILT_PATCHES_PREFIX is set. - test/run script: Add export and unset statements.
* - Add a few more test cases for subdirectory support.Andreas Gruenbacher2004-01-281-5/+7
| | | | - Fix a few bugs introduced while merging Chris's patch.
* - Never reorder files in patches. (Previously the file listAndreas Gruenbacher2003-04-091-51/+98
| | | | | | was run through (sort | uniq) to remove duplicate entries.) - Update test script to new format, and add regression test cases.
* Start with a very minimal test suiteAndreas Gruenbacher2003-02-061-0/+226