From f1458bf10fe56cb4f95f446bf35bcd09a55f6ecd Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 23 Jan 2010 21:23:01 +0100 Subject: Separate working directory for each test case 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. --- test/header.test | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'test/header.test') diff --git a/test/header.test b/test/header.test index 29d89b3..0316129 100644 --- a/test/header.test +++ b/test/header.test @@ -1,6 +1,4 @@ - $ rm -rf d - $ mkdir -p d/patches - $ cd d + $ mkdir patches $ echo foo > foo $ quilt new patch @@ -10,7 +8,7 @@ > File foo added to patch patches/patch $ echo bar > foo - $ quilt refresh + $ quilt refresh -p ab > Refreshed patch patches/patch $ mv patches/patch patches/patch~ @@ -37,13 +35,10 @@ $ cat patches/patch > Header2 > Appended - > Index: d/foo + > Index: b/foo > =================================================================== - > --- d.orig/foo - > +++ d/foo + > --- a/foo + > +++ b/foo > @@ -1 +1 @@ > -foo > +bar - - $ cd .. - $ rm -rf d -- cgit